]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
JFS: always load filesystem UUID during mount
authorJoão Paredes <joaommp@yahoo.com>
Mon, 2 Mar 2026 02:55:39 +0000 (02:55 +0000)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 11 Mar 2026 15:57:52 +0000 (10:57 -0500)
commit679330e4a7af1d102d035b13b2b9d41bc1dfbbf7
tree482a9255ecc70d091bd9fef7c63b4c43452d3024
parentca5848ae87d24886a7886f5a22278bd4045c15f8
JFS: always load filesystem UUID during mount

The filesystem UUID was only being loaded into super_block sb when an
external journal device was in use. When mounting without an external
journal, the UUID remained unset, which prevented the computation of
a filesystem ID (fsid), which could be confirmed via `stat -f -c "%i"`
and thus user space could not use fanotify correctly.

A missing filesystem ID causes fanotify to return ENODEV when marking
the filesystem for events like FAN_CREATE, FAN_DELETE, FAN_MOVED_TO,
and FAN_MOVED_FROM. As a result, applications relying on fanotify
could not monitor these events on JFS filesystems without an external
journal.

Moved the UUID initialization so it is always performed during mount,
ensuring the superblock UUID is consistently available.

Signed-off-by: João Paredes <joaommp@yahoo.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_mount.c