Package Details: open-vm-tools-dkms 6:10.0.0-4

Git Clone URL: https://aur.archlinux.org/open-vm-tools-dkms.git (read-only)
Package Base: open-vm-tools-dkms
Description: Open Virtual Machine Tools kernel modules (DKMS)
Upstream URL: http://open-vm-tools.sourceforge.net/
Keywords: module vmware
Licenses: GPL2
Conflicts: open-vm-tools-modules, vmware-modules-dkms
Submitter: davispuh
Maintainer: None
Last Packager: paul.wilk
Votes: 7
Popularity: 0.000199
First Submitted: 2015-09-17 16:05
Last Updated: 2018-03-20 10:19

Latest Comments

« First ‹ Previous 1 2

JackM commented on 2015-09-30 21:54

This bug discussing here

https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1500581

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800322

base on change betwen
https://github.com/torvalds/linux/commit/1f55a6ec940fb45e3edaa52b6e9fc40cf8e18dcb
and
https://github.com/torvalds/linux/commit/680baacbca69d18a6d7315374ad83d05ac9c0977

a write patch 0001-vmhgfs-support-linux-4.2.x-kernel.patch
Please accept it
https://gist.github.com/anonymous/613ee6cfc2b695e4c760

JackM commented on 2015-09-30 21:53

patch 0001-vmhgfs-support-linux-4.2.x-kernel.patch on gist.github.com

https://gist.github.com/anonymous/613ee6cfc2b695e4c760

JackM commented on 2015-09-30 21:49

This bug discussing here

https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1500581

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800322

base on change betwen
https://github.com/torvalds/linux/commit/1f55a6ec940fb45e3edaa52b6e9fc40cf8e18dcb
and
https://github.com/torvalds/linux/commit/680baacbca69d18a6d7315374ad83d05ac9c0977

a write patch 0001-vmhgfs-support-linux-4.2.x-kernel.patch
Please accept it

------------------


From 8a8b5bdb33787eba5cbce1c69d5039fb14c4503e Mon Sep 17 00:00:00 2001
From: JackM
Date: Thu, 1 Oct 2015 00:42:34 +0300
Subject: [PATCH] vmhgfs support linux 4.2.x kernel

---
0001-vmhgfs-support-linux-4.2.x-kernel.patch | 93 ++++++++++++++++++++++++++++
PKGBUILD | 3 +
2 files changed, 96 insertions(+)
create mode 100644 0001-vmhgfs-support-linux-4.2.x-kernel.patch

