# File lib/zfstools.rb, line 122 def find_eligible_datasets(interval) properties = [ "#{snapshot_property}:#{interval}", snapshot_property, ] datasets = Zfs::Dataset.list(properties) ### Group datasets into included/excluded for snapshotting included_excluded_datasets = { 'included' => [], 'excluded' => [], } # Gather the datasets given the override property filter_datasets datasets, included_excluded_datasets, "#{snapshot_property}:#{interval}" # Gather all of the datasets without an override filter_datasets datasets, included_excluded_datasets, snapshot_property ### Determine which datasets can be snapshotted recursively and which not datasets = find_recursive_datasets included_excluded_datasets end