diff options
author | Andreas Jaeger <aj@suse.de> | 2010-10-01 10:49:47 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-10-01 10:49:47 -0400 |
commit | 6484ba5ef092b62b7d2112c0d976dbd6d1a40fde (patch) | |
tree | ff7991c4fe3e1d0a49f0e3bb1399f24b1237080f /sysdeps/unix/sysv/linux/internal_statvfs.c | |
parent | 91c42559190f59c6c4b3cb0b7f5c9bb11dd28161 (diff) | |
download | glibc-6484ba5ef092b62b7d2112c0d976dbd6d1a40fde.tar.gz glibc-6484ba5ef092b62b7d2112c0d976dbd6d1a40fde.tar.xz glibc-6484ba5ef092b62b7d2112c0d976dbd6d1a40fde.zip |
Handle cgroup and btrfs filesystems
Diffstat (limited to 'sysdeps/unix/sysv/linux/internal_statvfs.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/internal_statvfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/internal_statvfs.c b/sysdeps/unix/sysv/linux/internal_statvfs.c index 83ffb99c05..828854806c 100644 --- a/sysdeps/unix/sysv/linux/internal_statvfs.c +++ b/sysdeps/unix/sysv/linux/internal_statvfs.c @@ -109,6 +109,12 @@ __statvfs_getflags (const char *name, int fstype, struct stat64 *st) case LOGFS_MAGIC_U32: fsname = "logfs"; break; + case BTRFS_SUPER_MAGIC: + fsname = "btrfs"; + break; + case CGROUP_SUPER_MAGIC: + fsname = "cgroup"; + break; } FILE *mtab = __setmntent ("/proc/mounts", "r"); |