VirtualBox

Changeset 42880 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 20, 2012 12:19:31 PM (12 years ago)
Author:
vboxsync
Message:

Linux Shared Folders: more Linux 3.6 fixes

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r41450 r42880  
    66
    77/*
    8  * Copyright (C) 2006-2007 Oracle Corporation
     8 * Copyright (C) 2006-2012 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    311311 */
    312312static 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)
    314316                                , struct nameidata *nd
    315317#endif
     
    586588 * @returns 0 on success, Linux error code otherwise
    587589 */
    588 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0)
     590#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
     591static int sf_create(struct inode *parent, struct dentry *dentry, umode_t mode, bool excl)
     592#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0)
    589593static int sf_create(struct inode *parent, struct dentry *dentry, umode_t mode, struct nameidata *nd)
    590594#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r41451 r42880  
    77
    88/*
    9  * Copyright (C) 2006-2010 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    252252   [sf_inode_revalidate] */
    253253static int
    254 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
     254#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
     255sf_dentry_revalidate(struct dentry *dentry, unsigned flags)
     256#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
     257sf_dentry_revalidate(struct dentry *dentry, struct nameidata *nd)
     258#else
    255259sf_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)
    263268    /* see Documentation/filesystems/vfs.txt */
    264269    if (nd && nd->flags & LOOKUP_RCU)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette