Richard W.M. Jones
35327035d8
daemon: Make vg_scan and lvm_scan no-ops if no LVM feature
...
If the LVM ("lvm2") feature is not available, these calls would fail.
Really they ought to be part of the "lvm2" optgroup which would cause
the generator to call reply_with_unavailable_feature and generate the
correct ENOTSUP error. When vgscan was originally added in 2010 it
was not added to the optgroup, and when lvm_scan was later added in
2018 and deprecating vgscan, the same mistake was copied.
Before this commit they will try to run the lvm pvscan command which
will fail returning some other error (instead of ENOTSUP).
Fix this by turning the calls into no-ops if the LVM feature is not
available, since scanning for LVM objects when there is no LVM can be
safely turned into a no-op.
See also
https://listman.redhat.com/archives/libguestfs/2022-September/thread.html#29908
Also this updates the common module to pick up a related fix:
commit 4b4a5b84647b1496d034bcdff910930ca5f5c486
Author: Richard W.M. Jones <rjones@redhat.com >
Date: Fri Sep 23 15:18:43 2022 +0100
options: Don't attempt to scan LVs if "lvm2" feature is not available
Reported-by: Laszlo Ersek <lersek@redhat.com >
Acked-by: Laszlo Ersek <lersek@redhat.com >
Fixes: 55dfcb2211 ("New API: lvm_scan, deprecate vgscan")
Fixes: 9752039e52 ("New API: vgscan")
(cherry picked from commit c2dd84b263 )
2022-11-21 18:17:47 +00:00
..
2022-03-09 09:28:02 +00:00
2019-05-30 09:12:32 +02:00
2017-07-27 17:31:41 +01:00
2022-11-21 18:10:55 +00:00
2014-04-16 12:01:17 +01:00
2017-07-27 22:31:22 +01:00
2020-03-06 19:32:32 +00:00
2017-07-27 17:31:41 +01:00
2021-03-22 14:26:57 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2013-07-29 14:37:50 +01:00
2022-11-21 18:10:55 +00:00
2021-03-26 16:06:03 +00:00
2020-03-06 19:32:32 +00:00
2017-07-10 17:01:59 +01:00
2017-07-27 17:31:41 +01:00
2022-07-06 13:30:13 +01:00
2016-01-22 09:12:17 +00:00
2022-11-21 18:10:55 +00:00
2016-07-26 10:43:45 +01:00
2022-11-21 18:10:55 +00:00
2020-03-06 19:32:32 +00:00
2020-10-12 10:44:08 +01:00
2018-02-06 17:27:23 +01:00
2018-02-06 17:27:23 +01:00
2020-03-06 19:32:32 +00:00
2021-03-16 11:24:37 +00:00
2017-09-16 22:27:16 +01:00
2018-01-09 12:17:53 +00:00
2022-11-21 18:10:55 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2017-08-08 17:50:23 +01:00
2014-11-26 16:15:47 +00:00
2022-07-06 13:30:13 +01:00
2020-03-06 19:32:32 +00:00
2021-03-22 14:56:10 +00:00
2020-03-06 19:32:32 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2020-03-06 19:32:32 +00:00
2017-07-10 17:01:59 +01:00
2022-11-21 18:10:55 +00:00
2018-04-19 11:30:29 +02:00
2016-07-26 10:43:45 +01:00
2022-11-21 18:10:55 +00:00
2020-03-06 19:32:32 +00:00
2022-11-21 18:10:32 +00:00
2016-07-26 10:43:45 +01:00
2022-11-21 18:10:55 +00:00
2020-03-06 19:32:32 +00:00
2015-10-27 17:25:49 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2016-02-04 11:25:56 +01:00
2022-11-21 18:10:42 +00:00
2022-11-21 18:10:55 +00:00
2020-03-06 19:32:32 +00:00
2017-09-16 22:27:16 +01:00
2022-11-21 18:10:55 +00:00
2021-09-07 14:48:03 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2022-11-21 18:10:19 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2021-12-10 09:09:47 +00:00
2020-03-06 19:32:32 +00:00
2021-12-10 09:09:47 +00:00
2021-12-10 09:09:47 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2021-04-15 09:41:35 +01:00
2016-04-12 20:59:40 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2021-05-13 09:19:31 +01:00
2014-10-23 19:03:11 +02:00
2017-07-27 17:31:41 +01:00
2018-02-12 11:24:06 +01:00
2020-03-06 19:32:32 +00:00
2021-05-13 12:04:41 +01:00
2020-03-06 19:32:32 +00:00
2021-11-26 10:17:54 +01:00
2017-07-27 17:31:41 +01:00
2021-09-07 14:53:06 +01:00
2020-10-12 10:44:29 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2022-07-06 13:30:02 +01:00
2022-11-21 18:17:47 +00:00
2020-03-06 19:32:32 +00:00
2022-11-21 18:10:55 +00:00
2021-11-09 10:20:37 +00:00
2021-11-09 10:20:37 +00:00
2021-11-26 10:16:05 +01:00
2017-03-03 11:32:37 +00:00
2014-10-23 19:03:11 +02:00
2017-07-27 17:31:41 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2017-08-08 17:50:23 +01:00
2020-03-06 19:32:32 +00:00
2013-02-12 17:09:44 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2021-01-05 10:31:00 +00:00
2021-11-26 10:16:06 +01:00
2021-11-26 10:17:05 +01:00
2020-03-06 19:32:32 +00:00
2015-01-20 16:09:53 +01:00
2020-03-06 19:32:32 +00:00
2022-05-26 11:20:42 +01:00
2021-03-26 16:26:00 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2022-05-12 14:48:28 +01:00
2020-07-30 13:58:35 +01:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2017-07-10 17:01:59 +01:00
2020-03-06 19:32:32 +00:00
2014-11-05 14:50:54 +00:00
2020-03-06 19:32:32 +00:00
2017-07-27 17:31:41 +01:00
2020-03-06 19:32:32 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 22:31:22 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2022-11-21 18:10:55 +00:00
2018-05-15 11:15:54 +01:00
2015-07-02 16:08:44 +01:00
2020-03-06 19:32:32 +00:00
2021-11-09 10:20:37 +00:00
2021-09-07 15:55:48 +01:00
2022-04-14 11:32:35 +01:00
2021-11-26 10:17:05 +01:00
2014-10-23 19:03:11 +02:00
2015-10-05 14:28:33 +01:00
2021-09-07 15:55:43 +01:00
2021-03-30 12:56:58 +01:00
2021-10-12 16:48:04 +02:00
2020-03-06 19:32:32 +00:00
2017-07-27 17:31:41 +01:00