[JFFS2] Fill in f_fsid field in jffs2_statfs()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Aug 18 11:59:01 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=75caf6b5acc6b895df9bdd36db631220e1096e9f
Commit: 75caf6b5acc6b895df9bdd36db631220e1096e9f
Parent: 8ee991dd343df57910ff6947696afada9f02bf7e
Author: David Woodhouse <David.Woodhouse at intel.com>
AuthorDate: Mon Aug 18 16:23:53 2008 +0100
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 18 16:23:53 2008 +0100
[JFFS2] Fill in f_fsid field in jffs2_statfs()
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
fs/jffs2/fs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index 086c438..89e9b73 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -207,6 +207,8 @@ int jffs2_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_files = 0;
buf->f_ffree = 0;
buf->f_namelen = JFFS2_MAX_NAME_LEN;
+ buf->f_fsid.val[0] = JFFS2_SUPER_MAGIC;
+ buf->f_fsid.val[1] = c->mtd->index;
spin_lock(&c->erase_completion_lock);
avail = c->dirty_size + c->free_size;
More information about the linux-mtd-cvs
mailing list