Jorgen,

> As the developer of software that exports data/shares like that of NFS and
> Samba. (HTTP/UPnP export, written in C) I am curious if the libzfs API is
> flexible enough for me to create my own file-system attributes, similar to
> that of "sharenfs" and obtain this information in my software.
>
> Perhaps something in the lines of:
>
>  zfs -o shareupnp=on zpool1/media

ZFS allows user-defined attributes to be set on datasets. So how about
something like that:

zfs set net.lundman:shareupnp=on rpool/export/ext

> And I will modify my streamer software to do the necessary calls to obtain
> the file-systems set to export.
>
> Or are there other suggestions to achieve similar results? I could mirror
> "sharenfs" but I was under the impression that the API is flexible. The
> ultimate goal is to move away from static paths listed in the config file.

That's a perfect use case for user-defined attributes

-- 
Regards,
        Cyril
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to