aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/9p
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2010-06-03 18:16:59 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2010-08-02 15:28:25 -0400
commit652df9a7fd03cb47a3f663f0c08a2bd086505e9b (patch)
treeaf90ae0762a8770e660b4cbb23f7e9225cd5dba7 /include/net/9p
parent09d34ee5f93b2e53b64ffba27bc18731e31154e1 (diff)
9p: Define and implement TLINK for 9P2000.L
This patch adds a helper function to get the dentry from inode and uses it in creating a Hardlink SYNOPSIS size[4] Tlink tag[2] dfid[4] oldfid[4] newpath[s] size[4] Rlink tag[2] DESCRIPTION Create a link 'newpath' in directory pointed by dfid linking to oldfid path. [sripathik@in.ibm.com : p9_client_link should not free req structure if p9_client_rpc has returned an error.] Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/net/9p')
-rw-r--r--include/net/9p/9p.h2
-rw-r--r--include/net/9p/client.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h
index 7f64d72f6c61..5985c0f83db3 100644
--- a/include/net/9p/9p.h
+++ b/include/net/9p/9p.h
@@ -139,6 +139,8 @@ enum p9_msg_t {
139 P9_RSETATTR, 139 P9_RSETATTR,
140 P9_TREADDIR = 40, 140 P9_TREADDIR = 40,
141 P9_RREADDIR, 141 P9_RREADDIR,
142 P9_TLINK = 70,
143 P9_RLINK,
142 P9_TVERSION = 100, 144 P9_TVERSION = 100,
143 P9_RVERSION, 145 P9_RVERSION,
144 P9_TAUTH = 102, 146 P9_TAUTH = 102,
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index afdc385152f6..e36f11650e99 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -226,6 +226,7 @@ struct p9_fid *p9_client_walk(struct p9_fid *oldfid, int nwname, char **wnames,
226int p9_client_open(struct p9_fid *fid, int mode); 226int p9_client_open(struct p9_fid *fid, int mode);
227int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode, 227int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode,
228 char *extension); 228 char *extension);
229int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, char *newname);
229int p9_client_clunk(struct p9_fid *fid); 230int p9_client_clunk(struct p9_fid *fid);
230int p9_client_remove(struct p9_fid *fid); 231int p9_client_remove(struct p9_fid *fid);
231int p9_client_read(struct p9_fid *fid, char *data, char __user *udata, 232int p9_client_read(struct p9_fid *fid, char *data, char __user *udata,