diff options
author | Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com> | 2010-06-17 21:27:46 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-08-02 15:28:32 -0400 |
commit | 5643135a28464e7c19d8d23a9e0804697a62c84b (patch) | |
tree | d7141110fab0f3d71a95fe18b0b77cbaca645c80 /include/net/9p/9p.h | |
parent | 01a622bd7409bb7af38e784cff814e5e723f7951 (diff) |
fs/9p: This patch implements TLCREATE for 9p2000.L protocol.
SYNOPSIS
size[4] Tlcreate tag[2] fid[4] name[s] flags[4] mode[4] gid[4]
size[4] Rlcreate tag[2] qid[13] iounit[4]
DESCRIPTION
The Tlreate request asks the file server to create a new regular file with the
name supplied, in the directory (dir) represented by fid.
The mode argument specifies the permissions to use. New file is created with
the uid if the fid and with supplied gid.
The flags argument represent Linux access mode flags with which the caller
is requesting to open the file with. Protocol allows all the Linux access
modes but it is upto the server to allow/disallow any of these acess modes.
If the server doesn't support any of the access mode, it is expected to
return 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/9p.h')
-rw-r--r-- | include/net/9p/9p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 091b471d8f05..06d111d61038 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h | |||
@@ -92,6 +92,8 @@ do { \ | |||
92 | * @P9_RSYMLINK: make symlink response | 92 | * @P9_RSYMLINK: make symlink response |
93 | * @P9_TMKNOD: create a special file object request | 93 | * @P9_TMKNOD: create a special file object request |
94 | * @P9_RMKNOD: create a special file object response | 94 | * @P9_RMKNOD: create a special file object response |
95 | * @P9_TLCREATE: prepare a handle for I/O on an new file for 9P2000.L | ||
96 | * @P9_RLCREATE: response with file access information for 9P2000.L | ||
95 | * @P9_TRENAME: rename request | 97 | * @P9_TRENAME: rename request |
96 | * @P9_RRENAME: rename response | 98 | * @P9_RRENAME: rename response |
97 | * @P9_TMKDIR: create a directory request | 99 | * @P9_TMKDIR: create a directory request |
@@ -137,6 +139,8 @@ do { \ | |||
137 | enum p9_msg_t { | 139 | enum p9_msg_t { |
138 | P9_TSTATFS = 8, | 140 | P9_TSTATFS = 8, |
139 | P9_RSTATFS, | 141 | P9_RSTATFS, |
142 | P9_TLCREATE = 14, | ||
143 | P9_RLCREATE, | ||
140 | P9_TSYMLINK = 16, | 144 | P9_TSYMLINK = 16, |
141 | P9_RSYMLINK, | 145 | P9_RSYMLINK, |
142 | P9_TMKNOD = 18, | 146 | P9_TMKNOD = 18, |