blob: 2adfceff773025304170d0988649ea9e76f82ae7 [file] [log] [blame]
Mike Marshall1182fca2015-07-17 10:38:15 -04001/*
2 * (C) 2001 Clemson University and The University of Chicago
3 *
4 * See COPYING in top-level directory.
5 */
6
7#include "protocol.h"
8#include "pvfs2-kernel.h"
9#include "pvfs2-bufmap.h"
10
11static const char *pvfs2_follow_link(struct dentry *dentry, void **cookie)
12{
13 char *target = PVFS2_I(dentry->d_inode)->link_target;
14
15 gossip_debug(GOSSIP_INODE_DEBUG,
16 "%s: called on %s (target is %p)\n",
17 __func__, (char *)dentry->d_name.name, target);
18
19 *cookie = target;
20
21 return target;
22}
23
24struct inode_operations pvfs2_symlink_inode_operations = {
25 .readlink = generic_readlink,
26 .follow_link = pvfs2_follow_link,
27 .setattr = pvfs2_setattr,
28 .getattr = pvfs2_getattr,
29 .listxattr = pvfs2_listxattr,
30 .setxattr = generic_setxattr,
31};