diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-12 10:15:35 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-13 10:12:53 +0100 |
commit | 8da89925daf4b1eb59deddd0945c994585c9c768 (patch) | |
tree | 7d9a3afed1366a74ec1cbe0193a51ce212fc5ab9 /src/inspect_fs_unix.c | |
parent | 66ca1a9104ce41daa4d500cdda2434415bda5403 (diff) | |
download | libguestfs-8da89925daf4b1eb59deddd0945c994585c9c768.tar.gz libguestfs-8da89925daf4b1eb59deddd0945c994585c9c768.tar.xz libguestfs-8da89925daf4b1eb59deddd0945c994585c9c768.zip |
inspection: Remove spurious warning for Ubuntu 10.04 with encrypted swap (RHBZ#811872).
(cherry picked from commit 96b6504b09461aeb6850bb2e7b870a0a4c2f5edf)
Diffstat (limited to 'src/inspect_fs_unix.c')
-rw-r--r-- | src/inspect_fs_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index 18072ee3..d4641d5d 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -1162,7 +1162,7 @@ resolve_fstab_device (guestfs_h *g, const char *spec, Hash_table *md_map) char *device = NULL; char *type, *slice, *disk, *part; - if (STRPREFIX (spec, "/dev/mapper/")) { + if (STRPREFIX (spec, "/dev/mapper/") && guestfs_exists (g, spec) > 0) { /* LVM2 does some strange munging on /dev/mapper paths for VGs and * LVs which contain '-' character: * |