18eee5d03f
Remove the hard coded 512 byte SECTOR_SIZE and replace it with bdev_hardsect_size() to get the correct hardware sector size. Usage of get_capacity() was incorrect. We the block_device references a partition we need to return bdev->part->nr_sects. If get_capacity() is used the entire device size will be returned ignoring partition information. This is however the correct thing to do when the block device in question has not partition table. |
||
---|---|---|
.. | ||
avl | ||
nvpair | ||
unicode | ||
zcommon | ||
zfs | ||
Makefile.in |