VirtualBox

Changeset 33440 in vbox for trunk


Ignore:
Timestamp:
Oct 25, 2010 8:19:36 PM (14 years ago)
Author:
vboxsync
Message:

Linux Additions: symlinks only for Linux 2.6 guests

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

Legend:

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

    r33439 r33440  
    739739}
    740740
     741#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    741742static int sf_symlink(struct inode *parent, struct dentry *dentry, const char *symname)
    742743{
     
    799800    return err;
    800801}
     802#endif
    801803
    802804struct inode_operations sf_dir_iops =
  • trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c

    r33439 r33440  
    11#include "vfsmod.h"
     2
     3#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    24
    35static void *sf_follow_link(struct dentry *dentry, struct nameidata *nd)
     
    3840        .put_link       = sf_put_link
    3941};
     42
     43#endif
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r33439 r33440  
    112112        inode->i_nlink = 1;
    113113    }
     114#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    114115    else if (RTFS_IS_SYMLINK(attr->fMode))
    115116    {
     
    120121        inode->i_nlink = 1;
    121122    }
     123#endif
    122124    else
    123125    {
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r33439 r33440  
    472472#endif
    473473
     474#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    474475static int follow_symlinks = 0;
    475476module_param(follow_symlinks, bool, 0);
    476477MODULE_PARM_DESC(follow_symlinks, "Let host resolve symlinks rather than showing them");
     478#endif
    477479
    478480/* Module initialization/finalization handlers */
     
    526528    }
    527529
     530#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    528531    if (!follow_symlinks)
    529532    {
     
    536539        }
    537540    }
    538 
     541#endif
    539542
    540543    printk(KERN_DEBUG
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