ovl: check on mount time if upper fs supports setting xattr
authorAmir Goldstein <amir73il@gmail.com>
Tue, 16 May 2017 21:12:40 +0000 (00:12 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 18 May 2017 14:11:24 +0000 (16:11 +0200)
commit82b749b2c65e9d108c1c5598dc0a5f436b525f42
tree64b5d467ac3acc5f4d7f2776caac37e89ad35dea
parent8137ae26d25303e7b5cfb418fd28b976461e5b6e
ovl: check on mount time if upper fs supports setting xattr

xattr are needed by overlayfs for setting opaque dir, redirect dir
and copy up origin.

Check at mount time by trying to set the overlay.opaque xattr on the
workdir and if that fails issue a warning message.

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