I plan on writing scripts to handle these 3 items for now, but wondered if there
is any additional interest in seeing these implemented in the zfs command list?
#1 ) zfs list -totals
would list the zfs info as usual, however, at the end would give counts
of snapshots, total space allocated by the snapshots, etc...
#2 ) zfs list -zerosnaps
would list the zfs snapshots that are zero size - with an indicator when
there''s a non-zero snap-shot between two zero size snapshots.
#3 ) zfs find {filename} {-uniq}
would find all snapshot copies of named file, listing them with date/time
stamp, checksum - -uniq option would only list 1st of each matching checksum.
#1 Would be usefull to see how much space was used by snapshots and the file(s)
blocks that were modified between snapshots.
#2 Would be usefull to determine a list of potential snapshots that could be
removed / ignored - ie - all zero sized snapshots that were surrounded by zero
sized snapshots could potentially be removed as they shouldn''t contain
any changed data in them.
#3 Would usefull when trying to locate a previous version of a file, and
generating a list of possible entries to use as a restore source.
This message posted from opensolaris.org