This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] pathconf and XFS/Reiserfs link count


Hi,

the last patch for adding XFS link count was incomplete and for 
Alpha, the link count for Reiserfs was also missing. Here is a
patch with the missing parts:


2002-10-16  Thorsten Kukuk  <kukuk@suse.de>

	* sysdeps/unix/sysv/linux/pathconf.c: Add case for XFS link count.
	* sysdeps/unix/sysv/linux/alpha/pathconf.c: Add case for 
	XFS and REISERFS link count.

--- sysdeps/unix/sysv/linux/pathconf.c	6 Jul 2001 04:56:12 -0000	1.6
+++ sysdeps/unix/sysv/linux/pathconf.c	16 Oct 2002 09:02:23 -0000
@@ -82,6 +82,9 @@
 	case REISERFS_SUPER_MAGIC:
 	  return REISERFS_LINK_MAX;
 
+	case XFS_SUPER_MAGIC:
+	  return XFS_LINK_MAX;
+
 	default:
 	  return LINUX_LINK_MAX;
 	}
--- sysdeps/unix/sysv/linux/alpha/pathconf.c	6 Jul 2001 04:56:13 -0000	1.6
+++ sysdeps/unix/sysv/linux/alpha/pathconf.c	16 Oct 2002 09:02:23 -0000
@@ -86,6 +86,13 @@
 	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;
 	}

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]