aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorJim Garlick <garlick@llnl.gov>2011-06-30 12:03:38 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2012-03-10 20:34:04 -0500
commit5bdad93387c64f0095df7ae9a252ff44234a8b3f (patch)
tree96ee6e91455798a5e8a5559f45a56d4cf94e3543 /fs/9p
parent208f3c28aab706fca2bc1bae7091da8a99c5e322 (diff)
9p: statfs should not override server f_type
Allow a 9p2000.L server to supply the statfs f_type value rather than hardwiring V9FS_MAGIC. It is desirable to give the server this option in some applications, e.g. I/O forwarding. Signed-off-by: Jim Garlick <garlick@llnl.gov> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 7b0cd87b07c2..e55d8f7b2887 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -260,7 +260,7 @@ static int v9fs_statfs(struct dentry *dentry, struct kstatfs *buf)
260 if (v9fs_proto_dotl(v9ses)) { 260 if (v9fs_proto_dotl(v9ses)) {
261 res = p9_client_statfs(fid, &rs); 261 res = p9_client_statfs(fid, &rs);
262 if (res == 0) { 262 if (res == 0) {
263 buf->f_type = V9FS_MAGIC; 263 buf->f_type = rs.type;
264 buf->f_bsize = rs.bsize; 264 buf->f_bsize = rs.bsize;
265 buf->f_blocks = rs.blocks; 265 buf->f_blocks = rs.blocks;
266 buf->f_bfree = rs.bfree; 266 buf->f_bfree = rs.bfree;