]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: whiteout orphan index entries on mount
authorAmir Goldstein <amir73il@gmail.com>
Thu, 11 Jan 2018 13:33:51 +0000 (15:33 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:25:56 +0000 (11:25 +0100)
commit391e177af9b3c0bd56dd27b30f70efcc0c8e27d1
treeb4a2a55684b6413ee380c1ac645831d2e3185ce3
parent037044d377d51d11ba03d5da7ece79370402b194
ovl: whiteout orphan index entries on mount

Orphan index entries are non-dir index entries whose union nlink count
dropped to zero. With index=on, orphan index entries are removed on
mount. With NFS export feature enabled, orphan index entries are replaced
with white out index entries to block future open by handle from opening
the lower file.

When dir index has a stale 'upper' xattr, we assume that the upper dir
was removed and we treat the dir index as orphan entry that needs to be
whited out or removed.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c
fs/overlayfs/readdir.c