changeset 17622:ff4271bd2f21

savedir: new symbol for fast-read version * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs like GNU cp that want to use SAVEDIR_SORT_INODE if available, SAVEDIR_SORT_NONE otherwise. Problem reported by Bernhard Voelker in: http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 26 Feb 2014 23:57:26 -0800
parents 86af85d364e1
children 90bd1e522c10
files ChangeLog lib/savedir.h
diffstat 2 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 25 11:16:27 2014 -0800
+++ b/ChangeLog	Wed Feb 26 23:57:26 2014 -0800
@@ -1,3 +1,11 @@
+2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+	savedir: new symbol for fast-read version
+	* lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
+	like GNU cp that want to use SAVEDIR_SORT_INODE if available,
+	SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
+	http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
+
 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
 
 	unistd: port readlink to Mac OS X 10.3.9
--- a/lib/savedir.h	Tue Feb 25 11:16:27 2014 -0800
+++ b/lib/savedir.h	Wed Feb 26 23:57:26 2014 -0800
@@ -26,9 +26,12 @@
 enum savedir_option
   {
     SAVEDIR_SORT_NONE,
-    SAVEDIR_SORT_NAME
+    SAVEDIR_SORT_NAME,
 #if D_INO_IN_DIRENT
-    , SAVEDIR_SORT_INODE
+    SAVEDIR_SORT_INODE,
+    SAVEDIR_SORT_FASTREAD = SAVEDIR_SORT_INODE
+#else
+    SAVEDIR_SORT_FASTREAD = SAVEDIR_SORT_NONE
 #endif
   };