So, zfs get ignores a leading / in a dataset name:

root@storage ~ # zfs get sharenfs /export/media       
NAME          PROPERTY  VALUE     SOURCE
export/media  sharenfs  off       default

Whereas zfs set does not:

root@storage ~ # zfs set sharenfs=on /export/media
cannot open '/export/media': invalid dataset name

This seems a bit inconsistent? Personally, I'd prefer they both ignore a
leading /, as that makes it easier to tab complete from a shell prompt,
but either way, I think it should be consistent.

Thoughts? This is latest omnios stable btw, but I don't think the
behavior has changed.
_______________________________________________
developer mailing list
[email protected]
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to