From: Artem Bityutskiy Date: Sun, 31 Aug 2008 14:13:18 +0000 (+0300) Subject: UBIFS: fill f_fsid X-Git-Tag: v2.6.27-rc6~7^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b3385c278d3c32aec68d4900b35bc07df1b2240c;p=linux-2.6-omap-h63xx.git 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: Artem Bityutskiy --- diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 1207bd51ead..0dee4042c6c 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -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; }