diff options
author | Ondrej Oprala <ooprala@redhat.com> | 2013-01-22 14:21:23 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-04-14 01:00:45 +0100 |
commit | 8901e010fa24ba375d53e3e37fc7819621adcf19 (patch) | |
tree | 1f20f49bb0c455525b042e838462d4396c97a314 /tests/local.mk | |
parent | 4114c93af398d7aecb5eb253f90d9b4cc0785643 (diff) | |
download | coreutils-8901e010fa24ba375d53e3e37fc7819621adcf19.tar.xz |
dd: avoid buffer allocations unless needed
* src/dd.c: Add new static global variable ibuf.
(alloc_ibuf, alloc_obuf): New functions factored from dd_copy().
(dd_copy): Call the new functions to allocate memory for
ibuf and obuf when necessary.
(skip): Likewise.
* tests/dd/no-allocate.sh: New test.
* tests/local.mk: Reference the test.
Diffstat (limited to 'tests/local.mk')
-rw-r--r-- | tests/local.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/local.mk b/tests/local.mk index e3a72ab3a..0b019d951 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -465,6 +465,7 @@ all_tests = \ tests/df/skip-rootfs.sh \ tests/dd/direct.sh \ tests/dd/misc.sh \ + tests/dd/no-allocate.sh \ tests/dd/nocache.sh \ tests/dd/not-rewound.sh \ tests/dd/reblock.sh \ |