mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
8f5e4f07ba92d42506072520260d96ce77d58e21
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
…
…
Libguestfs is tools and a library for accessing and modifying guest disk images. For more information see the home page: http://libguestfs.org/ For discussion, development, patches, etc. please use the mailing list: https://lists.libguestfs.org To find out how to build libguestfs from source, read: docs/guestfs-building.pod http://libguestfs.org/guestfs-building.1.html man docs/guestfs-building.1 Copyright (C) 2009-2025 Red Hat Inc. The library is distributed under the LGPLv2+. The programs are distributed under the GPLv2+. Please see the files COPYING and COPYING.LIB for full license information. The examples are under a very liberal license.
Description
Languages
C
42.7%
OCaml
35.5%
Shell
7.1%
Makefile
4%
Perl
2.6%
Other
8%