Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
link.c File Reference
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/namei.h>
#include "cifsfs.h"
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "cifs_debug.h"
#include "cifs_fs_sb.h"

Go to the source code of this file.


#define CIFS_MF_SYMLINK_LEN_FORMAT   "XSym\n%04u\n"
#define CIFS_MF_SYMLINK_MD5_FORMAT   "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n"
#define CIFS_MF_SYMLINK_MD5_ARGS(md5_hash)


bool CIFSCouldBeMFSymlink (const struct cifs_fattr *fattr)
int CIFSCheckMFSymlink (struct cifs_fattr *fattr, const unsigned char *path, struct cifs_sb_info *cifs_sb, unsigned int xid)
int cifs_hardlink (struct dentry *old_file, struct inode *inode, struct dentry *direntry)
voidcifs_follow_link (struct dentry *direntry, struct nameidata *nd)
int cifs_symlink (struct inode *inode, struct dentry *direntry, const char *symname)
void cifs_put_link (struct dentry *direntry, struct nameidata *nd, void *cookie)

Macro Definition Documentation


Definition at line 36 of file link.c.

#define CIFS_MF_SYMLINK_LEN_FORMAT   "XSym\n%04u\n"

Definition at line 39 of file link.c.


Definition at line 32 of file link.c.


Definition at line 35 of file link.c.


Definition at line 34 of file link.c.

#define CIFS_MF_SYMLINK_MD5_ARGS (   md5_hash)
md5_hash[0], md5_hash[1], md5_hash[2], md5_hash[3], \
md5_hash[4], md5_hash[5], md5_hash[6], md5_hash[7], \
md5_hash[8], md5_hash[9], md5_hash[10], md5_hash[11],\
md5_hash[12], md5_hash[13], md5_hash[14], md5_hash[15]

Definition at line 42 of file link.c.

#define CIFS_MF_SYMLINK_MD5_FORMAT   "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n"

Definition at line 40 of file link.c.


Definition at line 33 of file link.c.

Function Documentation

void* cifs_follow_link ( struct dentry direntry,
struct nameidata nd 

Definition at line 480 of file link.c.

int cifs_hardlink ( struct dentry old_file,
struct inode inode,
struct dentry direntry 

Definition at line 389 of file link.c.

void cifs_put_link ( struct dentry direntry,
struct nameidata nd,
void cookie 

Definition at line 617 of file link.c.

int cifs_symlink ( struct inode inode,
struct dentry direntry,
const char symname 

Definition at line 556 of file link.c.

int CIFSCheckMFSymlink ( struct cifs_fattr fattr,
const unsigned char path,
struct cifs_sb_info cifs_sb,
unsigned int  xid 

Definition at line 308 of file link.c.

bool CIFSCouldBeMFSymlink ( const struct cifs_fattr fattr)

Definition at line 294 of file link.c.