public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] pathconf and XFS/Reiserfs link count
@ 2002-10-16 14:02 Thorsten Kukuk
  2002-10-16 17:12 ` Roland McGrath
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Kukuk @ 2002-10-16 14:02 UTC (permalink / raw)
  To: libc-hacker; +Cc: drepper


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

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <p733cr6ot2m.fsf@oldwotan.suse.de>]

end of thread, other threads:[~2002-10-17  0:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16 14:02 [PATCH] pathconf and XFS/Reiserfs link count Thorsten Kukuk
2002-10-16 17:12 ` Roland McGrath
     [not found] <p733cr6ot2m.fsf@oldwotan.suse.de>
2002-10-16 17:20 ` Roland McGrath
2002-10-16 17:36   ` Ulrich Drepper
     [not found]     ` <20021017022815.A32174@wotan.suse.de>
2002-10-18  7:59       ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).