Files
coreutils/src
Jim Meyering 3ece0355d5 cp: use far less memory in some cases
cp --link was "remembering" many name,dev,inode triples unnecessarily.
cp was doing the same, even without --link, for every directory in the
source hierarchy, while it can do its job with entries merely for the
command-line arguments.  Prompted by a report from Patrick Shoenfeld.
Details <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15081>.
* src/copy.c (copy_internal): Refrain from remembering
name,dev,inode for most files, when invoked via cp --link.
Record an infloop-avoidance triple for each directory specified
on the command line, not for each directory in the source tree.
Don't record a dir-triple when x->hard_link is set.
* NEWS (Buf fixes): Mention it.
* tests/cp/link-heap: New file.  Test for cp's lowered memory usage.
* tests/Makefile.am (TESTS): Add link-heap.
2008-11-20 10:21:52 +01:00
..
2008-10-02 13:18:00 +02:00
2008-06-16 16:40:59 +02:00
2008-06-16 16:40:59 +02:00
2008-11-20 10:21:52 +01:00
2008-10-21 08:10:29 +02:00
2008-11-20 10:21:52 +01:00
2008-11-20 10:21:52 +01:00
2008-10-19 14:15:31 +02:00
2008-10-16 06:20:50 -06:00
2008-10-20 15:40:50 +01:00
2005-07-18 07:52:37 +00:00
2008-06-16 16:40:59 +02:00
2008-11-10 08:11:59 +01:00
2003-07-06 06:08:40 +00:00
2008-06-16 16:40:59 +02:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
2008-10-19 14:15:31 +02:00
2008-10-16 23:00:22 +02:00
2008-06-16 16:40:59 +02:00
2008-06-16 16:40:59 +02:00
2008-06-02 14:40:26 +02:00
2008-06-02 14:40:26 +02:00
2008-06-16 16:40:59 +02:00
2008-06-03 09:15:00 +02:00
2008-07-15 08:30:38 +02:00
2008-10-19 14:15:31 +02:00
2008-06-16 16:40:59 +02:00
2008-10-21 08:10:29 +02:00
2008-10-21 08:10:29 +02:00
2008-06-16 16:40:59 +02:00
2008-07-27 22:18:06 +02:00
2008-10-06 22:35:57 +02:00
2008-06-16 16:40:59 +02:00
2008-10-19 14:15:31 +02:00
2008-06-16 16:40:59 +02:00
2008-06-16 16:40:59 +02:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2008-06-16 16:40:59 +02:00
2007-07-10 19:00:00 +02:00
2008-10-19 14:15:31 +02:00