On 02/21/2013 04:02 PM, Markus Grundmann wrote: > On 02/21/2013 03:34 PM, Jan Owoc wrote: >> Does this do what you want? (zpool destroy is already undo-able) Jan > > Jan that's not was I want. > I want set a property that's enable/disable all modifications with zpool > commands (e.g. "zfs destroy", "zfs detach" ...) > > This property is also possible for zfs commands (e.g. "zfs destroy > <filesystem>") > I did'nt need a workaround to protect my filesystems based on snapshots > with hold-state.
You've already been told how to do it - create a custom property and alias your zfs/zpool commands to a shell script which checks them. Cheers, -- Saso _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss