Skip to contentSkip to conversation

block: Drop the sheepdog block driver

PATCH In review Markus Armbruster 2 participants 2 messages May 1, 2021 – May 3, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Drop the sheepdog block driver

It was deprecated in commit e1c4269763, v5.2.0. See that commit message for rationale.

---
 docs/system/deprecated.rst             |    9 -
 docs/system/device-url-syntax.rst.inc  |   18 -
 docs/system/qemu-block-drivers.rst.inc |   69 -
 docs/system/removed-features.rst       |    7 +
 configure                              |   10 -
 meson.build                            |    1 -
 qapi/block-core.json                   |   93 +-
 qapi/transaction.json                  |    8 +-
 block/sheepdog.c                       | 3356 ------------------------
 .gitlab-ci.yml                         |    1 -
 MAINTAINERS                            |    6 -
 block/meson.build                      |    1 -
 block/trace-events                     |   14 -
 tests/qemu-iotests/005                 |    5 -
 tests/qemu-iotests/025                 |    2 +-
 tests/qemu-iotests/check               |    3 +-
 tests/qemu-iotests/common.rc           |    4 -
 17 files changed, 14 insertions(+), 3593 deletions(-)
 delete mode 100644 block/sheepdog.c
docs/system/deprecated.rst +0 -9
index 80cae86252..519c49b4a2 100644
@@ -286,15 +286,6 @@ The above, converted to the current supported format::
 
   json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"}
 
-``sheepdog`` driver (since 5.2.0)
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-The ``sheepdog`` block device driver is deprecated. The corresponding upstream
-server project is no longer actively maintained. Users are recommended to switch
-to an alternative distributed block device driver such as RBD. The
-``qemu-img convert`` command can be used to liberate existing data by moving
-it out of sheepdog volumes into an alternative storage backend.
-
 linux-user mode CPUs
 --------------------
 
docs/system/device-url-syntax.rst.inc +0 -18
index 6f6ec8366b..d15a021508 100644
@@ -85,24 +85,6 @@ These are specified using a special URL syntax.
    Currently authentication must be done using ssh-agent. Other
    authentication methods may be supported in future.
 
-``Sheepdog``
-   Sheepdog is a distributed storage system for QEMU. QEMU supports
-   using either local sheepdog devices or remote networked devices.
-
-   Syntax for specifying a sheepdog device
-
-   ::
-
-      sheepdog[+tcp|+unix]://[host:port]/vdiname[?socket=path][#snapid|#tag]
-
-   Example
-
-   .. parsed-literal::
-
-      |qemu_system| --drive file=sheepdog://192.0.2.1:30000/MyVirtualMachine
-
-   See also https://sheepdog.github.io/sheepdog/.
-
 ``GlusterFS``
    GlusterFS is a user space distributed file system. QEMU supports the
    use of GlusterFS volumes for hosting VM disk images using TCP, Unix
docs/system/qemu-block-drivers.rst.inc +0 -69

75 lines not on this page · raw message

docs/system/removed-features.rst +7 -0
index 29e90601a5..7ce91133da 100644
@@ -461,3 +461,10 @@ VXHS backend (removed in 5.1)
 '''''''''''''''''''''''''''''
 
 The VXHS code did not compile since v2.12.0. It was removed in 5.1.
+
+``sheepdog`` driver (removed in 6.0)
+''''''''''''''''''''''''''''''''''''
+
+The corresponding upstream server project is no longer maintained.
+Users are recommended to switch to an alternative distributed block
+device driver such as RBD.
configure +0 -10
index 4f374b4889..5676203373 100755
@@ -446,7 +446,6 @@ vdi=${default_feature:-yes}
 vvfat=${default_feature:-yes}
 qed=${default_feature:-yes}
 parallels=${default_feature:-yes}
-sheepdog="no"
 libxml2="$default_feature"
 debug_mutex="no"
 libpmem="$default_feature"
@@ -1474,10 +1473,6 @@ for opt do
   ;;
   --enable-parallels) parallels="yes"
   ;;
-  --disable-sheepdog) sheepdog="no"
-  ;;
-  --enable-sheepdog) sheepdog="yes"
-  ;;
   --disable-vhost-user) vhost_user="no"
   ;;
   --enable-vhost-user) vhost_user="yes"
@@ -1907,7 +1902,6 @@ disabled with --disable-FEATURE, default is enabled if available
   vvfat           vvfat image format support
   qed             qed image format support
   parallels       parallels image format support
-  sheepdog        sheepdog block driver support (deprecated)
   crypto-afalg    Linux AF_ALG crypto backend driver
   capstone        capstone disassembler support
   debug-mutex     mutex debugging support
@@ -6073,10 +6067,6 @@ fi
 if test "$parallels" = "yes" ; then
   echo "CONFIG_PARALLELS=y" >> $config_host_mak
 fi
-if test "$sheepdog" = "yes" ; then
-  add_to deprecated_features "sheepdog"
-  echo "CONFIG_SHEEPDOG=y" >> $config_host_mak
-fi
 if test "$have_mlockall" = "yes" ; then
   echo "HAVE_MLOCKALL=y" >> $config_host_mak
 fi
meson.build +0 -1
index c6f4b0cf5e..f32c0e8bce 100644
@@ -2616,7 +2616,6 @@ if have_block
   summary_info += {'vvfat support':     config_host.has_key('CONFIG_VVFAT')}
   summary_info += {'qed support':       config_host.has_key('CONFIG_QED')}
   summary_info += {'parallels support': config_host.has_key('CONFIG_PARALLELS')}
-  summary_info += {'sheepdog support':  config_host.has_key('CONFIG_SHEEPDOG')}
   summary_info += {'FUSE exports':      fuse.found()}
 endif
 summary(summary_info, bool_yn: true, section: 'Block layer support')
qapi/block-core.json +1 -92

129 lines not on this page · raw message

qapi/transaction.json +4 -4
index 15ddebdbc3..894258d9e2 100644
@@ -112,10 +112,10 @@
 #
 # On failure, the original disks pre-snapshot attempt will be used.
 #
-# For internal snapshots, the dictionary contains the device and the snapshot's
-# name.  If an internal snapshot matching name already exists, the request will
-# be rejected.  Only some image formats support it, for example, qcow2, rbd,
-# and sheepdog.
+# For internal snapshots, the dictionary contains the device and the
+# snapshot's name.  If an internal snapshot matching name already exists,
+# the request will be rejected.  Only some image formats support it, for
+# example, qcow2, and rbd,
 #
 # On failure, qemu will try delete the newly created internal snapshot in the
 # transaction.  When an I/O error occurs during deletion, the user needs to fix
block/sheepdog.c deleted +0 -3356

2,692 lines not on this page · raw message

.gitlab-ci.yml +0 -1
index 52d65d6c04..aead19ae2c 100644

Lines of this file are not shown. View the raw message.

MAINTAINERS +0 -6
index 4c05ff8bba..cb7ef272a2 100644

Lines of this file are not shown. View the raw message.

block/meson.build +0 -1
index d21990ec95..e687c54dbc 100644

Lines of this file are not shown. View the raw message.

block/trace-events +0 -14
index 1a12d634e2..31062ed437 100644

Lines of this file are not shown. View the raw message.

tests/qemu-iotests/005 +0 -5
index 40e64a9a8f..ba377543b0 100755

Lines of this file are not shown. View the raw message.

tests/qemu-iotests/025 +1 -1
index da77ed3154..80686a30d5 100755

Lines of this file are not shown. View the raw message.

tests/qemu-iotests/check +1 -2
index d1c87ceaf1..08f51366f1 100755

Lines of this file are not shown. View the raw message.

tests/qemu-iotests/common.rc +0 -4
index 7f49c9716d..cbbf6d7c7f 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.26.3

Part of the diff is not shown here. View the raw message.

Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Markus Armbruster

It was deprecated in commit e1c4269763, v5.2.0. See that commit message for rationale.

---
 docs/system/deprecated.rst             |    9 -
 docs/system/device-url-syntax.rst.inc  |   18 -
 docs/system/qemu-block-drivers.rst.inc |   69 -
 docs/system/removed-features.rst       |    7 +
 configure                              |   10 -
 meson.build                            |    1 -
 qapi/block-core.json                   |   93 +-
 qapi/transaction.json                  |    8 +-
 block/sheepdog.c                       | 3356 ------------------------
 .gitlab-ci.yml                         |    1 -
 MAINTAINERS                            |    6 -
Quoted 8 lines
 block/meson.build                      |    1 -
 block/trace-events                     |   14 -
 tests/qemu-iotests/005                 |    5 -
 tests/qemu-iotests/025                 |    2 +-
 tests/qemu-iotests/check               |    3 +-
 tests/qemu-iotests/common.rc           |    4 -
 17 files changed, 14 insertions(+), 3593 deletions(-)
 delete mode 100644 block/sheepdog.c

Libvirt will need to adjust one test case (lock it to qemu-6.0 test data), but other than that, this change is okay with us.