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

Commit 2981e225 authored by Alexander Block's avatar Alexander Block Committed by Chris Mason
Browse files

Btrfs: ignore non-FS inodes for send/receive



We have to ignore inode/space cache objects in send/receive.

Reported-by: default avatarAlex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: default avatarAlexander Block <ablock84@googlemail.com>
parent 2f28f478
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4287,6 +4287,11 @@ static int changed_cb(struct btrfs_root *left_root,
	if (ret < 0)
		goto out;

	/* Ignore non-FS objects */
	if (key->objectid == BTRFS_FREE_INO_OBJECTID ||
	    key->objectid == BTRFS_FREE_SPACE_OBJECTID)
		goto out;

	if (key->type == BTRFS_INODE_ITEM_KEY)
		ret = changed_inode(sctx, result);
	else if (key->type == BTRFS_INODE_REF_KEY)