1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Handle ext4 in {,f}pathconf

ext4 has a higher LINK_MAX limit than ext2/3.  Unfortunately it is
not easy to distinguish the filesystems from userlevel.
This commit is contained in:
Ulrich Drepper
2011-07-07 10:53:16 -04:00
parent de283087c7
commit 4e5f31c847
4 changed files with 97 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/* Get file-specific information about descriptor FD. Linux version.
Copyright (C) 1991,1995,1996,1998-2003,2008,2010
Copyright (C) 1991,1995,1996,1998-2003,2008,2010,2011
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@ -40,7 +40,7 @@ __fpathconf (fd, name)
switch (name)
{
case _PC_LINK_MAX:
return __statfs_link_max (__fstatfs (fd, &fsbuf), &fsbuf);
return __statfs_link_max (__fstatfs (fd, &fsbuf), &fsbuf, NULL, fd);
case _PC_FILESIZEBITS:
return __statfs_filesize_max (__fstatfs (fd, &fsbuf), &fsbuf);