diff --git a/0001-vmhgfs-support-linux-4.2.x-kernel.patch b/0001-vmhgfs-support-linux-4.2.x-kernel.patch
new file mode 100644
index 0000000..4fa315c
--- /dev/null
+++ b/0001-vmhgfs-support-linux-4.2.x-kernel.patch
@@ -0,0 +1,93 @@
+From b3a634a491da35d47a5e6e6120a21cba514fc3ec Mon Sep 17 00:00:00 2001
+From: JackM
+Date: Wed, 30 Sep 2015 23:16:40 +0300
+Subject: [PATCH] vmhgfs support linux 4.2.x kernel
+
+---
+ modules/linux/vmhgfs/link.c | 30 +++++++++++++++++++++++++-----
+ 1 file changed, 25 insertions(+), 5 deletions(-)
+
+diff --git a/open-vm-tools/modules/linux/vmhgfs/link.c b/open-vm-tools/modules/linux/vmhgfs/link.c
+index 06f693b..72e97ff 100644
+--- a/open-vm-tools/modules/linux/vmhgfs/link.c
++++ b/open-vm-tools/modules/linux/vmhgfs/link.c
+@@ -35,7 +35,9 @@
+ #include "vm_assert.h"
+
+ /* HGFS symlink operations. */
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++static void *HgfsFollowlink(struct dentry *dentry, void **cookie, struct nameidata *nd);
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
+ static void *HgfsFollowlink(struct dentry *dentry,
+ struct nameidata *nd);
+ #else
+@@ -45,7 +47,10 @@ static int HgfsFollowlink(struct dentry *dentry,
+ static int HgfsReadlink(struct dentry *dentry,
+ char __user *buffer,
+ int buflen);
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++static void HgfsPutlink(struct dentry *dentry,
++ void *cookie);
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
+ static void HgfsPutlink(struct dentry *dentry,
+ struct nameidata *nd,
+ void *cookie);
+@@ -85,7 +90,9 @@ struct inode_operations HgfsLinkInodeOperations = {
+ *----------------------------------------------------------------------
+ */
+
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++static void *HgfsFollowlink(struct dentry *dentry, void **cookie, struct nameidata *nd)
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
+ static void *
+ HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link
+ struct nameidata *nd) // OUT: Contains target dentry
+@@ -124,7 +131,11 @@ HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link
+ } else {
+ LOG(6, (KERN_DEBUG "VMware hgfs: %s: calling nd_set_link %s\n",
+ __func__, fileName));
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++ *cookie = fileName;
++#else
+ nd_set_link(nd, fileName);
++#endif
+ }
+ }
+ out:
+@@ -219,7 +230,10 @@ HgfsReadlink(struct dentry *dentry, // IN: Dentry containing link
+ *----------------------------------------------------------------------
+ */
+
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++static void HgfsPutlink(struct dentry *dentry,
++ void *cookie)
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13)
+ static void
+ HgfsPutlink(struct dentry *dentry, // dentry
+ struct nameidata *nd, // lookup name information
+@@ -235,11 +249,17 @@ HgfsPutlink(struct dentry *dentry, // dentry
+ LOG(6, (KERN_DEBUG "VMware hgfs: %s: put for %s\n",
+ __func__, dentry->d_name.name));
+
+- fileName = nd_get_link(nd);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++ fileName = cookie;
++#else
++ fileName = nd_get_link(nd);
++#endif
+ if (!IS_ERR(fileName)) {
+ LOG(6, (KERN_DEBUG "VMware hgfs: %s: putting %s\n",
+ __func__, fileName));
+ kfree(fileName);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
+ nd_set_link(nd, NULL);
++#endif
+ }
+ }
+--
+2.5.0.windows.1
+
diff --git a/PKGBUILD b/PKGBUILD
index 5535084..d3d3b7c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,17 +27,20 @@ source=(http://downloads.sourceforge.net/${_name}/${_full_name}.tar.gz
0001-Fix-vmxnet-module-on-kernels-3.16.patch
0004-Support-backing-dev-info-kernel-4.0.patch
0005-Remove-new_sync-for-Linux-4.1.patch
+ 0001-vmhgfs-support-linux-4.2.x-kernel.patch
dkms.conf.in)
sha256sums=('5adef80f43186aff426f4f22b4b31b514d18a1dcc3334d56ed22d2e308803971'
'6684cf4cd9a492b82b24dff076fbbafef19e59ef969f532ee3da1501136a7c48'
'dac377beb660dc6c143356255346b34db0986511dcb74f051e06f243a0078af8'
'38e2ae573a849251abde79c82b694d76f32cc75c9ff60878ebcb23f2f8c86928'
+ 'd8191b23b9d5689b321bd0cf20b71a4039fde454d08644de6dc3a6521d574fd0'
'5255a183cccd80b2bfbbf519b1cc8cec81ae40bbc0b5a88dfddd95532ece84ed')

prepare() {
patch -d "$srcdir/${_full_name}" -Np2 -i "$srcdir/0001-Fix-vmxnet-module-on-kernels-3.16.patch"
patch -d "$srcdir/${_full_name}" -Np2 -i "$srcdir/0004-Support-backing-dev-info-kernel-4.0.patch"
patch -d "$srcdir/${_full_name}" -Np2 -i "$srcdir/0005-Remove-new_sync-for-Linux-4.1.patch"
+ patch -d "$srcdir/${_full_name}" -Np2 -i "$srcdir/0001-vmhgfs-support-linux-4.2.x-kernel.patch"
}

package() {
--
2.6.0

harveyhunt commented on 2015-09-30 13:28

@JackM: I'm having the same problem, so I've opened an issue on github.

https://github.com/vmware/open-vm-tools/issues/44

JackM commented on 2015-09-28 18:24

maybe this link can help you make patch
https://github.com/dorimanx/exfat-nofuse/issues/69

JackM commented on 2015-09-28 18:20

when install with new kernel version 4.2.1 show error:

/var/lib/dkms/open-vm-tools/10.0.0/build/vmhgfs/link.c:127:10: error: implicit declaration of function ‘nd_set_link’

/var/lib/dkms/open-vm-tools/10.0.0/build/vmhgfs/link.c:138:15: error: implicit declaration of function ‘nd_get_link’