diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-05-18 10:11:24 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-05-18 10:11:24 -0400 |
commit | 6266d465bde044a105f6c2d4e244680f951a2d70 (patch) | |
tree | 2d9c1c729f6cdaac3dea3d7237c699561dfc5197 | |
parent | 82b749b2c65e9d108c1c5598dc0a5f436b525f42 (diff) |
ovl: don't fail copy-up if upper doesn't support xattr
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r-- | fs/overlayfs/copy_up.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index 061a8448e6c4..f92ab35d43a6 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c | |||
@@ -300,7 +300,11 @@ static int ovl_set_origin(struct dentry *dentry, struct dentry *lower, | |||
300 | return PTR_ERR(fh); | 300 | return PTR_ERR(fh); |
301 | } | 301 | } |
302 | 302 | ||
303 | err = ovl_do_setxattr(upper, OVL_XATTR_ORIGIN, fh, fh ? fh->len : 0, 0); | 303 | /* |
304 | * Do not fail when upper doesn't support xattrs. | ||
305 | */ | ||
306 | err = ovl_check_setxattr(dentry, upper, OVL_XATTR_ORIGIN, fh, | ||
307 | fh ? fh->len : 0, 0); | ||
304 | kfree(fh); | 308 | kfree(fh); |
305 | 309 | ||
306 | return err; | 310 | return err; |