$ zfs create -V 1G fastzfs/testsource/basevolume
$ mkfs.ext4 /dev/zvol/fastzfs/testsource/basevolume
mke2fs 1.42.12 (29-Aug-2014)
Discarding device blocks: done
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: eeac548a-98f1-474e-80dd-1e26b3b77538
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
$ mkdir testvol
$ mount /dev/zvol/fastzfs/testsource/basevolume testvol
$ dd if=/dev/urandom of=testvol/testfile bs=1M count=16
16+0 records in
16+0 records out
16777216 bytes (17 MB) copied, 1.10679 s, 15.2 MB/s
$ umount testvol
$ zfs snapshot fastzfs/testsource/basevolume@__base__
$ zfs create fastzfs/testtarget
$ zfs send -R fastzfs/testsource/basevolume@__base__ | zfs receive fastzfs/testtarget/basevolume
$ zfs list -r -t all fastzfs/testsource fastzfs/testtarget
NAME USED AVAIL REFER MOUNTPOINT
fastzfs/testsource 1.10G 114G 96K /fastzfs/testsource
fastzfs/testsource/basevolume 1.10G 115G 65.2M -
fastzfs/testsource/basevolume@__base__ 0 - 65.2M -
fastzfs/testtarget 1.10G 114G 96K /fastzfs/testtarget
fastzfs/testtarget/basevolume 1.10G 115G 65.2M -
fastzfs/testtarget/basevolume@__base__ 0 - 65.2M -
$ zfs clone fastzfs/testsource/basevolume@__base__ fastzfs/testsource/linkedclone
$ mount /dev/zvol/fastzfs/testsource/linkedclone testvol
$ dd if=/dev/urandom of=testvol/testfile bs=1M count=16
16+0 records in
16+0 records out
16777216 bytes (17 MB) copied, 1.05181 s, 16.0 MB/s
$ umount testvol
$ zfs snapshot fastzfs/testsource/linkedclone@__send__
$ zfs send -Rv -i fastzfs/testsource/basevolume@__base__ fastzfs/testsource/linkedclone@__send__ | zfs receive fastzfs/testtarget/linkedclone
send from @ to fastzfs/testsource/linkedclone@__send__ estimated size is 16.3M
total estimated size is 16.3M
TIME SENT SNAPSHOT
$ zfs list -r -t all fastzfs/testsource fastzfs/testtarget
NAME USED AVAIL REFER MOUNTPOINT
fastzfs/testsource 1.11G 114G 96K /fastzfs/testsource
fastzfs/testsource/basevolume 1.10G 115G 65.2M -
fastzfs/testsource/basevolume@__base__ 0 - 65.2M -
fastzfs/testsource/linkedclone 16.4M 114G 81.4M -
fastzfs/testsource/linkedclone@__send__ 0 - 81.4M -
fastzfs/testtarget 1.11G 114G 96K /fastzfs/testtarget
fastzfs/testtarget/basevolume 1.10G 115G 65.2M -
fastzfs/testtarget/basevolume@__base__ 0 - 65.2M -
fastzfs/testtarget/linkedclone 16.4M 114G 81.4M -
fastzfs/testtarget/linkedclone@__send__ 0 - 81.4M -