[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
df vs. stat: fstype different
From: |
Bernhard Voelker |
Subject: |
df vs. stat: fstype different |
Date: |
Sat, 08 Dec 2012 19:26:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
How can the file system type be different in df and stat?
Test case: a share of the VirtualBox host mounted in the client.
VBox host: Windows 7, i.e. the physical file system is NTFS.
VBox VM: OpenSuSE-12.2.
The host's share is mounted with file system type "vboxsf"
which shown like that by df:
$ src/df -hT ~/share/.
Filesystem Type Size Used Avail Use% Mounted on
none vboxsf 183G 170G 14G 93% /home/berny/share
However, this is what stat reports:
$ src/stat -c "%t %T" -f ~/share/.
6969 nfs
The statfs call is used by both commands and returns NFS:
statfs("/home/berny/share", {f_type="NFS_SUPER_MAGIC", ...}) = 0
But how can that happen? I know, /proc/self/mounts contains
"vboxsf" which is used by df, but why does statfs return "nfs"?
Have a nice day,
Berny
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- df vs. stat: fstype different,
Bernhard Voelker <=