Chris Gerhard wrote:
You are not alone.
My preference would be for an optional -t option to zfs destroy:
zfs destroy -t snapshot tank/[EMAIL PROTECTED]
or
zfs destroy -t snapshot -r tank/fs
would delete all the snapshots below tank/fs
I agree since that would fit nicely with the existing CLI model.
This is much nicer than the proposal of separate destroy verbs for each
object type. It is is important to use this style because otherwise we
restrict new object types and needlessly complicate the cli over time.
On the other hand personally I just don't see the need for this since
the @ char isn't special to the shell so I don't see where the original
problem came from.
One thing that might help here, when not running as root or as a user
with "ZFS File System Management" RBAC profile, is user delegation. This
will allow you to run the script as user that can only do certain
operations to filesystems that they own or have been delegated specific
access to operate on.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss