diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-05 16:25:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-05 16:25:24 -0500 |
commit | b13d3c6e8ab6ac53e8c1858a9c837cb6ba3bbef0 (patch) | |
tree | 4c0b6cba4975b0d7871096e0a99406d450b0272f /include | |
parent | e213e26ab3988c516c06eba4dcd030ac052f6dc9 (diff) | |
parent | 5717144a01d701614cfdb15f09ed562d720cf3db (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:
fs/9p: Add hardlink support to .u extension
9P2010.L handshake: .L protocol negotiation
9P2010.L handshake: Remove "dotu" variable
9P2010.L handshake: Add mount option
9P2010.L handshake: Add VFS flags
net/9p: Handle mount errors correctly.
net/9p: Remove MAX_9P_CHAN limit
net/9p: Add multi channel support.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/virtio_9p.h | 3 | ||||
-rw-r--r-- | include/net/9p/client.h | 18 |
2 files changed, 17 insertions, 4 deletions
diff --git a/include/linux/virtio_9p.h b/include/linux/virtio_9p.h index 095e10d148b4..332275080083 100644 --- a/include/linux/virtio_9p.h +++ b/include/linux/virtio_9p.h | |||
@@ -5,7 +5,4 @@ | |||
5 | #include <linux/virtio_ids.h> | 5 | #include <linux/virtio_ids.h> |
6 | #include <linux/virtio_config.h> | 6 | #include <linux/virtio_config.h> |
7 | 7 | ||
8 | /* Maximum number of virtio channels per partition (1 for now) */ | ||
9 | #define MAX_9P_CHAN 1 | ||
10 | |||
11 | #endif /* _LINUX_VIRTIO_9P_H */ | 8 | #endif /* _LINUX_VIRTIO_9P_H */ |
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index fb00b329f0d3..52e1fff709e4 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h | |||
@@ -29,6 +29,19 @@ | |||
29 | /* Number of requests per row */ | 29 | /* Number of requests per row */ |
30 | #define P9_ROW_MAXTAG 255 | 30 | #define P9_ROW_MAXTAG 255 |
31 | 31 | ||
32 | /** enum p9_proto_versions - 9P protocol versions | ||
33 | * @p9_proto_legacy: 9P Legacy mode, pre-9P2000.u | ||
34 | * @p9_proto_2000u: 9P2000.u extension | ||
35 | * @p9_proto_2010L: 9P2010.L extension | ||
36 | */ | ||
37 | |||
38 | enum p9_proto_versions{ | ||
39 | p9_proto_legacy = 0, | ||
40 | p9_proto_2000u = 1, | ||
41 | p9_proto_2010L = 2, | ||
42 | }; | ||
43 | |||
44 | |||
32 | /** | 45 | /** |
33 | * enum p9_trans_status - different states of underlying transports | 46 | * enum p9_trans_status - different states of underlying transports |
34 | * @Connected: transport is connected and healthy | 47 | * @Connected: transport is connected and healthy |
@@ -111,6 +124,7 @@ struct p9_req_t { | |||
111 | * @lock: protect @fidlist | 124 | * @lock: protect @fidlist |
112 | * @msize: maximum data size negotiated by protocol | 125 | * @msize: maximum data size negotiated by protocol |
113 | * @dotu: extension flags negotiated by protocol | 126 | * @dotu: extension flags negotiated by protocol |
127 | * @proto_version: 9P protocol version to use | ||
114 | * @trans_mod: module API instantiated with this client | 128 | * @trans_mod: module API instantiated with this client |
115 | * @trans: tranport instance state and API | 129 | * @trans: tranport instance state and API |
116 | * @conn: connection state information used by trans_fd | 130 | * @conn: connection state information used by trans_fd |
@@ -137,7 +151,7 @@ struct p9_req_t { | |||
137 | struct p9_client { | 151 | struct p9_client { |
138 | spinlock_t lock; /* protect client structure */ | 152 | spinlock_t lock; /* protect client structure */ |
139 | int msize; | 153 | int msize; |
140 | unsigned char dotu; | 154 | unsigned char proto_version; |
141 | struct p9_trans_module *trans_mod; | 155 | struct p9_trans_module *trans_mod; |
142 | enum p9_trans_status status; | 156 | enum p9_trans_status status; |
143 | void *trans; | 157 | void *trans; |
@@ -209,5 +223,7 @@ int p9_parse_header(struct p9_fcall *, int32_t *, int8_t *, int16_t *, int); | |||
209 | int p9stat_read(char *, int, struct p9_wstat *, int); | 223 | int p9stat_read(char *, int, struct p9_wstat *, int); |
210 | void p9stat_free(struct p9_wstat *); | 224 | void p9stat_free(struct p9_wstat *); |
211 | 225 | ||
226 | int p9_is_proto_dotu(struct p9_client *clnt); | ||
227 | int p9_is_proto_dotl(struct p9_client *clnt); | ||
212 | 228 | ||
213 | #endif /* NET_9P_CLIENT_H */ | 229 | #endif /* NET_9P_CLIENT_H */ |