On 18/08/12 15:52, Bob Proulx wrote:
> Daniel Pocock wrote:
>> df -lh /mnt/btrfs0
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/mapper/vg00-btrfsvol0_0 1.9T 51G 1.8T 3% /mnt/btrfs0
>
> What are the raw values that the kernel responds with? You didn't say
> so I will assume a Linux kernel. What is the output of this:
>
> $ strace -v -e trace=statfs df -lh /mnt/btrfs0
>
> I expect to see something similar to this example:
>
> statfs("/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=3247697,
> f_bfree=720002, f_bavail=556939, f_files=822544, f_ffree=291220,
> f_fsid={1837217198, 2143528657}, f_namelen=255, f_frsize=4096}) = 0
>
> Then we will know the data that df received from the kernel and why df
> is reporting what it is reporting.
>
> Thanks,
> Bob
# strace -v -e trace=statfs df -lh /mnt/btrfs0
statfs("/mnt/btrfs0", {f_type=0x9123683e, f_bsize=4096,
f_blocks=488374272, f_bfree=475264720, f_bavail=474749786, f_files=0,
f_ffree=0, f_fsid={2083217090, -1714407264}, f_namelen=255,
f_frsize=4096}) = 0
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-btrfsvol0_0 1.9T 51G 1.8T 3% /mnt/btrfs0
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]