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

ovl: don't fail copy-up if upper doesn't support xattr


Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 82b749b2
No related merge requests found
......@@ -300,7 +300,11 @@ static int ovl_set_origin(struct dentry *dentry, struct dentry *lower,
return PTR_ERR(fh);
}
err = ovl_do_setxattr(upper, OVL_XATTR_ORIGIN, fh, fh ? fh->len : 0, 0);
/*
* Do not fail when upper doesn't support xattrs.
*/
err = ovl_check_setxattr(dentry, upper, OVL_XATTR_ORIGIN, fh,
fh ? fh->len : 0, 0);
kfree(fh);
return err;
......
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