mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Handle Lustre filesystem
This commit is contained in:
committed by
Ulrich Drepper
parent
c75fa153a9
commit
de283087c7
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2011-07-07 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
[BZ #12868]
|
||||||
|
* sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
|
||||||
|
* sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
|
||||||
|
Handle Lustre.
|
||||||
|
* sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
|
||||||
|
(__statfs_filesize_max): Likewise.
|
||||||
|
Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
|
||||||
|
|
||||||
2011-07-05 Andreas Jaeger <aj@suse.de>
|
2011-07-05 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* resolv/res_comp.c (dn_skipname): Remove unused variable.
|
* resolv/res_comp.c (dn_skipname): Remove unused variable.
|
||||||
|
2
NEWS
2
NEWS
@ -9,7 +9,7 @@ Version 2.15
|
|||||||
|
|
||||||
* The following bugs are resolved with this release:
|
* The following bugs are resolved with this release:
|
||||||
|
|
||||||
9696, 12874, 12885, 12907, 12922, 12935
|
9696, 12868, 12874, 12885, 12907, 12922, 12935
|
||||||
|
|
||||||
* New program pldd to list loaded object of a process
|
* New program pldd to list loaded object of a process
|
||||||
Implemented by Ulrich Drepper.
|
Implemented by Ulrich Drepper.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1998-2006, 2010 Free Software Foundation, Inc.
|
/* Copyright (C) 1998-2006, 2010, 2011 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
@ -115,6 +115,9 @@ __statvfs_getflags (const char *name, int fstype, struct stat64 *st)
|
|||||||
case CGROUP_SUPER_MAGIC:
|
case CGROUP_SUPER_MAGIC:
|
||||||
fsname = "cgroup";
|
fsname = "cgroup";
|
||||||
break;
|
break;
|
||||||
|
case LUSTRE_SUPER_MAGIC:
|
||||||
|
fsname = "lustre";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE *mtab = __setmntent ("/proc/mounts", "r");
|
FILE *mtab = __setmntent ("/proc/mounts", "r");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Constants from kernel header for various FSes.
|
/* Constants from kernel header for various FSes.
|
||||||
Copyright (C) 1998-2003,2005,2010 Free Software Foundation, Inc.
|
Copyright (C) 1998-2003,2005,2010,2011 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -83,6 +83,9 @@
|
|||||||
/* Constant that identifies the `logfs' filesystem. */
|
/* Constant that identifies the `logfs' filesystem. */
|
||||||
#define LOGFS_MAGIC_U32 0xc97e8168u
|
#define LOGFS_MAGIC_U32 0xc97e8168u
|
||||||
|
|
||||||
|
/* Constant that identifies the `lustre' filesystem. */
|
||||||
|
#define LUSTRE_SUPER_MAGIC 0x0BD00BD0
|
||||||
|
|
||||||
/* Constants that identify the `minix2' filesystem. */
|
/* Constants that identify the `minix2' filesystem. */
|
||||||
#define MINIX2_SUPER_MAGIC 0x2468
|
#define MINIX2_SUPER_MAGIC 0x2468
|
||||||
#define MINIX2_SUPER_MAGIC2 0x2478
|
#define MINIX2_SUPER_MAGIC2 0x2478
|
||||||
@ -150,6 +153,8 @@
|
|||||||
/* Maximum link counts. */
|
/* Maximum link counts. */
|
||||||
#define COH_LINK_MAX 10000
|
#define COH_LINK_MAX 10000
|
||||||
#define EXT2_LINK_MAX 32000
|
#define EXT2_LINK_MAX 32000
|
||||||
|
#define EXT4_LINK_MAX 65000
|
||||||
|
#define LUSTRE_LINK_MAX EXT4_LINK_MAX
|
||||||
#define MINIX2_LINK_MAX 65530
|
#define MINIX2_LINK_MAX 65530
|
||||||
#define MINIX_LINK_MAX 250
|
#define MINIX_LINK_MAX 250
|
||||||
#define REISERFS_LINK_MAX 64535
|
#define REISERFS_LINK_MAX 64535
|
||||||
|
@ -121,6 +121,9 @@ __statfs_link_max (int result, const struct statfs *fsbuf)
|
|||||||
case XFS_SUPER_MAGIC:
|
case XFS_SUPER_MAGIC:
|
||||||
return XFS_LINK_MAX;
|
return XFS_LINK_MAX;
|
||||||
|
|
||||||
|
case LUSTRE_SUPER_MAGIC:
|
||||||
|
return LUSTRE_LINK_MAX;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return LINUX_LINK_MAX;
|
return LINUX_LINK_MAX;
|
||||||
}
|
}
|
||||||
@ -157,6 +160,7 @@ __statfs_filesize_max (int result, const struct statfs *fsbuf)
|
|||||||
case JFS_SUPER_MAGIC:
|
case JFS_SUPER_MAGIC:
|
||||||
case VXFS_SUPER_MAGIC:
|
case VXFS_SUPER_MAGIC:
|
||||||
case CGROUP_SUPER_MAGIC:
|
case CGROUP_SUPER_MAGIC:
|
||||||
|
case LUSTRE_SUPER_MAGIC:
|
||||||
return 64;
|
return 64;
|
||||||
|
|
||||||
case MSDOS_SUPER_MAGIC:
|
case MSDOS_SUPER_MAGIC:
|
||||||
|
Reference in New Issue
Block a user