From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3504 invoked by alias); 9 Jun 2011 22:22:29 -0000 Received: (qmail 3496 invoked by uid 22791); 9 Jun 2011 22:22:28 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 22:22:13 +0000 From: "adilger.redhat at dilger dot ca" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12868] New: getconf returns incorrect FILESIZEBITS for Lustre filesystem X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: adilger.redhat at dilger dot ca X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 09 Jun 2011 22:22:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00030.txt.bz2 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.