diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-31 17:13:18 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-31 17:22:11 +0300 |
commit | b3385c278d3c32aec68d4900b35bc07df1b2240c (patch) | |
tree | b13f63c22d399b4cb146b7fed3c9dfc6c316a838 /fs | |
parent | 7dad181bbe58b8fe9e170da28bcd5f6ec9addd6d (diff) | |
download | kernel_samsung_smdk4412-b3385c278d3c32aec68d4900b35bc07df1b2240c.zip kernel_samsung_smdk4412-b3385c278d3c32aec68d4900b35bc07df1b2240c.tar.gz kernel_samsung_smdk4412-b3385c278d3c32aec68d4900b35bc07df1b2240c.tar.bz2 |
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 1207bd5..0dee404 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; } |