Re: df -h shows ~10 times bigger size when umounting pendrive

From: David Newall
Date: Sun Mar 22 2009 - 02:47:26 EST


Arkadiusz Miskiewicz wrote:
> While umount was running and data were synced on the
> pendrive df -h showed:
>
> [arekm@t400 ~]$ df -h
> System plikïw rozm. uïyte dost. %uï. zamont. na
> /dev/sda3 9,6G 4,2G 5,5G 44% /
> /dev/sdb1 9,6G 4,2G 5,5G 44% /media/floppy
>

This looks to me like a race between umount and df. By the time df had
read mtab (to find the mounted filesystem), the pen drive had already
been unmounted; but umount hadn't yet updated mtab. It's a pretty
trivial sort of fault, and not worth worrying about.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/