diff options
author | Eric Van Hensbergen <ericvh@opteron.(none)> | 2007-10-17 15:31:07 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com> | 2007-10-17 15:31:07 -0400 |
commit | a80d923e1321a7ed69a0918de37e39871bb536a0 (patch) | |
tree | 8294e5f14a0e938ae4675ef912a32fbade0f832b /fs/9p/vfs_super.c | |
parent | 0eafaae84e21ac033815cc9f33c3ae889cd7ccfe (diff) |
9p: Make transports dynamic
This patch abstracts out the interfaces to underlying transports so that
new transports can be added as modules. This should also allow kernel
configuration of transports without ifdef-hell.
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r-- | fs/9p/vfs_super.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index ba904371218b..bb0cef9a6b8a 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c | |||
@@ -216,24 +216,7 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt) | |||
216 | { | 216 | { |
217 | struct v9fs_session_info *v9ses = mnt->mnt_sb->s_fs_info; | 217 | struct v9fs_session_info *v9ses = mnt->mnt_sb->s_fs_info; |
218 | 218 | ||
219 | if (v9ses->debug != 0) | 219 | seq_printf(m, "%s", v9ses->options); |
220 | seq_printf(m, ",debug=%x", v9ses->debug); | ||
221 | if (v9ses->port != V9FS_PORT) | ||
222 | seq_printf(m, ",port=%u", v9ses->port); | ||
223 | if (v9ses->maxdata != 9000) | ||
224 | seq_printf(m, ",msize=%u", v9ses->maxdata); | ||
225 | if (v9ses->afid != ~0) | ||
226 | seq_printf(m, ",afid=%u", v9ses->afid); | ||
227 | if (v9ses->proto == PROTO_UNIX) | ||
228 | seq_puts(m, ",proto=unix"); | ||
229 | if (v9ses->extended == 0) | ||
230 | seq_puts(m, ",noextend"); | ||
231 | if (v9ses->nodev == 1) | ||
232 | seq_puts(m, ",nodevmap"); | ||
233 | seq_printf(m, ",name=%s", v9ses->name); | ||
234 | seq_printf(m, ",aname=%s", v9ses->remotename); | ||
235 | seq_printf(m, ",uid=%u", v9ses->uid); | ||
236 | seq_printf(m, ",gid=%u", v9ses->gid); | ||
237 | return 0; | 220 | return 0; |
238 | } | 221 | } |
239 | 222 | ||