提交 b9291aff 编写于 作者: A Alexander Block 提交者: Chris Mason

Btrfs: add missing check for dir != tmp_dir to is_first_ref

We missed that check which resultet in all refs with the same name
being reported as first_ref.
Reported-by: NAlex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: NAlexander Block <ablock84@googlemail.com>
上级 1f4692da
......@@ -1589,7 +1589,7 @@ static int is_first_ref(struct send_ctx *sctx,
if (ret < 0)
goto out;
if (name_len != fs_path_len(tmp_name)) {
if (dir != tmp_dir || name_len != fs_path_len(tmp_name)) {
ret = 0;
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册