Home
last modified time | relevance | path

Searched refs:sendfs (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend-c_embedded_blocks.ksh38 typeset sendfs=$POOL2/sendfs
45 log_must zfs create -o compress=lz4 $sendfs
48 typeset dir=$(get_prop mountpoint $sendfs)
61 log_must zfs snapshot $sendfs@now
62 log_must eval "zfs send -c $sendfs@now >$stream"
65 cmp_ds_cont $sendfs $recvfs
66 verify_stream_size $stream $sendfs
69 log_must eval "zfs send -c -e $sendfs@now >$stream2"
72 cmp_ds_cont $sendfs $recvfs2
73 verify_stream_size $stream2 $sendfs
[all …]
H A Drsend_022_pos.ksh44 sendfs=$POOL/sendfs
48 log_onexit resume_cleanup $sendfs $streamfs
50 test_fs_setup $sendfs $recvfs $streamfs
51 log_must zfs bookmark $sendfs@a $sendfs#bm_a
52 log_must zfs destroy $sendfs@a
54 resume_test "zfs send -i \#bm_a $sendfs@b" $streamfs $recvfs
55 log_must zfs destroy -r -f $sendfs
56 log_must zfs receive -v $sendfs </$POOL/initial.zsend
57 log_must zfs receive -v $sendfs </$POOL/incremental.zsend
58 file_check $sendfs $recvfs
H A Dsend-cD.ksh39 typeset sendfs=$POOL2/sendfs
45 log_must zfs create -o compress=lz4 $sendfs
47 typeset dir=$(get_prop mountpoint $sendfs)
50 log_must zfs snapshot $sendfs@snap0
51 log_must eval "zfs send -D -c $sendfs@snap0 >$stream0"
54 verify_stream_size $stream0 $sendfs
59 log_must zfs snapshot $sendfs@snap1
62 log_must eval "zfs send -D -c $sendfs@snap1 >$stream1"
68 log_must eval "zfs send -D -c -i snap0 $sendfs@snap1 >$inc"
71 cmp_ds_cont $sendfs $recvfs
H A Dsend-c_verify_ratio.ksh37 typeset sendfs=$POOL2/$FS
42 log_must zfs create -o compress=$prop $sendfs
45 write_compressible $(get_prop mountpoint $sendfs) \
48 typeset file="$(get_prop mountpoint $sendfs)/ddfile"
52 log_must zfs snapshot $sendfs@snap
55 log_must eval "zfs send $sendfs@snap >$BACKDIR/uncompressed"
56 verify_stream_size $BACKDIR/uncompressed $sendfs
58 log_must eval "zfs send -c $sendfs@snap >$BACKDIR/compressed"
59 verify_stream_size $BACKDIR/compressed $sendfs
62 log_must zfs destroy -r $sendfs
H A Drsend_019_pos.ksh40 log_onexit resume_cleanup $sendfs $streamfs
42 sendfs=$POOL/sendfs
46 for sendfs in $POOL2/sendfs $POOL3; do
47 test_fs_setup $sendfs $recvfs $streamfs
48 resume_test "zfs send -v $sendfs@a" $streamfs $recvfs
49 resume_test "zfs send -v -i @a $sendfs@b" $streamfs $recvfs
50 file_check $sendfs $recvfs
H A Drsend.kshlib571 sendfs=$1
575 /$sendfs/.zfs/snapshot/a ]]; then
576 diff -r /$recvfs/.zfs/snapshot/a /$sendfs/.zfs/snapshot/a
580 /$sendfs/.zfs/snapshot/b ]]; then
581 diff -r /$recvfs/.zfs/snapshot/b /$sendfs/.zfs/snapshot/b
623 typeset sendfs=$1
626 typeset sendpool=${sendfs%%/*}
629 datasetexists $sendfs && log_must zfs destroy -r $sendpool
633 if $(datasetexists $sendfs || zfs create -o compress=lz4 $sendfs); then
634 mk_files 1000 256 0 $sendfs &
[all …]
H A Dsend-c_resume.ksh37 sendfs=$POOL/sendfs
42 log_onexit resume_cleanup $sendfs $streamfs
44 test_fs_setup $sendfs $recvfs $streamfs
45 resume_test "zfs send -c -v $sendfs@a" $streamfs $recvfs
46 resume_test "zfs send -c -v -i @a $sendfs@b" $streamfs $recvfs
47 file_check $sendfs $recvfs
H A Drsend_021_pos.ksh41 sendfs=$POOL/sendfs
45 log_onexit resume_cleanup $sendfs $streamfs
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
H A Drsend_024_pos.ksh41 sendfs=$POOL/sendfs
45 log_onexit resume_cleanup $sendfs $streamfs
47 test_fs_setup $sendfs $recvfs $streamfs
48 log_must zfs unmount $sendfs
49 resume_test "zfs send $sendfs" $streamfs $recvfs
50 file_check $sendfs $recvfs
H A Dsend-c_recv_dedup.ksh36 typeset sendfs=$POOL2/sendfs
42 log_must zfs create -o compress=lz4 $sendfs
44 typeset dir=$(get_prop mountpoint $sendfs)
48 log_must zfs snapshot $sendfs@snap0
49 log_must eval "zfs send -c $sendfs@snap0 >$stream0"
53 cmp_ds_cont $sendfs $recvfs
H A Dsend-c_zstreamdump.ksh36 typeset sendfs=$POOL2/fs
38 log_must zfs create -o compress=lz4 $sendfs
39 typeset dir=$(get_prop mountpoint $sendfs)
41 log_must zfs snapshot $sendfs@full
43 log_must eval "zfs send -c $sendfs@full >$BACKDIR/full"
49 lsize_prop=$(get_prop logicalused $sendfs)
55 csize_prop=$(get_prop used $sendfs)
H A Drsend_020_pos.ksh39 sendfs=$POOL/sendfs
43 log_onexit resume_cleanup $sendfs $streamfs
45 test_fs_setup $sendfs $recvfs $streamfs
46 resume_test "zfs send -D -v $sendfs@a" $streamfs $recvfs
47 file_check $sendfs $recvfs
H A Dsend-c_mixed_compression.ksh35 send_ds=$POOL2/sendfs
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c3102 char sendfs[ZFS_MAX_DATASET_NAME_LEN]; in zfs_receive_package() local
3247 (void) strlcpy(sendfs, drr->drr_u.drr_begin.drr_toname, in zfs_receive_package()
3248 sizeof (sendfs)); in zfs_receive_package()
3249 if ((cp = strchr(sendfs, '@')) != NULL) { in zfs_receive_package()
3270 sendfs, stream_nv, stream_avl, top_zfs, cleanup_fd, in zfs_receive_package()
3643 dmu_replay_record_t *drr_noswap, const char *sendfs, nvlist_t *stream_nv, in zfs_receive_one() argument
3765 chopprefix = strrchr(sendfs, '/'); in zfs_receive_one()
3778 chopprefix = drrb->drr_toname + (chopprefix - sendfs); in zfs_receive_one()
3801 chopprefix = drrb->drr_toname + strlen(sendfs); in zfs_receive_one()
3814 ASSERT(strstr(drrb->drr_toname, sendfs) == drrb->drr_toname); in zfs_receive_one()
[all …]
/illumos-gate/usr/src/test/zfs-tests/include/
H A Dlibtest.shlib294 typeset sendfs="${2:-$TESTPOOL/create_recv_clone}"
295 typeset snap="$sendfs@snap1"
296 typeset incr="$sendfs@snap2"
303 datasetexists $sendfs && log_fail "Send filesystem must not exist."
305 log_must zfs create -o mountpoint="$mountpoint" $sendfs
312 log_must zfs destroy -r $sendfs