Peter Taps
2010-Aug-04 04:21 UTC
[zfs-code] How to know if a given zfs filesystem is shared as CIFS?
Folks, In my application, I need to get some information for zfs and display to user. Is there a way to identify if a given zfs filesystem has been shared as CIFS? Ideally, zfs library API would be better. However, a command line tool would do as well. I would just need to parse the output. Thank you in advance for your help. Regards, Peter -- This message posted from opensolaris.org
Brad Stone
2010-Aug-04 05:25 UTC
[zfs-code] How to know if a given zfs filesystem is shared as CIFS?
For MenloWare I did this using "sharemgr show -x" and parsing the output. On Tue, Aug 3, 2010 at 9:21 PM, Peter Taps <no-reply at opensolaris.org> wrote:> Folks, > > In my application, I need to get some information for zfs and display to > user. Is there a way to identify if a given zfs filesystem has been shared > as CIFS? Ideally, zfs library API would be better. However, a command line > tool would do as well. I would just need to parse the output. > > Thank you in advance for your help. > > Regards, > Peter > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-code mailing list > zfs-code at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-code >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20100803/771b3b71/attachment.html>
Ian Collins
2010-Aug-04 09:01 UTC
[zfs-code] How to know if a given zfs filesystem is shared as CIFS?
On 08/ 4/10 04:21 PM, Peter Taps wrote:> Folks, > > In my application, I need to get some information for zfs and display to user. Is there a way to identify if a given zfs filesystem has been shared as CIFS? Ideally, zfs library API would be better. However, a command line tool would do as well. I would just need to parse the output. > >zfs get sharesmb <filesystem>. Or from libzfs, use zfs_prop_get with ZFS_PROP_SHARESMB as the property. -- Ian.