]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: do not cleanup directory and whiteout index entries
authorAmir Goldstein <amir73il@gmail.com>
Tue, 18 Jul 2017 18:07:42 +0000 (21:07 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 20 Jul 2017 09:08:21 +0000 (11:08 +0200)
commit9cd6b2e0536b7f625b5f2dd8435a3c931218ba1d
treef89075832207218b46b53829aefd4614f4327c4e
parentca650976a681a2cdc06fcabbd48f4d3da1513c96
ovl: do not cleanup directory and whiteout index entries

Directory index entries are going to be used for looking up
redirected upper dirs by lower dir fh when decoding an overlay
file handle of a merge dir.

Whiteout index entries are going to be used as an indication that
an exported overlay file handle should be treated as stale (i.e.
after unlink of the overlay inode).

We don't know the verification rules for directory and whiteout
index entries, because they have not been implemented yet, so fail
to mount overlay rw if those entries are found to avoid corrupting
an index that was created by a newer kernel.

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