Centos-kernel-stream-9/fs/kernfs
Ryan Sullivan 2e2ebe63c2 fs: super_set_uuid()
JIRA: https://issues.redhat.com/browse/RHEL-8810

Some weird old filesytems have UUID-like things that we wish to expose
as UUIDs, but are smaller; add a length field so that the new
FS_IOC_(GET|SET)UUID ioctls can handle them in generic code.

And add a helper super_set_uuid(), for setting nonstandard length uuids.

Helper is now required for the new FS_IOC_GETUUID ioctl; if
super_set_uuid() hasn't been called, the ioctl won't be supported.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Link: https://lore.kernel.org/r/20240207025624.1019754-2-kent.overstreet@linux.dev
Signed-off-by: Christian Brauner <brauner@kernel.org>
(cherry picked from commit a4af51ce229b1e1eab003966dbfebf9d80093a77)
Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
2025-02-07 17:06:38 -05:00
..
Kconfig
Makefile
dir.c Merge: fs: backport mnt_idmap type 2024-11-11 08:26:30 +00:00
file.c kernfs: drop shared NUMA mempolicy hooks 2024-12-09 12:23:09 -05:00
inode.c Merge: fs: backport mnt_idmap type 2024-11-11 08:26:30 +00:00
kernfs-internal.h Merge: fs: backport mnt_idmap type 2024-11-11 08:26:30 +00:00
mount.c fs: super_set_uuid() 2025-02-07 17:06:38 -05:00
symlink.c kernfs: fix all kernel-doc warnings and multiple typos 2024-09-30 09:46:58 -04:00