Aaron Barany wrote: > Here is the output from strace: > statfs("/media/Backup", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, > f_blocks=180268930, f_bfree=175392411, f_bavail=166235261, f_files=45793280, > f_ffree=45742365, f_fsid={460585388, 379467950}, f_namelen=255, > f_frsize=4096}) = 0 > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/sdc1 721075720 19506076 664941044 3% /media/Backup
Thanks for that information. With that we can manually calculate the result and check against df's output. The statfs Size shows: f_bsize=4096 f_blocks=180268930 /* total data blocks in file system */ 4096 * 180268930 = 738381537280 Total Filesystem Size in Bytes The df Size shows 721075720 1K-blocks. 1024 * 721075720 = 738381537280 Total Filesystem Size in Bytes statfs Available shows: f_bsize=4096 f_bavail=166235261 /* free blocks avail to non-superuser */ 4096 * 166235261 = 680899629056 Available df Available shows: 1024 * 664941044 = 680899629056 Available statfs Used shows: f_bsize=4096 f_bfree=175392411 /* free blocks in fs */ 4096 * 175392411 = 718407315456 Free 738381537280 - 718407315456 = 19974221824 Used df Used shows: 1024 * 19506076 = 19974221824 Used Unless I missed something all of the numbers appear to match exactly to me. 'df' is simply reporting the values returned from the kernel's filesytesm statfs call. If those numbers are incorrect then it is a kernel problem and not a 'df' problem. Hope that helps, Bob -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org