diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-24 10:41:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-24 10:41:13 -0400 |
commit | 4fd5ec509bd486b5dd8cac1a4d4d7e2cbdf7c546 (patch) | |
tree | a8ddfdcc4bfb702457e8eeff57fd6b5a2f4249b2 /include | |
parent | 6e188240ebc2a132d70924942d7c8b9acb46e11a (diff) | |
parent | 6d27e64d74e14c1cf2b4af438d7e8a77017bd654 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
9p: Optimize TCREATE by eliminating a redundant fid clone.
9p: cleanup: remove unneeded assignment
9p: Add mksock support
fs/9p: Make sure we properly instantiate dentry.
9p: add 9P2000.L rename operation
9p: add 9P2000.L statfs operation
9p: VFS switches for 9p2000.L: VFS switches
9p: VFS switches for 9p2000.L: protocol and client changes
Diffstat (limited to 'include')
-rw-r--r-- | include/net/9p/9p.h | 33 | ||||
-rw-r--r-- | include/net/9p/client.h | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index a7fb54808a23..156c26bb8bd7 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h | |||
@@ -86,6 +86,10 @@ do { \ | |||
86 | 86 | ||
87 | /** | 87 | /** |
88 | * enum p9_msg_t - 9P message types | 88 | * enum p9_msg_t - 9P message types |
89 | * @P9_TSTATFS: file system status request | ||
90 | * @P9_RSTATFS: file system status response | ||
91 | * @P9_TRENAME: rename request | ||
92 | * @P9_RRENAME: rename response | ||
89 | * @P9_TVERSION: version handshake request | 93 | * @P9_TVERSION: version handshake request |
90 | * @P9_RVERSION: version handshake response | 94 | * @P9_RVERSION: version handshake response |
91 | * @P9_TAUTH: request to establish authentication channel | 95 | * @P9_TAUTH: request to establish authentication channel |
@@ -125,6 +129,10 @@ do { \ | |||
125 | */ | 129 | */ |
126 | 130 | ||
127 | enum p9_msg_t { | 131 | enum p9_msg_t { |
132 | P9_TSTATFS = 8, | ||
133 | P9_RSTATFS, | ||
134 | P9_TRENAME = 20, | ||
135 | P9_RRENAME, | ||
128 | P9_TVERSION = 100, | 136 | P9_TVERSION = 100, |
129 | P9_RVERSION, | 137 | P9_RVERSION, |
130 | P9_TAUTH = 102, | 138 | P9_TAUTH = 102, |
@@ -350,6 +358,31 @@ struct p9_wstat { | |||
350 | }; | 358 | }; |
351 | 359 | ||
352 | /* Structures for Protocol Operations */ | 360 | /* Structures for Protocol Operations */ |
361 | struct p9_tstatfs { | ||
362 | u32 fid; | ||
363 | }; | ||
364 | |||
365 | struct p9_rstatfs { | ||
366 | u32 type; | ||
367 | u32 bsize; | ||
368 | u64 blocks; | ||
369 | u64 bfree; | ||
370 | u64 bavail; | ||
371 | u64 files; | ||
372 | u64 ffree; | ||
373 | u64 fsid; | ||
374 | u32 namelen; | ||
375 | }; | ||
376 | |||
377 | struct p9_trename { | ||
378 | u32 fid; | ||
379 | u32 newdirfid; | ||
380 | struct p9_str name; | ||
381 | }; | ||
382 | |||
383 | struct p9_rrename { | ||
384 | }; | ||
385 | |||
353 | struct p9_tversion { | 386 | struct p9_tversion { |
354 | u32 msize; | 387 | u32 msize; |
355 | struct p9_str version; | 388 | struct p9_str version; |
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index 4f3760afc20f..7dd3ed85c782 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h | |||
@@ -195,6 +195,8 @@ struct p9_fid { | |||
195 | struct list_head dlist; /* list of all fids attached to a dentry */ | 195 | struct list_head dlist; /* list of all fids attached to a dentry */ |
196 | }; | 196 | }; |
197 | 197 | ||
198 | int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb); | ||
199 | int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid, char *name); | ||
198 | int p9_client_version(struct p9_client *); | 200 | int p9_client_version(struct p9_client *); |
199 | struct p9_client *p9_client_create(const char *dev_name, char *options); | 201 | struct p9_client *p9_client_create(const char *dev_name, char *options); |
200 | void p9_client_destroy(struct p9_client *clnt); | 202 | void p9_client_destroy(struct p9_client *clnt); |