Zonefs has a UUID in its on-disk super-block, but it doesn't set this filesystem UUID in the VFS super-block, so FS_IOC_GETFSUUID, which is handled at the VFS layer not inside zonefs, does not know about the filesystem's UUID. Set the filesystem's UUID in 'struct super_block' as well, so FS_IOC_GETFSUUID will see it and pass it to the user. Signed-off-by: Johannes Thumshirn --- fs/zonefs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index 0fe2d277dcda..4e50e3ac53ca 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1173,6 +1173,7 @@ static int zonefs_read_super(struct super_block *sb) } import_uuid(&sbi->s_uuid, super->s_uuid); + super_set_uuid(sb, super->s_uuid, ZONEFS_UUID_SIZE); ret = 0; free_super: -- 2.56.1