OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f28f47
)
Btrfs: ignore non-FS inodes for send/receive
author
Alexander Block
<ablock84@googlemail.com>
Wed, 1 Aug 2012 12:47:03 +0000
(14:47 +0200)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:18:59 +0000
(15:18 -0400)
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>
fs/btrfs/send.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index
db051d1
..
a4011a9
100644
(file)
--- 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)