From nobody Wed Jun 23 13:24:20 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D56B711E1511 for ; Wed, 23 Jun 2021 13:24:33 +0000 (UTC) (envelope-from ionut.mihalache1506@gmail.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G93rw2LVxz4g9t for ; Wed, 23 Jun 2021 13:24:32 +0000 (UTC) (envelope-from ionut.mihalache1506@gmail.com) Received: by mail-io1-xd2f.google.com with SMTP id f10so3381448iok.6 for ; Wed, 23 Jun 2021 06:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bhk6AeTlY8XYAn+DqEWnJdCKakSaClCXh18n65WJFc8=; b=JIlTWeztbkwOS1k/2m8DB6PGiaiEMfk4lIuO/XS+uvkIeeuzlvVUz1v7vE307qtXD8 5zyopfeAYHZGzFc1l1vScxrb+Q8IAakjQ7GERja9SacLqtCoDSvkuffTb4ygCRKcOapd nHWsxoX1Np68thvPHPVFV+LDarkTfWJIt0PM1+43aZHJ1q3vg37296VBxEl46kVD5xQJ JOVKcvO9e6hYeW5cNQ2XJ2AXunQHASatCssrHRiFxW/c1kRX0QnUSFpi6oyi4ZutacjR uoFG/EgwEJhgyJIG/r7SK0Vg0cbwwO8hXguZqwkEIhx7z5eNzJ4swUtafDMu41GfPK1O 1p8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bhk6AeTlY8XYAn+DqEWnJdCKakSaClCXh18n65WJFc8=; b=Nubr03zZdHMw7B0d2BFSoNN51Wg+OYJ9a4KHfKQD3+Zy/AN70QRpbTzVJUn13Kjc5s 72P4ToyeOop6L2zZ5TMZbUZsn8H9ypQyxLzoSVFd5CjUqs9bqNlyuz1r5pS7ta/Fn6ZZ svDdhK8SWKLjVmQ96FB7ZGxMH+Ug7iUyNsGnbdoIBaAUzjP69TOirOg7Ju+/7uVt1LfM XBMucgspi8RYEvxFdyXIMbM0IgptAQvTTyet4ASvUdCjIW6CgwSb5C19r3fpmwx7Ir5x BBTv0mgTPx64YGUdcvGGCDPAdsYwYz+PNhAWgdllYarcknH0sGAK4V0BShT+VlMncMuY UtZg== X-Gm-Message-State: AOAM532rh0NEOhZDWI6muO+SxhJYFq4VhfYKsH6ZQfr5eQKNBnzYcXAR hnDmIIlj9pm8pOwbiTNzDw1BhJfzO2A0b2y2rEyZEbMT X-Google-Smtp-Source: ABdhPJwyfxoNs5g9pFhwho9nfzVi2K/sEWz2rekVvASudOeLfv1xHBZgfZYmUGNOphL8W1m9RFwFq4zICA71mirneXk= X-Received: by 2002:a6b:760e:: with SMTP id g14mr7099826iom.119.1624454671152; Wed, 23 Jun 2021 06:24:31 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: =?UTF-8?Q?Ionu=C8=9B_Mihalache?= Date: Wed, 23 Jun 2021 16:24:20 +0300 Message-ID: Subject: libzfs.h and libnvpair.h To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a0bac505c56ed33d" X-Rspamd-Queue-Id: 4G93rw2LVxz4g9t X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=JIlTWezt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ionutmihalache1506@gmail.com designates 2607:f8b0:4864:20::d2f as permitted sender) smtp.mailfrom=ionutmihalache1506@gmail.com X-Spamd-Result: default: False [-3.28 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_MIXED_CHARSET(0.71)[subject]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::d2f:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d2f:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2f:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-ThisMailContainsUnwantedMimeParts: Y --000000000000a0bac505c56ed33d Content-Type: text/plain; charset="UTF-8" Hello, I am working into bringing the checkpoint functionality for bhyve and I think I could use the zfs functionalities for the implementation. I tried to build the world with -DWITH_ZFS and -DWITH_CDDL(I don't exactly know what macro or macros should be defined or if there are any, these two I tried based on the analysis of the Makefiles) but this doesn't seem to work. When I include libzfs.h in order to use the functions from there, I get a compilation error saying that libnvpair.h is not found. After investigating the problem I saw that in /usr/include libnvpair.h is not present. I copied the files from /usr/local/include but after this there was a problem with the redefinition of some functions. Is it a way to use(or 'activate') the zfs functionalities directly in the code without using syscalls like system or exec(I would like to avoid them as much as possible). Thank you. --000000000000a0bac505c56ed33d--