ovl: handle rename when upper doesn't support xattr
authorAmir Goldstein <amir73il@gmail.com>
Tue, 16 May 2017 21:12:41 +0000 (00:12 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 19 May 2017 07:33:49 +0000 (09:33 +0200)
commit21a228781104ae6fed7e720137ab024575071feb
treee75c1046173e195f9dfacfa28c88e12ae42b2bbc
parent6266d465bde044a105f6c2d4e244680f951a2d70
ovl: handle rename when upper doesn't support xattr

On failure to set opaque/redirect xattr on rename, skip setting xattr and
return -EXDEV.

On failure to set opaque xattr when creating a new directory, -EIO is
returned instead of -EOPNOTSUPP.

Any failure to set those xattr will be recorded in super block and
then setting any xattr on upper won't be attempted again.

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