diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-05-16 23:12:41 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-05-19 09:33:49 +0200 |
commit | 21a228781104ae6fed7e720137ab024575071feb (patch) | |
tree | e75c1046173e195f9dfacfa28c88e12ae42b2bbc /fs/overlayfs/overlayfs.h | |
parent | ovl: don't fail copy-up if upper doesn't support xattr (diff) | |
download | linux-21a228781104ae6fed7e720137ab024575071feb.tar.xz linux-21a228781104ae6fed7e720137ab024575071feb.zip |
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>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r-- | fs/overlayfs/overlayfs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index ce7c3aba61e4..505b18b56330 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h @@ -206,7 +206,6 @@ bool ovl_dentry_is_opaque(struct dentry *dentry); bool ovl_dentry_is_whiteout(struct dentry *dentry); void ovl_dentry_set_opaque(struct dentry *dentry); bool ovl_redirect_dir(struct super_block *sb); -void ovl_clear_redirect_dir(struct super_block *sb); const char *ovl_dentry_get_redirect(struct dentry *dentry); void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect); void ovl_dentry_update(struct dentry *dentry, struct dentry *upperdentry); |