]> err.no Git - util-linux/commit
mkfs.minix: fix size detection
authorMatthias Koenig <mkoenig@suse.de>
Thu, 6 Nov 2008 14:43:46 +0000 (15:43 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 13 Nov 2008 22:56:32 +0000 (23:56 +0100)
commit943add28825b3e514e5e2390764af14851b33c64
tree32b92b55a8b44b1ff3cb83247672dbceb310499a
parent6ee3f81faedf297f087bd6c83456fef5898d490e
mkfs.minix: fix size detection

blkdev_get_size returns size in bytes, so BLOCKS has to be
calculated accordingly.
Use stat value for size if device is not a block device.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
disk-utils/mkfs.minix.c