Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6266d465 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

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

parent 82b749b2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;