From owner-freebsd-fs@FreeBSD.ORG Wed Oct 8 17:44:19 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A2C3029C for ; Wed, 8 Oct 2014 17:44:19 +0000 (UTC) Received: from mail-yh0-x22a.google.com (mail-yh0-x22a.google.com [IPv6:2607:f8b0:4002:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 654FB14C for ; Wed, 8 Oct 2014 17:44:19 +0000 (UTC) Received: by mail-yh0-f42.google.com with SMTP id t59so4216111yho.29 for ; Wed, 08 Oct 2014 10:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=idVqZyB65tQWEwUx24yyCo8GA/ADBQPTDZ7spzZCcls=; b=r2PfeUgRvY5LRoNqbOE0cxmSfaVEylr7coA1L/MMS4G5ykgV/vQ6Xs1QnVym5VnGOu y0evhr37guI0j4BA2IM/EBWWCmszGxGoMXnyDjFUI89IzIOmfk4HuT9MSFj/19N+f8sW sm01OJk4SI1bg3QexzZpDv8krYhPD+8Ij349P7g5sUALxz9WkAZ8e+miMfbQpk8CcRPE 8vyCVa4K5L8yHaBLwKRsSswhNDs1BUO+KtpsO1ozb3WHjSIDsLSHwjE0tdN9k7UfoThZ H4VGzP8TFR0YFQnjq/Vkk9QaMYNhw1vGWTVQQBPj4Ca6opR4pY6g8idjqr2fuTpCspZ0 cRpA== MIME-Version: 1.0 X-Received: by 10.236.134.202 with SMTP id s50mr15904962yhi.4.1412790258482; Wed, 08 Oct 2014 10:44:18 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.170.82.197 with HTTP; Wed, 8 Oct 2014 10:44:18 -0700 (PDT) In-Reply-To: <1422065A4E115F409E22C1EC9EDAFBA46044E4@sofdc01exc02.postbank.bg> References: <1422065A4E115F409E22C1EC9EDAFBA46044E4@sofdc01exc02.postbank.bg> Date: Wed, 8 Oct 2014 10:44:18 -0700 X-Google-Sender-Auth: I0PJ54OHfFBefZQz6G7HCxfZiQA Message-ID: Subject: Re: ZFS API From: "K. Macy" To: "Ivailo A. Tanusheff" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-fs@FreeBSD.org" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2014 17:44:19 -0000 On Mon, Oct 6, 2014 at 2:44 AM, Ivailo A. Tanusheff 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" >