When an entry was added to the subvol search tree, the root_id was
always 0 (not set at all) and therefore only the first one was
added, all the others had been ignored. This commit sets the root_id
before the entry is added.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
#include "commands.h"
#include "utils.h"
#include "list.h"
+#include "btrfs-list.h"
#include "send.h"
#include "send-stream.h"
goto out;
}
+ ret = btrfs_list_get_path_rootid(subvol_fd, &r->cur_subvol->root_id);
+ if (ret < 0)
+ goto out;
subvol_uuid_search_add(&r->sus, r->cur_subvol);
r->cur_subvol = NULL;
ret = 0;