Created
February 11, 2012 13:28
-
-
Save fielding/1799420 to your computer and use it in GitHub Desktop.
prl_tools-2.6.37.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
diff -cr prl_mod/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c prl_mod_patched/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c | |
*** prl_mod/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c 2010-12-20 20:53:25.000000000 +0100 | |
--- prl_mod_patched/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c 2011-01-09 00:35:59.084213064 +0100 | |
*************** | |
*** 368,374 **** | |
init_buffer_descriptor(&bd, &pattr, PATTR_STRUCT_SIZE, 0, 0); | |
ret = host_request_attr(sb, p, buflen, &bd); | |
if (ret == 0) | |
! ret = inode_setattr(dentry->d_inode, attr); | |
dentry->d_time = 0; | |
PRLFS_STD_INODE_TAIL | |
} | |
--- 368,378 ---- | |
init_buffer_descriptor(&bd, &pattr, PATTR_STRUCT_SIZE, 0, 0); | |
ret = host_request_attr(sb, p, buflen, &bd); | |
if (ret == 0) | |
! { | |
! setattr_copy(dentry->d_inode, attr); | |
! mark_inode_dirty(dentry->d_inode); | |
! ret = 0; | |
! } | |
dentry->d_time = 0; | |
PRLFS_STD_INODE_TAIL | |
} | |
diff -cr prl_mod/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c prl_mod_patched/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c | |
*** prl_mod/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2010-12-20 20:53:35.000000000 +0100 | |
--- prl_mod_patched/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2011-01-09 00:22:17.200882662 +0100 | |
*************** | |
*** 959,978 **** | |
goto out; | |
} | |
- #ifdef HAVE_UNLOCKED_IOCTL | |
static long prl_vtg_unlocked_ioctl(struct file *filp, | |
unsigned int cmd, unsigned long arg) | |
{ | |
return prl_vtg_ioctl(NULL, filp, cmd, arg); | |
} | |
- #endif | |
static struct file_operations prl_vtg_fops = { | |
.write = prl_tg_write, | |
! .ioctl = prl_vtg_ioctl, | |
! #ifdef HAVE_UNLOCKED_IOCTL | |
.unlocked_ioctl = prl_vtg_unlocked_ioctl, | |
- #endif | |
.open = prl_vtg_open, | |
.release = prl_vtg_release, | |
}; | |
--- 959,974 ---- | |
goto out; | |
} | |
static long prl_vtg_unlocked_ioctl(struct file *filp, | |
unsigned int cmd, unsigned long arg) | |
{ | |
return prl_vtg_ioctl(NULL, filp, cmd, arg); | |
} | |
static struct file_operations prl_vtg_fops = { | |
.write = prl_tg_write, | |
! // .ioctl = prl_vtg_ioctl, | |
.unlocked_ioctl = prl_vtg_unlocked_ioctl, | |
.open = prl_vtg_open, | |
.release = prl_vtg_release, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment