Remove __ASSUME_STATFS_F_FLAGS
Florian Weimer
fweimer@redhat.com
Wed May 10 18:06:00 GMT 2017
On 05/10/2017 07:50 PM, Joseph Myers wrote:
> -#ifndef __ASSUME_STATFS_F_FLAGS
> - if ((fsbuf->f_flags & ST_VALID) == 0)
> - /* Determining the flags is tricky. We have to read /proc/mounts or
> - the /etc/mtab file and search for the entry which matches the given
> - file. The way we can test for matching filesystem is using the
> - device number. */
> - buf->f_flag = __statvfs_getflags (name, fsbuf->f_type, fd);
> - else
> -#endif
> - buf->f_flag = fsbuf->f_flags ^ ST_VALID;
> + buf->f_flag = fsbuf->f_flags ^ ST_VALID;
Should we check the presence of the flag and return ENOSYS or abort if
it missing?
Thanks,
Florian
More information about the Libc-alpha
mailing list