OSDN Git Service

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)
commit0e082555cec9510d276965fe391f709acb32c0f4
tree437e67241b032c2a0e3f009f9ae940839b077008
parent61b674710cd9afa2a8b17bdd1ac80670c9b79f1d
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