27 # 1. Start a full ZFS send with the -e flag (embedded), redirect output to
28 # a file
29 # 2. Mess up the contents of the stream state file on disk
30 # 3. Try ZFS receive, which should fail with a checksum mismatch error
31 # 4. ZFS send to the stream state file again using the receive_resume_token
32 # 5. ZFS receieve and verify the receive completes successfully
33 # 6. Repeat steps on an incremental ZFS send
34 #
35
36 verify_runnable "both"
37
38 log_assert "Verify resumability of a full and incremental ZFS send/receive " \
39 "with the -e (embedded) flag"
40
41 sendfs=$POOL/sendfs
42 recvfs=$POOL2/recvfs
43 streamfs=$POOL/stream
44
45 log_onexit resume_cleanup $sendfs $streamfs
46
47 test_fs_setup $sendfs $recvfs $streamfs
48 resume_test "zfs send -v -e $sendfs@a" $streamfs $recvfs
49 resume_test "zfs send -v -e -i @a $sendfs@b" $streamfs $recvfs
50 file_check $sendfs $recvfs
51
52 log_pass "Verify resumability of a full and incremental ZFS send/receive " \
53 "with the -e (embedded) flag"
|
27 # 1. Start a full ZFS send with the -e flag (embedded), redirect output to
28 # a file
29 # 2. Mess up the contents of the stream state file on disk
30 # 3. Try ZFS receive, which should fail with a checksum mismatch error
31 # 4. ZFS send to the stream state file again using the receive_resume_token
32 # 5. ZFS receieve and verify the receive completes successfully
33 # 6. Repeat steps on an incremental ZFS send
34 #
35
36 verify_runnable "both"
37
38 log_assert "Verify resumability of a full and incremental ZFS send/receive " \
39 "with the -e (embedded) flag"
40
41 sendfs=$POOL/sendfs
42 recvfs=$POOL2/recvfs
43 streamfs=$POOL/stream
44
45 log_onexit resume_cleanup $sendfs $streamfs
46
47 test_fs_setup $sendfs $recvfs
48 resume_test "zfs send -v -e $sendfs@a" $streamfs $recvfs
49 resume_test "zfs send -v -e -i @a $sendfs@b" $streamfs $recvfs
50 file_check $sendfs $recvfs
51
52 log_pass "Verify resumability of a full and incremental ZFS send/receive " \
53 "with the -e (embedded) flag"
|