Require gnu or oldgnu format
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# A directory older than the listed entry was skipped completely.
|
# A directory older than the listed entry was skipped completely.
|
||||||
|
|
||||||
. ./preset
|
. ./preset
|
||||||
. $srcdir/before
|
. $srcdir/before gnu oldgnu
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
mkdir structure
|
mkdir structure
|
||||||
@@ -22,12 +22,12 @@ ls -l structure/file >/dev/null
|
|||||||
# backing it up.
|
# backing it up.
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
tar cf archive --format=gnu --listed=list structure
|
tar cf archive --listed=list structure
|
||||||
tar cfv archive --format=gnu --listed=list structure
|
tar cfv archive --listed=list structure
|
||||||
echo -----
|
echo -----
|
||||||
sleep 1
|
sleep 1
|
||||||
echo y >structure/file
|
echo y >structure/file
|
||||||
tar cfv archive --format=gnu --listed=list structure
|
tar cfv archive --listed=list structure
|
||||||
|
|
||||||
out="\
|
out="\
|
||||||
structure/
|
structure/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Test multivolume dumps from pipes.
|
# Test multivolume dumps from pipes.
|
||||||
|
|
||||||
. ./preset
|
. ./preset
|
||||||
. $srcdir/before
|
. $srcdir/before gnu oldgnu
|
||||||
|
|
||||||
# Fixme: should be configurable
|
# Fixme: should be configurable
|
||||||
# TRUSS=truss -o /tmp/tr
|
# TRUSS=truss -o /tmp/tr
|
||||||
@@ -19,13 +19,13 @@ for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
|
|||||||
done
|
done
|
||||||
done >file2
|
done >file2
|
||||||
|
|
||||||
tar -c --format=gnu --multi-volume --tape-length=10 \
|
tar -c --multi-volume --tape-length=10 \
|
||||||
--listed-incremental=t.snar \
|
--listed-incremental=t.snar \
|
||||||
-f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2
|
-f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2
|
||||||
|
|
||||||
mkdir extract-dir-pipe
|
mkdir extract-dir-pipe
|
||||||
dd bs=4096 count=10 if=t2-pipe.tar |
|
dd bs=4096 count=10 if=t2-pipe.tar |
|
||||||
PATH=$PATH ${TRUSS} tar --format=gnu -f t1-pipe.tar -f - \
|
PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
|
||||||
-C extract-dir-pipe -x --multi-volume \
|
-C extract-dir-pipe -x --multi-volume \
|
||||||
--tape-length=10 --read-full-records
|
--tape-length=10 --read-full-records
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user