# -b 4k block size sutable for ext4 filesystem which ganeti uses
# lz4 compression with low cpu operhead which always helps
test -z "$EXTP_VOL_PARAM" && EXTP_VOL_PARAM="-s -b 4k -o compression=lz4"
+
+# on zfs destroy remove snapshots of instance disks
+test -z "$EXTP_DESTROY" && EXTP_DESTROY="-r"
zfs where to create instance zfs volumes
vol_param parameters to use for zfs create -V
+destroy gnt-instance remove also removes snapshots (set empty to disable)
. /usr/share/ganeti/extstorage/zfs/defaults.sh
-zfs destroy $EXTP_ZFS/$VOL_NAME
+zfs destroy $EXTP_DESTROY $EXTP_ZFS/$VOL_NAME