On Sat, Feb 05, 2011 at 03:28:01AM +0300, Dmitry V. Levin wrote: [...] > + df -T -t btrfs -t xfs -t ext4 -t ocfs2 -t gfs2 . > df: Warning: cannot read table of mounted file systems > Filesystem Type 1K-blocks Used Available Use% Mounted on > - - 10485760 793504 9692256 8% / > > Looks like df agrees on the list of allowed fs types when it fails to find > out the fs type of the given filesystem, e.g. when /etc/mtab is a symlink > to /proc/mounts where given filesystem is not listed.
$ ls -log /etc/mtab
lrwxrwxrwx 1 12 Feb 5 00:22 /etc/mtab -> /proc/mounts
$ cat /etc/mtab
proc /proc proc rw,nosuid 0 0
$ strace -estatfs df -T -t ext4 /
statfs("/", {f_type=0x1021994, f_bsize=4096, f_blocks=2621440, f_bfree=2280903,
f_bavail=2280903, f_files=1048576, f_ffree=999965, f_fsid={0, 0},
f_namelen=255, f_frsize=4096}) = 0
Filesystem Type 1K-blocks Used Available Use% Mounted on
- - 10485760 1362148 9123612 13% /
That is, the fs type is 0x1021994 (S_MAGIC_TMPFS) but df fails to
recognize that and agrees that it meets "ext4" limit.
--
ldv
pgpcRVfmABck0.pgp
Description: PGP signature
