On 12/07/2011 03:26 PM, Reindl Harald wrote:
> Dec 07 23:05:17.551: vcpu-0| Guest: [   debug] [vmsvc:vmsvc] SyncDriver:
> ioctl failed: 16 (Das Gerät oder die Ressource ist belegt)

Hmmm... Dmitry just showed me the new kernel sources and this interface seems
to have changed since I first looked at it. Could you try to apply this patch
and see if it helps:

diff --git a/open-vm-tools/lib/syncDriver/syncDriverLinux.c
b/open-vm-tools/lib/syncDriver/syncDriverLinux.c
index 7dfae42..7d84f98 100644
--- a/open-vm-tools/lib/syncDriver/syncDriverLinux.c
+++ b/open-vm-tools/lib/syncDriver/syncDriverLinux.c
@@ -191,9 +191,13 @@ LinuxDriver_Freeze(const char *paths,
           * supported on the device, we get EOPNOTSUPP. Ignore the latter,
           * since freezing does not make sense for all fs types, and some
           * Linux fs drivers may not have been hooked up in the running kernel.
+          *
+          * The kernel may also return EBUSY if the superblock is already
+          * frozen, which can happen if, for example, multiple mount points
+          * exist.
           */
          close(fd);
-         if (errno != EOPNOTSUPP) {
+         if (errno != EOPNOTSUPP && errno != EBUSY) {
             Debug(LGPFX "ioctl failed: %d (%s)\n", errno, strerror(errno));
             err = first ? SD_UNAVAILABLE : SD_ERROR;
             break;


> wouldn't it be a good idea to switch this from ioctl to fsfreeze or look
> inside the guest-tools if fsfreeze is supported and use it in such cases

fsfreeze most probably just uses the same ioctl interface we're using
directly, so there wouldn't be any difference in functionality, only more
complicated code.

-- 
- Marcelo

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to