This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12868] New: getconf returns incorrect FILESIZEBITS for Lustre filesystem


http://sourceware.org/bugzilla/show_bug.cgi?id=12868

           Summary: getconf returns incorrect FILESIZEBITS for Lustre
                    filesystem
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: adilger.redhat@dilger.ca


Created attachment 5782
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5782
Add Lustre filesystem to getconf/pathconf/statvfs

Due to the way getconf is implemented, it needs to explicitly list each
filesystem type in order to determine the correct FILESIZEBITS and
LINK_MAX values to use for each filesystem.

Attached is a patch against glibc-2.14-9-g29f6547, though it also
patches at least as far back as glibc-2.12.



Add Lustre filesystem to getconf/pathconf/statvfs

Add definitions of LUSTRE_SUPER_MAGIC and LUSTRE_LINK_MAX, and add
detection into __statfs_filesize_max(), __statvfs_getflags(), and
__statfs_link_max() so that getconf(), pathconf(), statvfs(), etc.
can detect this filesystem type correctly.

The LUSTRE_SUPER_MAGIC type is already handled by coreutils, but
it seems that coreutils and glibc do not share the magic values.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]