]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-storage-daemon: Only display FUSE help when FUSE is built-in
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 16 Aug 2021 18:04:42 +0000 (20:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 6 Oct 2021 08:25:55 +0000 (10:25 +0200)
commitd1bbd965bd96028b0f5a8e3dc01b37f1f8ae4456
tree4e13c7f0fee93ff35c912c1f24b55ae60aeea774
parenta6297e1ade6d9981c4a8d43eb426830b49a7913c
qemu-storage-daemon: Only display FUSE help when FUSE is built-in

When configuring QEMU with --disable-fuse, the qemu-storage-daemon
still reports FUSE command line options in its help:

  $ qemu-storage-daemon -h
  Usage: qemu-storage-daemon [options]
  QEMU storage daemon

    --export [type=]fuse,id=<id>,node-name=<node-name>,mountpoint=<file>
             [,growable=on|off][,writable=on|off]
                           export the specified block node over FUSE

Remove this help message when FUSE is disabled, to avoid:

  $ qemu-storage-daemon --export fuse
  qemu-storage-daemon: --export fuse: Invalid parameter 'fuse'

Reported-by: Qing Wang <qinwang@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210816180442.2000642-1-philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
storage-daemon/qemu-storage-daemon.c