Skip to content
Snippets Groups Projects
Commit 6939f977 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

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: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 2d2f2d73
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment