Changeset 42880 in vbox for trunk/src/VBox
- Timestamp:
- Aug 20, 2012 12:19:31 PM (12 years ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r41450 r42880 6 6 7 7 /* 8 * Copyright (C) 2006-20 07Oracle Corporation8 * Copyright (C) 2006-2012 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 311 311 */ 312 312 static struct dentry *sf_lookup(struct inode *parent, struct dentry *dentry 313 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 313 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) 314 , unsigned int flags 315 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 314 316 , struct nameidata *nd 315 317 #endif … … 586 588 * @returns 0 on success, Linux error code otherwise 587 589 */ 588 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) 590 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) 591 static int sf_create(struct inode *parent, struct dentry *dentry, umode_t mode, bool excl) 592 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) 589 593 static int sf_create(struct inode *parent, struct dentry *dentry, umode_t mode, struct nameidata *nd) 590 594 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r41451 r42880 7 7 8 8 /* 9 * Copyright (C) 2006-201 0Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 252 252 [sf_inode_revalidate] */ 253 253 static int 254 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 254 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) 255 sf_dentry_revalidate(struct dentry *dentry, unsigned flags) 256 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 257 sf_dentry_revalidate(struct dentry *dentry, struct nameidata *nd) 258 #else 255 259 sf_dentry_revalidate(struct dentry *dentry, int flags) 256 #else 257 sf_dentry_revalidate(struct dentry *dentry, struct nameidata *nd) 258 #endif 259 { 260 TRACE(); 261 262 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) 260 #endif 261 { 262 TRACE(); 263 264 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) 265 if (flags & LOOKUP_RCU) 266 return -ECHILD; 267 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) 263 268 /* see Documentation/filesystems/vfs.txt */ 264 269 if (nd && nd->flags & LOOKUP_RCU)
Note:
See TracChangeset
for help on using the changeset viewer.