1
0
Fork 0

ovl: do not fail when setting origin xattr

Comment above call already says this, but only EOPNOTSUPP is ignored, other
failures are not.

For example setting "user.*" will fail with EPERM on symlink/special.

Ignore this error as well.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
zero-sugar-mainline-defconfig
Miklos Szeredi 2020-12-14 15:26:14 +01:00
parent 2d2f2d7322
commit 6939f977c5
1 changed files with 2 additions and 1 deletions

View File

@ -354,7 +354,8 @@ int ovl_set_origin(struct ovl_fs *ofs, struct dentry *dentry,
fh ? fh->fb.len : 0, 0);
kfree(fh);
return err;
/* Ignore -EPERM from setting "user.*" on symlink/special */
return err == -EPERM ? 0 : err;
}
/* Store file handle of @upper dir in @index dir entry */