summaryrefslogtreecommitdiff
path: root/include/net/9p/client.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-07-23 10:58:49 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-23 10:58:49 -0700
commit9d1c02135516866cbbb2f80e20cfb65c63a3ce40 (patch)
tree83fa4c9100435ae530d3959f6aebde3ccc8c7481 /include/net/9p/client.h
parent807094c0b1c41344def32b249d9faf7b5ebeb1e7 (diff)
parentc9ffb05ca5b5098d6ea468c909dd384d90da7d54 (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: net/9p: Fix the msize calculation. fs/9p: add 9P2000.L unlinkat operation fs/9p: add 9P2000.L renameat operation fs/9p: Always ask new inode in create fs/9p: Clean-up get_protocol_version() to use strcmp fs/9p: Fix invalid mount options/args fs/9p: When doing inode lookup compare qid details and inode mode bits. fs/9p: Fid is not valid after a failed clunk. net/9p: Remove structure not used in the code VirtIO can transfer VIRTQUEUE_NUM of pages. Fix the size of receive buffer packing onto VirtIO ring. 9p: clean up packet dump code fs/9p: remove rename work around in 9p net/9p: fix client code to fail more gracefully on protocol error
Diffstat (limited to 'include/net/9p/client.h')
-rw-r--r--include/net/9p/client.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index d26d5e98a173..55ce72ce9861 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -36,9 +36,9 @@
*/
enum p9_proto_versions{
- p9_proto_legacy = 0,
- p9_proto_2000u = 1,
- p9_proto_2000L = 2,
+ p9_proto_legacy,
+ p9_proto_2000u,
+ p9_proto_2000L,
};
@@ -211,7 +211,10 @@ struct p9_dirent {
};
int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb);
-int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid, char *name);
+int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid,
+ const char *name);
+int p9_client_renameat(struct p9_fid *olddirfid, const char *old_name,
+ struct p9_fid *newdirfid, const char *new_name);
struct p9_client *p9_client_create(const char *dev_name, char *options);
void p9_client_destroy(struct p9_client *clnt);
void p9_client_disconnect(struct p9_client *clnt);
@@ -231,6 +234,7 @@ int p9_client_create_dotl(struct p9_fid *ofid, char *name, u32 flags, u32 mode,
int p9_client_clunk(struct p9_fid *fid);
int p9_client_fsync(struct p9_fid *fid, int datasync);
int p9_client_remove(struct p9_fid *fid);
+int p9_client_unlinkat(struct p9_fid *dfid, const char *name, int flags);
int p9_client_read(struct p9_fid *fid, char *data, char __user *udata,
u64 offset, u32 count);
int p9_client_write(struct p9_fid *fid, char *data, const char __user *udata,