]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: create logical volume with --yes option
authorKristina Hanicova <khanicov@redhat.com>
Thu, 22 Jul 2021 09:45:52 +0000 (11:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Jul 2021 09:44:38 +0000 (11:44 +0200)
commitd91a3e96c04ae093f4422b52e259750c86ba79fc
treec9158c9273569455611b9795a35a02a18dee5e14
parent7b8d4d99b54a772886efcc0bc7af1e78554d181c
storage: create logical volume with --yes option

If lvcreate found an existing signature when trying to create a
new logical volume (E.g. left after some deleted volume), the
action failed due to inability to answer interactive question to
wiping it (lvcreate assumed 'no' was the answer). With added
option --yes to the command line, the answer to any interactive
question is assumed to be yes. Therefore, lvcreate wipes the
signature and the new volume is created successfully.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1940413

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_backend_logical.c