Skip to content

Commit b3385c2

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
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 <[email protected]>
1 parent 7dad181 commit b3385c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ubifs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf)
386386
buf->f_files = 0;
387387
buf->f_ffree = 0;
388388
buf->f_namelen = UBIFS_MAX_NLEN;
389+
memcpy(&buf->f_fsid, c->uuid, sizeof(__kernel_fsid_t));
389390

390391
return 0;
391392
}

0 commit comments

Comments
 (0)