mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
posix_to_bcachefs: fix missing copy_xattrs() error checking
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8e0023ed4a
commit
31039815a7
@ -122,12 +122,13 @@ void copy_xattrs(struct bch_fs *c, struct bch_inode_unpacked *dst,
|
|||||||
die("error getting xattr val: %m");
|
die("error getting xattr val: %m");
|
||||||
|
|
||||||
const struct xattr_handler *h = xattr_resolve_name(&attr);
|
const struct xattr_handler *h = xattr_resolve_name(&attr);
|
||||||
struct bch_inode_unpacked inode_u;
|
if (IS_ERR(h))
|
||||||
|
continue;
|
||||||
|
|
||||||
int ret = bch2_trans_do(c, NULL, NULL, 0,
|
int ret = bch2_trans_do(c, NULL, NULL, 0,
|
||||||
bch2_xattr_set(trans,
|
bch2_xattr_set(trans,
|
||||||
(subvol_inum) { 1, dst->bi_inum },
|
(subvol_inum) { 1, dst->bi_inum },
|
||||||
&inode_u, &hash_info, attr,
|
dst, &hash_info, attr,
|
||||||
val, val_size, h->flags, 0));
|
val, val_size, h->flags, 0));
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
die("error creating xattr: %s", bch2_err_str(ret));
|
die("error creating xattr: %s", bch2_err_str(ret));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user