MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bdev_capacity

Function bdev_capacity

freebsd/contrib/openzfs/module/os/linux/zfs/vdev_disk.c:91–95  ·  view source on GitHub ↗

* Returns the usable capacity (in bytes) for the partition or disk. */

Source from the content-addressed store, hash-verified

89 * Returns the usable capacity (in bytes) for the partition or disk.
90 */
91static uint64_t
92bdev_capacity(struct block_device *bdev)
93{
94 return (i_size_read(bdev->bd_inode));
95}
96
97#if !defined(HAVE_BDEV_WHOLE)
98static inline struct block_device *

Callers 2

bdev_max_capacityFunction · 0.85
vdev_disk_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected