]> 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>
Fri, 12 Dec 2008 12:07:50 +0000 (13:07 +0100)
commit397c775ce686865fe07a57e09aa3fe97115f5187
tree61986c34348f143db61794b0408f219eff058488
parent35c4722446b1d6cc4ccb9dc6b0c7146c3f81da05
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