diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-08-01 12:47:03 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 19:18:59 (GMT) |
commit | 2981e225f7048b36470383bf5622c42139bd96f7 (patch) | |
tree | e0dec28ddd3ffc04cdfbb5fa40dd0058867cf941 /fs/btrfs/send.c | |
parent | 2f28f4787c0fc37c508cfb6b7b11c00ce5072940 (diff) | |
download | linux-fsl-qoriq-2981e225f7048b36470383bf5622c42139bd96f7.tar.xz |
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) |