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