Re: [d_path 0/7] Fixes to d_path: Respin

Ulrich Drepper
2007-04-20T15:15:58Z

On 4/20/07, Andreas Gruenbacher <agruen@suse.de> wrote:
> Possibly for fstatfs(): fstatfs() has no way of looking up mount points per
> path name in /proc/mounts, and so it resorts to mapping from the numeric
> statfs->f_type to the filesystem name (e.g., "ext3"), looks up the first
> mount point with that name, and sets the statfs->f_flag flags based on that
> entry. This field may change from one arbitrary value to another.

What are you talking about? fstatfs is a syscall, we do nothing but
copying values around at userlevel.

statvfs on the other hand does use /proc/mounts. And it most
certainly does look at the mount point before looking at the
filesystem type.