[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mv accross filesystems
Ok, here is the patch to fileutils-3.12/src/cp.c to make it use a
bigger buffer size. Note that the buffer is created on the stack, so
that you have to set _stksize big enough (at least 10K).
--- fileutils-3.12/src/cp.c~ Thu Nov 3 23:42:12 1994
+++ fileutils-3.12/src/cp.c Fri Feb 24 10:19:16 1995
@@ -1177,6 +1177,11 @@
}
#endif
+ /* If not making holes use a bigger buffer. */
+
+ if (!make_holes && buf_size < 8192)
+ buf_size = 8192;
+
/* Make a buffer with space for a sentinel at the end. */
buf = (char *) alloca (buf_size + sizeof (int));
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"