[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200610281628.58174.rob@landley.net>
Date: Sat, 28 Oct 2006 16:28:58 -0400
From: Rob Landley <rob@...dley.net>
To: linux-kernel@...r.kernel.org
Subject: Re: Problems with /proc/mounts and statvfs (implementing df).
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists