]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
authorJim Meyering <jim@meyering.net>
Tue, 26 Sep 2006 20:42:43 +0000 (20:42 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 26 Sep 2006 20:42:43 +0000 (20:42 +0000)
it from removing a directory containing 188 or more entries.
* src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
Reported by Matthew Woehlke.

ChangeLog
NEWS
src/remove.c

index 1f31f0886f6ecb2032b2599db63b70bfc5ca4a5a..23e4e5a15f9478dddd055f7b1e67e4167821159b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-09-26  Jim Meyering  <jim@meyering.net>
+
+       * NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
+       it from removing a directory containing 188 or more entries.
+       * src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
+       20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
+       Reported by Matthew Woehlke.
+
 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * NEWS: "groups user" no longer outputs "user :"; you need at least
diff --git a/NEWS b/NEWS
index 815b0762a24bad371ee498e4ad0de30d04672f9c..ce728089476724726f1a483548eed7007b78050c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,9 @@ GNU coreutils NEWS                                    -*- outline -*-
 
 ** Improved robustness
 
+  rm works around a bug in Darwin 8.6.1 w/NFS that kept it from removing
+  a directory containing 188 or more entries.
+
   sort would fail to handle very large input (around 40GB) on systems with a
   mkstemp function that returns a file descriptor limited to 32-bit offsets.
 
index 670ba485bf8bfdde03d93018aaab4b0e4e6fa998..24426cff92b8c8d7356a06278fbb2154267b66e8 100644 (file)
    SunOS's readdir when applied to ufs file systems and Darwin 6.5's
    (and OSX v.10.3.8's) HFS+.  This maximum is conservative in that
    demonstrating the problem seems to require a directory containing
-   at least 254 deletable entries (which doesn't count . and ..), so
-   we could conceivably increase the maximum value to 254.  */
+   at least 254 deletable entries (which doesn't count . and ..).
+   However, in 2006, we see that Darwin 8.6.1, using NFS has an even
+   lower limit: 188.  */
 enum
   {
-    CONSECUTIVE_READDIR_UNLINK_THRESHOLD = 200
+    CONSECUTIVE_READDIR_UNLINK_THRESHOLD = 180
   };
 
 enum Ternary