]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix origin verification of index dir
authorAmir Goldstein <amir73il@gmail.com>
Tue, 11 Jul 2017 12:58:36 +0000 (15:58 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 13 Jul 2017 20:06:46 +0000 (22:06 +0200)
commit7738550f8d6b59a7bb4b46b2e03db126b07fd226
tree470a5e693a87b950eece3c82a284da0ea292620c
parent5ffcb1ad856c9627aff6b3cc587cd4ab8f3fab4f
ovl: fix origin verification of index dir

Commit 05052664aa0e ("ovl: verify index dir matches upper dir")
introduced a new ovl_fh flag OVL_FH_FLAG_PATH_UPPER to indicate
an upper file handle, but forgot to add the flag to the mask of
valid flags, so index dir origin verification always discards
existing origin and stores a new one.

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