OpenSolaris

Printable Version Enter a New Search
Bug ID 6674216
Synopsis "zfs share" doesn't work, but "zfs set sharenfs=on" does
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zfs
Keywords
Responsible Engineer Mark Musante
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_105
Fixed In snv_105
Release Fixed solaris_nevada(snv_105) , solaris_10u8(s10u8_01) (Bug ID:2176253)
Related Bugs
Submit Date 11-March-2008
Last Update Date 17-December-2008
Description
After a fresh install of Nevada (or Indiana), I create a very normal filesystem/pool
"local" without any options.  Then:
# zfs share local
cannot share 'local': legacy share
use share(1M) to share this filesystem

The message seems very weird.  On the other hand, this does work:
# zfs set sharenfs=on local
But, it turns out I'm an idiot.  The zfs(1M) manpage says 'Share the specified filesystem
according to the "sharenfs" and "sharesmb" properties'.  So, "share" not doing anything
until I set "sharenfs" means it's working as documented.

It's a bit unintuative, and I do hold that the current error message is unhelpful.  I'm
lowering the priority, though.
Work Around
N/A
Comments
N/A