ovl: store persistent uuid/fsid with uuid=on
authorAmir Goldstein <amir73il@gmail.com>
Fri, 7 Jul 2023 08:20:41 +0000 (11:20 +0300)
committerAmir Goldstein <amir73il@gmail.com>
Sat, 12 Aug 2023 16:02:50 +0000 (19:02 +0300)
commitd9544c1b0d9e14a66936814dcc8a85861ea1b99f
treeb8c8a2f1daee13141cd107888e932902873569d4
parentb0504bfe1b8acdcfb5ef466581d930835ef3c49e
ovl: store persistent uuid/fsid with uuid=on

With uuid=on, store a persistent uuid in xattr on the upper dir to
give the overlayfs instance a persistent identifier.

This also makes f_fsid persistent and more reliable for reporting
fid info in fanotify events.

uuid=on is not supported on non-upper overlayfs or with upper fs
that does not support xattrs.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Documentation/filesystems/overlayfs.rst
fs/overlayfs/overlayfs.h
fs/overlayfs/params.c
fs/overlayfs/super.c
fs/overlayfs/util.c