diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-08-01 14:47:03 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:18:59 -0400 |
commit | 2981e225f7048b36470383bf5622c42139bd96f7 (patch) | |
tree | e0dec28ddd3ffc04cdfbb5fa40dd0058867cf941 /fs/btrfs/send.c | |
parent | 2f28f4787c0fc37c508cfb6b7b11c00ce5072940 (diff) | |
download | op-kernel-dev-2981e225f7048b36470383bf5622c42139bd96f7.zip op-kernel-dev-2981e225f7048b36470383bf5622c42139bd96f7.tar.gz |
Btrfs: ignore non-FS inodes for send/receive
We have to ignore inode/space cache objects in send/receive.
Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index db051d1..a4011a9 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -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) |