xfs: Print XFS UUID on mount and umount events.
authorLukas Herbolt <lukas@herbolt.com>
Thu, 17 Nov 2022 03:20:21 +0000 (19:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 17 Nov 2022 03:20:21 +0000 (19:20 -0800)
commit64c80dfd04d1dd2ecf550542c8f3f41b54b20207
tree42d58574d781598a2dbebade5b29c9f7314af2aa
parent59f6ab40fd8735c9a1a15401610a31cc06a0bbd6
xfs: Print XFS UUID on mount and umount events.

As of now only device names are printed out over __xfs_printk().
The device names are not persistent across reboots which in case
of searching for origin of corruption brings another task to properly
identify the devices. This patch add XFS UUID upon every mount/umount
event which will make the identification much easier.

Signed-off-by: Lukas Herbolt <lukas@herbolt.com>
[sandeen: rebase onto current upstream kernel]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_super.c