* [PATCH] zonefs: set filesystem UUID in super block
@ 2026-11-30 8:25 Johannes Thumshirn
2026-12-02 7:20 ` Damien Le Moal
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Thumshirn @ 2026-11-30 8:25 UTC (permalink / raw)
To: Damien Le Moal; +Cc: Naohiro Aota, linux-fsdevel, Johannes Thumshirn
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 <johannes.thumshirn@wdc.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] zonefs: set filesystem UUID in super block
2026-11-30 8:25 [PATCH] zonefs: set filesystem UUID in super block Johannes Thumshirn
@ 2026-12-02 7:20 ` Damien Le Moal
0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2026-12-02 7:20 UTC (permalink / raw)
To: Johannes Thumshirn; +Cc: Naohiro Aota, linux-fsdevel
On 11/30/26 17:25, Johannes Thumshirn wrote:
> 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 <johannes.thumshirn@wdc.com>
Applied to for-7.5. Thanks!
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-02 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 8:25 [PATCH] zonefs: set filesystem UUID in super block Johannes Thumshirn
2026-12-02 7:20 ` Damien Le Moal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.