Lines Matching refs:root
41 # For a certain number of iterations, with root setup for each test set:
42 # - Recursively snapshot the root.
43 # - Clone the volume to another name in the root.
47 # - Rename the root.
48 # - Destroy the renamed root.
110 root=${ROOTPREFIX}_iter${i}
111 # Test set 2: Recursive snapshot, cloning/promoting, and root-rename
112 root_setup $root
113 log_must $ZFS snapshot -r $root@snap
114 log_must $ZFS clone $root/vol0@snap $root/vol1
115 test_exists $root/vol1
116 test_notexists $root/vol1@snap
118 log_must $ZFS promote $root/vol1
119 test_exists $root/vol0 $root/vol1 $root/vol1@snap
120 test_notexists $root/vol0@snap
123 log_must $ZFS promote $root/vol0
124 test_exists $root/vol0 $root/vol1 $root/vol0@snap
125 test_notexists $root/vol1@snap
128 log_must $ZFS snapshot $root/vol1@newsnap
129 log_must $ZFS clone $root/vol1@newsnap $root/vol2
130 test_exists $root/vol2
131 test_notexists $root/vol2@snap
134 log_must $ZFS promote $root/vol2
135 test_exists $root/vol0 $root/vol0@snap \
136 $root/vol1 $root/vol2 $root/vol2@newsnap
137 test_notexists $root/vol1@snap $root/vol1@newsnap
139 renamed=${root}_renamed
140 log_must $ZFS rename $root $renamed
141 # Ensure that the root rename applies to clones and promoted clones.
143 test_notexists $root/vol1 $renamed/vol1@snap $renamed/vol1@newsnap
145 test_notexists $root/$vol $root/$vol@snap