# File lib/zfs/snapshot.rb, line 71 def destroy(options = {}) # If destroying a snapshot, need to flag all other snapshot sizes as stale # so they will be relooked up. @@stale_snapshot_size = true # Default to deferred snapshot destroying flags=["-d"] flags << "-r" if options['recursive'] cmd = "zfs destroy #{flags.join(" ")} #{@name}" puts cmd if $debug system(cmd) unless $dry_run end