Created
November 12, 2015 10:02
-
-
Save turhn/619e2bddb024fce6797f to your computer and use it in GitHub Desktop.
Parallels Tools Linux 4.2.0 Patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- parallels2/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c 2015-07-09 06:22:30.000000000 -0700 | |
+++ parallels/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c 2015-07-09 06:22:30.000000000 -0700 | |
@@ -650,12 +650,21 @@ | |
return tgt_path; | |
} | |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) | |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) | |
+#define compat_follow_link_t char* | |
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) | |
#define compat_follow_link_t void* | |
#else | |
#define compat_follow_link_t int | |
#endif | |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) | |
+static compat_follow_link_t prlfs_follow_link(struct dentry *dentry, | |
+ void **cookie, struct nameidata *nd) | |
+{ | |
+ return *cookie = do_read_symlink(dentry); | |
+} | |
+#else | |
static compat_follow_link_t prlfs_follow_link(struct dentry *dentry, | |
struct nameidata *nd) | |
{ | |
@@ -671,6 +680,7 @@ | |
return vfs_follow_link(nd, do_read_symlink(dentry)); | |
#endif | |
} | |
+#endif | |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) | |
static int prlfs_readlink(struct dentry *dentry, char *buf, int buflen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- parallels2/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2015-07-09 06:22:30.000000000 -0700 | |
+++ parallels/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2015-07-09 06:22:30.000000000 -0700 | |
@@ -21,6 +21,7 @@ | |
#include <linux/pagemap.h> | |
#include <linux/proc_fs.h> | |
#include <linux/hash.h> | |
+#include <linux/vmalloc.h> | |
#include <asm/uaccess.h> | |
#include <asm/atomic.h> | |
#include <asm/io.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment