Btrfs-progs: ignore subvols above BTRFS_LAST_FREE_OBJECTID
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 9 Apr 2013 17:08:30 +0000 (19:08 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:22 +0000 (18:56 +0200)
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
send-utils.c

index d8d3972..b1d3873 100644 (file)
@@ -226,7 +226,7 @@ int subvol_uuid_search_init(int mnt_fd, struct subvol_uuid_search *s)
 
                        if ((sh->objectid != 5 &&
                            sh->objectid < BTRFS_FIRST_FREE_OBJECTID) ||
-                           sh->objectid == BTRFS_FREE_INO_OBJECTID)
+                           sh->objectid > BTRFS_LAST_FREE_OBJECTID)
                                goto skip;
 
                        if (sh->type == BTRFS_ROOT_ITEM_KEY) {