On Thu, Nov 06, 2008 at 03:43:46PM +0100, Matthias Koenig wrote: > 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. Applied, thanks. Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html