Darren J Moffat wrote:
Haudy Kazemi wrote:
You run:
zfs set compression=off tank/home/smith
but that doesn't unset the compression setting for filesystem
'smith', it just overrides the inheritance of compression=on (as
expected).
So how to unset/reset?
zfs inherit compression tank/home/smith
*****
In short, I think an alias for 'zfs inherit' could be added to 'zfs
set' to make it more clear to those of us still new to ZFS. Either
that, or add some additional pointers in the Properties documentation
that the set command can't unset/reset properties.
That would to me be confusing it would also complicate the code quite
a lot because now the action would be part of the value for a
different subcommand. It also won't work at all for some properties,
in particular what if you have a hostname called "inherit" that is
going to be very confusing for the share* properties.
If there is an issue here I believe we should first trying and resolve
it with documentation changes.
I'd have to say that probably most customers I've worked with on zfs
have fallen over this one, given up trying to work out how to do it, and
had to ask (and the first time it happened, I had to ask too). The
obvious things they have tried are generally something along the lines
zfs set foobar=inherit[ed] ...
There is something unnatural about the 'zfs inherit' command -- it just
isn't where that functionality is expected to be, based on the structure
of the other commands.
--
Andrew
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss