linux/fs/overlayfs
Amir Goldstein 415543d5c6 ovl: cleanup bad and stale index entries on mount
Bad index entries are entries whose name does not match the
origin file handle stored in trusted.overlay.origin xattr.
Bad index entries could be a result of a system power off in
the middle of copy up.

Stale index entries are entries whose origin file handle is
stale. Stale index entries could be a result of copying layers
or removing lower entries while the overlay is not mounted.
The case of copying layers should be detected earlier by the
verification of upper root dir origin and index dir origin.

Both bad and stale index entries are detected and removed
on mount.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-04 22:03:17 +02:00
..
Kconfig ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
copy_up.c ovl: verify index dir matches upper dir 2017-07-04 22:03:17 +02:00
dir.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
inode.c ovl: lookup index entry for copy up origin 2017-07-04 22:03:17 +02:00
namei.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
overlayfs.h ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
ovl_entry.h ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
readdir.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
super.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
util.c ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00