Displaying 2 results from an estimated 2 matches for "dev_mapper_exist".
Did you mean:
dev_mapper_exists
2016 Dec 06
0
[PATCH 4/5] inspect: fix existance check of /dev/mapper devices
...ed, 14 insertions(+), 1 deletion(-)
diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c
index c833304..7b54a4a 100644
--- a/src/inspect-fs-unix.c
+++ b/src/inspect-fs-unix.c
@@ -1806,6 +1806,19 @@ resolve_fstab_device_diskbyid (guestfs_h *g, const char *part,
return 0;
}
+static bool
+dev_mapper_exists (guestfs_h *g, const char *device)
+{
+ CLEANUP_FREE char *ret = NULL;
+ const char *const args[] = { device, NULL };
+
+ guestfs_push_error_handler (g, NULL, NULL);
+ ret = guestfs_debug (g, "exists", (char **) args);
+ guestfs_pop_error_handler (g);
+
+ return ret && ret[...
2016 Dec 06
9
[PATCH 0/5] Improve inspection of /usr filesystems
Hi,
this patch series improves the way /usr filesystems are handled: tag
them appropriately, so later on we can find them and merge results they
contain directly back for the root filesystem.
The series includes also a new private debug API, and its usage to fix
the resolution of /dev/mapper/.. devices found in fstab; without it,
LVM /usr filesystems are not recognized as belonging to their