From 7d1ed880a31e061f8bb98dffce6fef6bd0bffec9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 16 Oct 2002 00:38:29 +0000 Subject: [PATCH] Update. 2002-10-15 Ulrich Drepper * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add support for reiserfs and xfs. * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for XFS link count. * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC and XFS_LINK_MAX. Patch by Eric Sandeen [PR libc/4706]. --- ChangeLog | 11 +++++++++++ sysdeps/unix/sysv/linux/alpha/fpathconf.c | 8 +++++++- sysdeps/unix/sysv/linux/fpathconf.c | 5 ++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93305b5..d7f1766 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-10-15 Ulrich Drepper + + * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add + support for reiserfs and xfs. + + * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for + XFS link count. + * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC + and XFS_LINK_MAX. + Patch by Eric Sandeen [PR libc/4706]. + 2002-10-16 Jakub Jelinek * include/libc-symbols.h (attribute_tls_model_ie): Define. diff --git a/sysdeps/unix/sysv/linux/alpha/fpathconf.c b/sysdeps/unix/sysv/linux/alpha/fpathconf.c index a7425d7..1820e5b 100644 --- a/sysdeps/unix/sysv/linux/alpha/fpathconf.c +++ b/sysdeps/unix/sysv/linux/alpha/fpathconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1998,2000,2002 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 @@ -93,6 +93,12 @@ __fpathconf (fd, name) case UFS_CIGAM: return UFS_LINK_MAX; + case REISERFS_SUPER_MAGIC: + return REISERFS_LINK_MAX; + + case XFS_SUPER_MAGIC: + return XFS_LINK_MAX; + default: return LINUX_LINK_MAX; } diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c index 5def46b..108ffa7 100644 --- a/sysdeps/unix/sysv/linux/fpathconf.c +++ b/sysdeps/unix/sysv/linux/fpathconf.c @@ -1,5 +1,5 @@ /* Linux specific extensions to fpathconf. - Copyright (C) 1991,95,96,98,99,2000,2001 Free Software Foundation, Inc. + Copyright (C) 1991,95,96,98,99,2000,2001,2002 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 @@ -82,6 +82,9 @@ __fpathconf (fd, name) case REISERFS_SUPER_MAGIC: return REISERFS_LINK_MAX; + case XFS_SUPER_MAGIC: + return XFS_LINK_MAX; + default: return LINUX_LINK_MAX; } -- 2.7.4