When entering the next level node, the @next_leaf in restore forgets to start at the first slot. Just reset it to the first one.
Signed-off-by: Gui Hecheng <guihc.f...@cn.fujitsu.com> --- cmds-restore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds-restore.c b/cmds-restore.c index e94592c..918f1fb 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -191,6 +191,7 @@ again: level++; if (level == BTRFS_MAX_LEVEL) return 1; + offset = 1; continue; } -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html