Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
joe@joes-Mac openzfs % for i in {1..5}; do echo "$i..."; sudo zpool create foo disk0 && sudo chown joe /Volumes/foo && sleep 5 && touch /Volumes/foo/{a1.txt,a2.txt,a3.txt,a4.txt,a5.txt,a6.txt,a7.txt,a8.txt,a9.txt} && sudo zfs unmount foo && sudo zfs set com.apple.mimic=hfs foo && sudo zfs mount foo && sleep 15 && mdfind a1.txt && mdfind a2.txt && mdfind a3.txt && mdfind a4.txt && mdfind a5.txt && mdfind a6.txt && mdfind a7.txt && mdfind a8.txt && mdfind a9.txt && ls -i /Volumes/foo && sudo zpool destroy foo; done
1...
Volume foo on disk7s1 unmounted
224 a1.txt 226 a3.txt 228 a5.txt 230 a7.txt 232 a9.txt
225 a2.txt 227 a4.txt 229 a6.txt 231 a8.txt
Volume foo on disk7s1 unmounted
2...
Volume foo on disk7s1 unmounted
25 a1.txt 27 a3.txt 29 a5.txt 31 a7.txt 38 a9.txt
26 a2.txt 28 a4.txt 30 a6.txt 37 a8.txt
Volume foo on disk7s1 unmounted
3...
Volume foo on disk7s1 unmounted
152 a1.txt 154 a3.txt 156 a5.txt 158 a7.txt 160 a9.txt
153 a2.txt 155 a4.txt 157 a6.txt 159 a8.txt
Volume foo on disk7s1 unmounted
4...
Volume foo on disk7s1 unmounted
146 a1.txt 148 a3.txt 150 a5.txt 152 a7.txt 154 a9.txt
147 a2.txt 149 a4.txt 151 a6.txt 153 a8.txt
Volume foo on disk7s1 unmounted
5...
Volume foo on disk7s1 unmounted
174 a1.txt 176 a3.txt 178 a5.txt 180 a7.txt 182 a9.txt
175 a2.txt 177 a4.txt 179 a6.txt 181 a8.txt
Volume foo on disk7s1 unmounted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment