From: Oliver Kurth Date: Wed, 7 Feb 2018 00:32:40 +0000 (-0800) Subject: Ignore ENXIO errors with SyncDriver X-Git-Tag: stable-10.3.0~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a8221c7e4b149efacf87658ac239d815c56adba;p=thirdparty%2Fopen-vm-tools.git Ignore ENXIO errors with SyncDriver A quiesced snapshot fails when the target VM has a bind mount. The problem is that the syncDriver gets an ENXIO error when it tries to open the mount point. To fix the problem, let the quiesce operation skip a mount point when opening it results in an ENXIO error. This change is based on pull request https://github.com/vmware/open-vm-tools/pull/218 . --- diff --git a/open-vm-tools/AUTHORS b/open-vm-tools/AUTHORS index 8989006bd..21d0d29b7 100644 --- a/open-vm-tools/AUTHORS +++ b/open-vm-tools/AUTHORS @@ -23,3 +23,5 @@ Josh Paetzel Fix compilation error in clang 6.0 Mike Latimer Restrict udev rules to disk devices only - https://github.com/vmware/open-vm-tools/pull/216 +Thomas Mueller Ignore ENXIO errors with SyncDriver + - https://github.com/vmware/open-vm-tools/pull/218 diff --git a/open-vm-tools/lib/syncDriver/syncDriverLinux.c b/open-vm-tools/lib/syncDriver/syncDriverLinux.c index db042da4f..eef65a2eb 100644 --- a/open-vm-tools/lib/syncDriver/syncDriverLinux.c +++ b/open-vm-tools/lib/syncDriver/syncDriverLinux.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2017 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2018 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -219,6 +219,14 @@ LinuxDriver_Freeze(const GSList *paths, Debug(LGPFX "cannot access mounted directory '%s'.\n", path); continue; + case ENXIO: + /* + * A bind-mounted file, such as a mount of /dev/log for a + * chrooted application, will land us here. Just skip it. + */ + Debug(LGPFX "no such device or address '%s'.\n", path); + continue; + case EIO: /* * A mounted HGFS filesystem with the backend disabled will give