Messages in this thread | | | From | Rob Landley <> | Subject | Re: Problems with /proc/mounts and statvfs (implementing df). | Date | Sat, 28 Oct 2006 16:28:58 -0400 |
| |
On Saturday 28 October 2006 3:37 pm, Rob Landley wrote: > Problem #2: statfs() and statvfs() are returning 0 in the f_fsid.
Which is apparently a known issue, the field has never worked and is useless, and what you're supposed to do is a normal stat() on the sucker and and use st_dev, which has been horribly abused to perform the function of uniquely identifying things like tmpfs instances and /proc. :)
A fix to problem #1 would still be nice, but I can work around most of it...
Thanks,
Rob -- "Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away." - Antoine de Saint-Exupery - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |