]> arthur.barton.de Git - bup.git/commit
Test sparse restore of short in-buffer zero run
authorRob Browning <rlb@defaultvalue.org>
Sun, 15 Mar 2015 21:38:34 +0000 (16:38 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 28 Mar 2015 15:55:14 +0000 (10:55 -0500)
commitbc95228067069baef92d9085ee925d3bae89d70d
tree4fc19abc064efa9d10ef0e8a59f2ed0070bfc6e2
parent701b158eb6fcbbffcbdcc88018387341a9dfa47a
Test sparse restore of short in-buffer zero run

Test that sparse --restore handles the case where within one call to
write_sparsely() (one buffer) we have non-zero bytes, followed by a run
of zero bytes that's longer than the minimum sparse run
length (currently 512), followed by non-zero bytes.

Currently, the initial non-zero bytes will be lost, and this test will
fail.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-sparse-files.sh