提交 b3385c27 编写于 作者: A Artem Bityutskiy

UBIFS: fill f_fsid

UBIFS stores 16-bit UUID in the superblock, and it is a good
idea to return part of it in 'f_fsid' filed of kstatfs structure.
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 7dad181b
......@@ -386,6 +386,7 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_files = 0;
buf->f_ffree = 0;
buf->f_namelen = UBIFS_MAX_NLEN;
memcpy(&buf->f_fsid, c->uuid, sizeof(__kernel_fsid_t));
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册