]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Ignore ENXIO errors with SyncDriver
authorOliver Kurth <okurth@vmware.com>
Mon, 26 Feb 2018 20:35:35 +0000 (12:35 -0800)
committerOliver Kurth <okurth@vmware.com>
Mon, 26 Feb 2018 20:35:35 +0000 (12:35 -0800)
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 .

open-vm-tools/AUTHORS
open-vm-tools/lib/syncDriver/syncDriverLinux.c

index 8989006bdc9e7f2014b69b0b82cdac2ef7b0b8b6..21d0d29b7ddc55d85da7ba9ba09fc7563aa409ff 100644 (file)
@@ -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
index db042da4fea991d21e97c3a60982f9ae50fdb3df..eef65a2eb5f17f403855374da2e188f848d6bb09 100644 (file)
@@ -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