Richard W.M. Jones
8f5e4f07ba
inspection: Ignore btrfs snapshots of roots
...
In SLES guests in particular, btrfs snapshots seem to be used to allow
rollback of changes made to the filesystem. Dozens of snapshots may
be present. Technically therefore these are multi-boot guests. The
libguestfs concept of "root" of an operating system does not map well
to this, causing problems in virt-inspector and virt-v2v.
In this commit we ignore these duplicates. The test is quite narrow
to avoid false positives: We only remove a duplicate if it is a member
of a parent device, both are btrfs, both the snapshot and parent have
a root role, and the roles are otherwise very similar.
There may be a case for reporting this information separately in
future, although it's also easy to find this out now. For example,
when you see a btrfs root device returned by inspect_os, you could
call btrfs_subvolume_list on the root device to list the snapshots.
Fixes: https://issues.redhat.com/browse/RHEL-93109
2025-05-27 17:01:09 +01: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-08-16 10:39:01 +01:00
2014-04-16 12:01:17 +01:00
2017-07-27 22:31:22 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2025-05-19 13:42:44 +01:00
2025-05-11 12:37:23 +01:00
2025-02-16 17:00:46 +00:00
2013-07-29 14:37:50 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-07-10 17:01:59 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2022-06-17 13:24:19 +01:00
2016-01-22 09:12:17 +00:00
2022-08-16 10:39:01 +01:00
2016-07-26 10:43:45 +01:00
2022-08-16 10:39:01 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +01:00
2018-02-06 17:27:23 +01:00
2018-02-06 17:27:23 +01:00
2025-02-16 17:00:46 +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
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-08-08 17:50:23 +01:00
2014-11-26 16:15:47 +00:00
2025-02-16 17:00:46 +00:00
2025-04-29 19:05:07 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +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
2025-02-16 17:00:46 +00:00
2017-07-10 17:01:59 +01:00
2025-05-20 14:40:58 +01:00
2018-04-19 11:30:29 +02:00
2016-07-26 10:43:45 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-04-29 19:05:07 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 12:37:23 +01:00
2016-07-26 10:43:45 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +01:00
2015-10-27 17:25:49 +00:00
2017-07-27 17:31:41 +01:00
2025-04-28 10:07:34 +01:00
2025-02-16 17:00:46 +00:00
2016-02-04 11:25:56 +01:00
2013-01-28 18:01:43 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2017-09-16 22:27:16 +01:00
2022-08-16 10:39:01 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +01:00
2025-02-16 17:00:46 +00:00
2025-03-03 14:22:37 +00:00
2025-02-16 17:00:46 +00:00
2025-03-03 14:22:37 +00:00
2025-03-03 14:22:37 +00:00
2025-05-11 12:37:23 +01:00
2025-02-16 17:00:46 +00:00
2025-05-27 17:01:09 +01:00
2016-04-12 20:59:40 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2014-10-23 19:03:11 +02:00
2017-07-27 17:31:41 +01:00
2024-10-22 11:02:38 +01:00
2025-05-11 21:29:23 +01:00
2021-05-13 12:04:41 +01:00
2025-02-16 17:00:46 +00:00
2025-05-27 17:01:09 +01:00
2017-07-27 17:31:41 +01:00
2021-09-07 14:53:06 +01:00
2025-02-16 17:00:46 +00:00
2025-04-16 21:12:49 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-04-16 21:12:49 +01:00
2025-02-16 17:00:46 +00:00
2025-04-22 12:37:40 +01:00
2021-11-09 10:20:37 +00:00
2025-05-11 21:29:23 +01:00
2025-02-16 17:00:46 +00: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
2025-05-11 21:29:23 +01:00
2025-02-16 17:00:46 +00:00
2017-08-08 17:50:23 +01:00
2025-02-16 17:00:46 +00:00
2013-02-12 17:09:44 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2022-05-03 10:54:00 +02:00
2025-02-16 17:00:46 +00:00
2013-01-21 17:00:04 +00:00
2022-05-26 10:16:21 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2023-04-27 15:22:02 +01:00
2020-07-30 13:58:35 +01:00
2017-07-27 17:31:41 +01:00
2025-05-11 21:29:23 +01:00
2025-02-19 12:01:10 +00: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
2025-02-16 17:00:46 +00:00
2014-11-05 14:50:54 +00:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 22:31:22 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2018-05-15 11:15:54 +01:00
2015-07-02 16:08:44 +01:00
2025-02-16 17:00:46 +00:00
2024-05-10 16:07:20 +01:00
2025-02-16 17:00:46 +00:00
2025-05-11 21:29:23 +01:00
2025-02-16 17:00:46 +00:00
2014-10-23 19:03:11 +02:00
2015-10-05 14:28:33 +01:00
2013-01-28 18:01:43 +00:00
2025-02-16 17:00:46 +00:00
2021-03-30 12:56:58 +01:00
2024-10-18 21:55:21 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00