projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dad181
)
UBIFS: fill f_fsid
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Sun, 31 Aug 2008 14:13:18 +0000
(17:13 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Sun, 31 Aug 2008 14:22:11 +0000
(17:22 +0300)
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>
fs/ubifs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ubifs/super.c
b/fs/ubifs/super.c
index 1207bd51eaddecda4159e09fd725729a507beebf..0dee4042c6c5a88022ae9fcbc4e55da857aa6559 100644
(file)
--- 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;
}