summaryrefslogblamecommitdiffstats
path: root/fs/orangefs/symlink.c
blob: 321f626b190b7db79bf979aef748dbc8271e5a73 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                            
                                                                             
 
                                                                 









                                                                    
                                                             
                                     



                                            

                                     
/*
 * (C) 2001 Clemson University and The University of Chicago
 *
 * See COPYING in top-level directory.
 */

#include "protocol.h"
#include "pvfs2-kernel.h"
#include "pvfs2-bufmap.h"

static const char *orangefs_follow_link(struct dentry *dentry, void **cookie)
{
	char *target =  ORANGEFS_I(dentry->d_inode)->link_target;

	gossip_debug(GOSSIP_INODE_DEBUG,
		     "%s: called on %s (target is %p)\n",
		     __func__, (char *)dentry->d_name.name, target);

	*cookie = target;

	return target;
}

struct inode_operations orangefs_symlink_inode_operations = {
	.readlink = generic_readlink,
	.follow_link = orangefs_follow_link,
	.setattr = orangefs_setattr,
	.getattr = orangefs_getattr,
	.listxattr = orangefs_listxattr,
	.setxattr = generic_setxattr,
};