From nobody Mon May 6 08:28:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1500305601156922.8072194659377; Mon, 17 Jul 2017 08:33:21 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 007547A169; Mon, 17 Jul 2017 15:33:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 508817D925; Mon, 17 Jul 2017 15:33:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 8CD674A491; Mon, 17 Jul 2017 15:33:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v6HFXCub030121 for ; Mon, 17 Jul 2017 11:33:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0BE8917AE3; Mon, 17 Jul 2017 15:33:12 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0530B5D9C1 for ; Mon, 17 Jul 2017 15:33:10 +0000 (UTC) Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EA8687A172 for ; Mon, 17 Jul 2017 15:33:08 +0000 (UTC) Received: by mail-qk0-f195.google.com with SMTP id d136so1497445qkg.3 for ; Mon, 17 Jul 2017 08:33:08 -0700 (PDT) Received: from yu-ohki.datto.lan ([47.19.105.250]) by smtp.gmail.com with ESMTPSA id d184sm2729782qkc.68.2017.07.17.08.33.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Jul 2017 08:33:07 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 007547A169 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 007547A169 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uU/cQsX7" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EA8687A172 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=ngompa13@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com EA8687A172 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=t35PlGLdZ8davNufVs7VnsP3rAj2ou7Rt80x1l5B4xk=; b=uU/cQsX7Fg1k1GEvePUc9Lj4/Bwrnxr+gw0dohbIH72pzJVlzIyAuDfwroF8JYNmdf ijxwDUH7SB8PaPMm6zEPI2qz5YbBKwUOS5HD9sz73ft6zoXpFDQQ15WmJE59Z5gHv3sM R9HUezGyWzxT5lJsUHz+apwd6TRWwFfKV9AqfN+QZXve3JEtp3JGag/dv8TnDGuJIY9g yVkShBJao8zUI6SxynemtmpofhbXBcq8gET8bz5CDGm9yPQRS2wTWy/b75cScTj48D2+ /JMB6tNZjjasVQl9ii/6DQtWj8j9wCW8fVUvhHfWVTvnUqBexVrKRP0YlpoX0Wh+vCml JjMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=t35PlGLdZ8davNufVs7VnsP3rAj2ou7Rt80x1l5B4xk=; b=kJQ466IRfXtLc/GsjgJUaLIiB6ovtD6FSQdaJTFGRmIyc6TNdXuffgjd2eSOb/KgYX 4rQiOX81yTFd0olb1U0ITHeclFQz6QSD8BBuFVuDeL0GNm65arFBkOCORbauqVxN78I8 E/Vf7esfCdcpdIQuooTNlrEo1TMzAYlcKnh/avcWiB2j7LYV6Lr4YGgemFCfvwItyeqo mB3RoL00B9fpkLesUdQEDSYIxjfsE8BiSNyjbhZIVoTKezhTHMplPf2pS7yNmKyaTvGL 7b7wJ7EQXe+F1m8hkLXz9hOWssCgoEv1q8Rq0RxBN57Mr4E5SvaoJ+Qz7q4dHFWxSLQp wcPQ== X-Gm-Message-State: AIVw112T5UF+ayc5g/ldB1/SDltLqBrwWfYQaFESPCoRYqun5hbXk8xg LLKp7xJd3KBXnusp4S6ZVA== X-Received: by 10.55.75.8 with SMTP id y8mr1600321qka.247.1500305587910; Mon, 17 Jul 2017 08:33:07 -0700 (PDT) From: Neal Gompa To: libvir-list@redhat.com Date: Mon, 17 Jul 2017 11:32:46 -0400 Message-Id: <20170717153246.19796-1-ngompa13@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 17 Jul 2017 15:33:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 17 Jul 2017 15:33:09 +0000 (UTC) for IP:'209.85.220.195' DOMAIN:'mail-qk0-f195.google.com' HELO:'mail-qk0-f195.google.com' FROM:'ngompa13@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.42 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.220.195 mail-qk0-f195.google.com 209.85.220.195 mail-qk0-f195.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Neal Gompa Subject: [libvirt] [PATCH] spec: Add support for building the zfs storage driver X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 17 Jul 2017 15:33:16 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Where it can be supported in Fedora, the driver is built and made available as a subpackage. Signed-off-by: Neal Gompa --- libvirt.spec.in | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index ff090b384..ccd2429de 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -71,6 +71,14 @@ %define with_storage_gluster 0%{!?_without_storage_gluster:1} %define with_numactl 0%{!?_without_numactl:1} =20 +# Enable zfs storage driver for F25+, as a compatible zfs +# implementation is available for use. +%if 0%{?fedora} >=3D 25 + %define with_storage_zfs 0%{!?_without_storage_zfs:1} +%else + %define with_storage_zfs 0 +%endif + # A few optional bits off by default, we enable later %define with_fuse 0%{!?_without_fuse:0} %define with_cgconfig 0%{!?_without_cgconfig:0} @@ -115,6 +123,12 @@ %endif %endif =20 +# zfs-fuse is not available on some architectures +%ifarch s390 s390x aarch64 + %define with_storage_zfs 0 +%endif + + # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor, # VMware, libxenserver (xenapi), libxenlight (Xen 4.1 and newer), # or HyperV. @@ -373,6 +387,11 @@ BuildRequires: glusterfs-devel >=3D 3.4.1 %if %{with_storage_sheepdog} BuildRequires: sheepdog %endif +%if %{with_storage_zfs} +# Support any conforming implementation of zfs +BuildRequires: /sbin/zfs +BuildRequires: /sbin/zpool +%endif %if %{with_numactl} # For QEMU/LXC numa info BuildRequires: numactl-devel @@ -705,6 +724,21 @@ sheepdog volumes using. %endif =20 =20 +%if %{with_storage_zfs} +%package daemon-driver-storage-zfs +Summary: Storage driver plugin for ZFS +Group: Development/Libraries +Requires: libvirt-daemon-driver-storage-core =3D %{version}-%{release} +# Support any conforming implementation of zfs +Requires: /sbin/zfs +Requires: /sbin/zpool + +%description daemon-driver-storage-zfs +The storage driver backend adding implementation of the storage APIs for +ZFS volumes. +%endif + + %package daemon-driver-storage Summary: Storage driver plugin including all backends for the libvirtd dae= mon Group: Development/Libraries @@ -723,6 +757,9 @@ Requires: libvirt-daemon-driver-storage-rbd =3D %{versi= on}-%{release} %if %{with_storage_sheepdog} Requires: libvirt-daemon-driver-storage-sheepdog =3D %{version}-%{release} %endif +%if %{with_storage_zfs} +Requires: libvirt-daemon-driver-storage-zfs =3D %{version}-%{release} +%endif =20 %description daemon-driver-storage The storage driver plugin for the libvirtd daemon, providing @@ -1180,6 +1217,12 @@ rm -rf .git %define arg_storage_gluster --without-storage-gluster %endif =20 +%if %{with_storage_zfs} + %define arg_storage_zfs --with-storage-zfs +%else + %define arg_storage_zfs --without-storage-zfs +%endif + %if %{with_numactl} %define arg_numactl --with-numactl %else @@ -1288,7 +1331,7 @@ rm -f po/stamp-po %{?arg_storage_rbd} \ %{?arg_storage_sheepdog} \ %{?arg_storage_gluster} \ - --without-storage-zfs \ + %{?arg_storage_zfs} \ --without-storage-vstorage \ %{?arg_numactl} \ %{?arg_numad} \ @@ -1851,6 +1894,11 @@ exit 0 %{_libdir}/%{name}/storage-backend/libvirt_storage_backend_sheepdog.so %endif =20 +%if %{with_storage_zfs} +%files daemon-driver-storage-zfs +%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_zfs.so +%endif + %if %{with_qemu} %files daemon-driver-qemu %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/ --=20 2.13.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list