Eric Schrock wrote:
This case adds a new option, 'zfs create -o', which allows for any ZFS
property to be set at creation time. Multiple '-o' options can appear
in the same subcommand. Specifying the same property multiple times in
the same command results in an error. For example:
# zfs create -o compression=on -o mountpoint=/export pool/fs
Looks fine to me.
The one minor nit I have is that this even more shows up the positional
parameters problem that zfs create and other zfs(1) commands have. Some
people don't mind it and I've created interfaces like it for years;
recently however I've been trying to avoid doing so, or at least giving
an alternative.
For this case would it be possible to have this:
# zfs create -o compression=on -o mountpoint=/export -o name=pool/fs
The zfs list command already allows -o name (and zfs get should but
doesn't).
I don't feel that strongly about this but thing it might be helpful in
some cases.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss