about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/pathconf.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2010-10-01 10:49:47 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-01 10:49:47 -0400
commit6484ba5ef092b62b7d2112c0d976dbd6d1a40fde (patch)
treeff7991c4fe3e1d0a49f0e3bb1399f24b1237080f /sysdeps/unix/sysv/linux/pathconf.c
parent91c42559190f59c6c4b3cb0b7f5c9bb11dd28161 (diff)
downloadglibc-6484ba5ef092b62b7d2112c0d976dbd6d1a40fde.tar.gz
glibc-6484ba5ef092b62b7d2112c0d976dbd6d1a40fde.tar.xz
glibc-6484ba5ef092b62b7d2112c0d976dbd6d1a40fde.zip
Handle cgroup and btrfs filesystems
Diffstat (limited to 'sysdeps/unix/sysv/linux/pathconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/pathconf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/pathconf.c b/sysdeps/unix/sysv/linux/pathconf.c
index db03529fe8..ae597fb5ba 100644
--- a/sysdeps/unix/sysv/linux/pathconf.c
+++ b/sysdeps/unix/sysv/linux/pathconf.c
@@ -1,5 +1,5 @@
 /* Get file-specific information about a file.  Linux version.
-   Copyright (C) 1991,1995,1996,1998-2003,2008 Free Software Foundation, Inc.
+   Copyright (C) 1991,1995,1996,1998-2003,2008,2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -126,6 +126,9 @@ __statfs_filesize_max (int result, const struct statfs *fsbuf)
 
   switch (fsbuf->f_type)
     {
+    case BTRFS_SUPER_MAGIC:
+      return 255;
+
     case EXT2_SUPER_MAGIC:
     case UFS_MAGIC:
     case UFS_CIGAM:
@@ -136,6 +139,7 @@ __statfs_filesize_max (int result, const struct statfs *fsbuf)
     case UDF_SUPER_MAGIC:
     case JFS_SUPER_MAGIC:
     case VXFS_SUPER_MAGIC:
+    case CGROUP_SUPER_MAGIC:
       return 64;
 
     case MSDOS_SUPER_MAGIC: