Bug 12868 - getconf returns incorrect FILESIZEBITS for Lustre filesystem
Summary: getconf returns incorrect FILESIZEBITS for Lustre filesystem
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.14
: P2 minor
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 22:22 UTC by Andreas Dilger
Modified: 2014-06-24 08:38 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Add Lustre filesystem to getconf/pathconf/statvfs (1.01 KB, patch)
2011-06-09 22:22 UTC, Andreas Dilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Dilger 2011-06-09 22:22:10 UTC
Created attachment 5782 [details]
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.
Comment 1 Ulrich Drepper 2011-07-07 04:21:26 UTC
I've applied the patch with a tiny change.

Next time update the copyright year in the files and pay attention to the file encoding.
Comment 2 Ulrich Drepper 2011-12-23 15:07:33 UTC
Should have been closed already.