Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3385c27 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 7dad181b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -386,6 +386,7 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf)
	buf->f_files = 0;
	buf->f_files = 0;
	buf->f_ffree = 0;
	buf->f_ffree = 0;
	buf->f_namelen = UBIFS_MAX_NLEN;
	buf->f_namelen = UBIFS_MAX_NLEN;
	memcpy(&buf->f_fsid, c->uuid, sizeof(__kernel_fsid_t));


	return 0;
	return 0;
}
}