bn3t

parallels-patch

Jan 17th, 2021
931
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -puNr parallels-tools-16.0.0.48916.orig/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c parallels-tools-16.0.0.48916/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c
  2. --- parallels-tools-16.0.0.48916.orig/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c   2020-07-31 03:05:59.000000000 +1000
  3. +++ parallels-tools-16.0.0.48916/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c    2020-10-18 07:05:09.716999971 +1100
  4. @@ -55,7 +55,11 @@ void init_buffer_descriptor(struct buffe
  5.     bd->buf = buf;
  6.     bd->len = len;
  7.     bd->write = (write == 0) ? 0 : 1;
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
  9. +   bd->user = (user == 0) ? 0 : uaccess_kernel() ? 0 : 1;
  10. +#else
  11.     bd->user = (user == 0) ? 0 : segment_eq(get_fs(), USER_DS) ? 1 : 0;
  12. +#endif
  13.     bd->flags = TG_REQ_COMMON;
  14.  }
  15.  
  16. diff -puNr parallels-tools-16.0.0.48916.orig/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c parallels-tools-16.0.0.48916/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
  17. --- parallels-tools-16.0.0.48916.orig/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c 2020-07-31 03:06:00.000000000 +1000
  18. +++ parallels-tools-16.0.0.48916/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c  2020-10-18 07:13:21.300333278 +1100
  19. @@ -20,6 +20,9 @@
  20.  #include <linux/workqueue.h>
  21.  #include <linux/namei.h>
  22.  #include <linux/slab.h>
  23. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
  24. +#include <linux/blkdev.h>
  25. +#endif
  26.  #include <asm/uaccess.h>
  27.  #include "prlfs_freeze_compat.h"
  28.  
  29.  
RAW Paste Data