From: Malte Janduda Date: Sun, 21 Aug 2022 10:30:08 +0000 (+0200) Subject: doc: virtio discard is supported since kernel 5.0 X-Git-Tag: v18.0.0~214^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47716%2Fhead;p=ceph.git doc: virtio discard is supported since kernel 5.0 Signed-off-by: Malte Janduda --- diff --git a/doc/rbd/qemu-rbd.rst b/doc/rbd/qemu-rbd.rst index f5925d6c3531..281335ebe6a0 100644 --- a/doc/rbd/qemu-rbd.rst +++ b/doc/rbd/qemu-rbd.rst @@ -165,8 +165,7 @@ for the block device. To do this, you must specify a qemu -m 1024 -drive format=raw,file=rbd:data/squeeze,id=drive1,if=none \ -device driver=ide-hd,drive=drive1,discard_granularity=512 -Note that this uses the IDE driver. The virtio driver does not -support discard. +Note that this uses the IDE driver. The virtio driver supports discard since Linux kernel version 5.0. If using libvirt, edit your libvirt domain's configuration file using ``virsh edit`` to include the ``xmlns:qemu`` value. Then, add a ``qemu:commandline``