From owner-freebsd-fs@FreeBSD.ORG Thu Oct 9 01:10:55 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18EAFEC9 for ; Thu, 9 Oct 2014 01:10:55 +0000 (UTC) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::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 8FF1DA57 for ; Thu, 9 Oct 2014 01:10:54 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id mk6so212456lab.29 for ; Wed, 08 Oct 2014 18:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphix.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EAnyspPFcDv96klXIY/tS0TW6eUA4V/Qa/Qwt2xOF7o=; b=dqGlZM74rO84XwFPjUGLChD126MAotmjGFXGcDq+QFxXoI6AnjyRG0VquVpqXWyfRQ zUYWWeD0wgnklwq7XpkJXOQsdoLnfJuSgLh56IJlFW7JilQCbdQvtGOl0wzu8Kc/orfF BlKHk7EablVmWQVgqbvjfh1csc5uqFjPexB7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=EAnyspPFcDv96klXIY/tS0TW6eUA4V/Qa/Qwt2xOF7o=; b=V2+TIKrdrgyH7MAsDdCXdkEp+yoEkCo4FN6JQTsJfGZYVeMn6bHpf5/6emh+WPC5uU tgYE83NwTNd9jxtLF4ilc3N6Wd6m8oFfN2njQ3evG31anw9XIW0ZhjAbi/hh0rwokvyw 0IfIdzXWmEupGIBjKgxlFmXjQzyuwAZ621Ox53pgdvjHyULCclZew6n0DTjOmDgHTAc0 EHQVr8rh8VvCcoeY8pheKmzaSCouFAwGsjEWYKGSK/J7pHl8hfb7Mgls90J7V4pSGWMG W4/F6u4p7Iwm7bgsR3wP5N5NNEAJ94xxw6mLBKXp6DA2Sxle0+BVH8/oZAfoAMCVlYNR ONnA== X-Gm-Message-State: ALoCoQnhmEzR00SZY4+qbFt8dQUXORidbPHu9GxeA0XzsBGDXeCWoFkBsugPQxGUFe7b5DON0dWv MIME-Version: 1.0 X-Received: by 10.152.19.37 with SMTP id b5mr11506641lae.43.1412817052268; Wed, 08 Oct 2014 18:10:52 -0700 (PDT) Received: by 10.25.155.132 with HTTP; Wed, 8 Oct 2014 18:10:52 -0700 (PDT) In-Reply-To: <1422065A4E115F409E22C1EC9EDAFBA4604F7E@sofdc01exc02.postbank.bg> References: <1422065A4E115F409E22C1EC9EDAFBA4604F7E@sofdc01exc02.postbank.bg> Date: Wed, 8 Oct 2014 18:10:52 -0700 Message-ID: Subject: Re: [OpenZFS Developer] ZFS API From: Matthew Ahrens To: "Ivailo A. Tanusheff" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "developer@open-zfs.org" , freebsd-fs 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: Thu, 09 Oct 2014 01:10:55 -0000 The CLI is the supported, stable interface for ZFS administrative operations. libzfs_core is on its way to being a stable API, but is incomplete. Snapshot creation and destruction are there, though. See libzfs_core.c. There's some more info about its future direction here: http://blog.delphix.com/matt/2012/01/17/the-future-of-libzfs/ libzfs will probably never be a stable API, but it is complete, and plenty of people have built tools around it. But you must be very wary of its sharp edges. --matt On Wed, Oct 8, 2014 at 12:40 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 on FreeBSD - > /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 in my > daemons :) > > > > Regards, > > > > Ivailo Tanusheff > > > > 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. > > _______________________________________________ > developer mailing list > developer@open-zfs.org > http://lists.open-zfs.org/mailman/listinfo/developer > >