Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2014 10:44:18 -0700
From:      "K. Macy" <kmacy@freebsd.org>
To:        "Ivailo A. Tanusheff" <ITanusheff@postbank.bg>
Cc:        "freebsd-fs@FreeBSD.org" <freebsd-fs@freebsd.org>
Subject:   Re: ZFS API
Message-ID:  <CAHM0Q_PXf=6SPFWRVGHUUmzB_P00yyne1ZHp8_2m8Y0v_aopfQ@mail.gmail.com>
In-Reply-To: <1422065A4E115F409E22C1EC9EDAFBA46044E4@sofdc01exc02.postbank.bg>
References:  <1422065A4E115F409E22C1EC9EDAFBA46044E4@sofdc01exc02.postbank.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 6, 2014 at 2:44 AM, Ivailo A. Tanusheff <ITanusheff@postbank.bg>
wrote:

> Dear all,
>
> I am looking for an API and documentation about programing some actions on
> C/C++ for ZFS management.
> I have found an library -
> /usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h but this lacks
> any documentation.
> I do not want to make a huge development and my skills are not great, so I
> need some useful API and documentation.
> Is there such thing available around?
> What I need is to include some snapshot management techniques :)
>
> Regards,
>
> Ivailo Tanusheff
>
>
Solaris' ndmpd snapshots the volumes in question prior to doing a back up.
It isn't what you asked for, but it is an example of other applications
using libzfs. That file works almost unmodified in the (incomplete) FreeBSD
ndmpd port.

https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/ndmpd/ndmp/ndmpd_zfs.c


If you intend on being a frequent correspondent on public mailing lists you
might consider using a webmail account to avoid issues with spam etc. Most
of all, the confidentiality footers don't make a lot of sense in this
context.

Cheers.

-K

>
> Disclaimer:
>
> This communication is confidential. If you are not the intended recipient,
> you are hereby notified that any disclosure, copying, distribution or
> taking any action in reliance on the contents of this information is
> strictly prohibited and may be unlawful. If you have received this
> communication by mistake, please notify us immediately by responding to
> this email and then delete it from your system.
> Eurobank Bulgaria AD is not responsible for, nor endorses, any opinion,
> recommendation, conclusion, solicitation, offer or agreement or any
> information contained in this communication.
> Eurobank Bulgaria AD cannot accept any responsibility for the accuracy or
> completeness of this message as it has been transmitted over a public
> network. If you suspect that the message may have been intercepted or
> amended, please call the sender.
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHM0Q_PXf=6SPFWRVGHUUmzB_P00yyne1ZHp8_2m8Y0v_aopfQ>