]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: check for bad and whiteout index on lookup
authorAmir Goldstein <amir73il@gmail.com>
Tue, 18 Jul 2017 18:07:43 +0000 (21:07 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 20 Jul 2017 09:08:21 +0000 (11:08 +0200)
commit2b113bf4bdc6a6ae0cd7d177b951e44089907534
tree437e67241b032c2a0e3f009f9ae940839b077008
parent9cd6b2e0536b7f625b5f2dd8435a3c931218ba1d
ovl: check for bad and whiteout index on lookup

Index should always be of the same file type as origin, except for
the case of a whiteout index.  A whiteout index should only exist
if all lower aliases have been unlinked, which means that finding
a lower origin on lookup whose index is a whiteout should be treated
as a lookup error.

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