Am 08.12.2011 01:00, schrieb Marcelo Vanzin:
> 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;rpmbuild does not like this patch, see below my one for the fedora-version looks a little different and was done with "diff -uNr", help appreciated >[builduser@buildserver:/rpmbuild/SPECS]$ cat >/rpmbuild/SOURCES/open-vm-tools-2.6.41.patch >--- open-vm-tools-original/modules/linux/shared/compat_netdevice.h >2011-10-27 20:57:11.000000000 +0200 >+++ open-vm-tools-patched/modules/linux/shared/compat_netdevice.h >2011-11-23 16:57:55.814275389 +0100 >@@ -184,7 +184,7 @@ > * so let's add back ones we care about. > */ > #if !defined(HAVE_NET_DEVICE_OPS) && \ >- LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0) >+ LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 41) > # define HAVE_NET_DEVICE_OPS 1 > #endif _____________________ [builduser@buildserver:/rpmbuild/SPECS]$ rpmbuild -bb vmware-tools.spec Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.QMx1dr + umask 022 + cd /home/builduser/rpmbuild/BUILD + LANG=C + export LANG + unset DISPLAY + cd /home/builduser/rpmbuild/BUILD + rm -rf open-vm-tools-2011.11.20-535097 + /usr/bin/gzip -dc /home/builduser/rpmbuild/SOURCES/open-vm-tools-2011.11.20-535097.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd open-vm-tools-2011.11.20-535097 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (open-vm-tools-2.6.41.patch):' Patch #1 (open-vm-tools-2.6.41.patch): + /bin/cat /home/builduser/rpmbuild/SOURCES/open-vm-tools-2.6.41.patch + /usr/bin/patch -s -p1 --fuzz=0 + echo 'Patch #2 (open-vm-tools-vsync.patch):' Patch #2 (open-vm-tools-vsync.patch): + /bin/cat /home/builduser/rpmbuild/SOURCES/open-vm-tools-vsync.patch + /usr/bin/patch -s -p1 --fuzz=0 The text leading up to this was: -------------------------- |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 -------------------------- File to patch:
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel
