提交 90fdde14 编写于 作者: C Chris Mason

Btrfs: return keys for large items to the search ioctl

The search ioctl was skipping large items entirely (ones that are too
big for the results buffer).  This changes things to at least copy
the item header so that we can send information about the item back to
userland.
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 abc6e134
......@@ -997,8 +997,8 @@ static noinline int copy_to_sk(struct btrfs_root *root,
read_extent_buffer(leaf, p,
item_off, item_len);
*sk_offset += item_len;
found++;
}
found++;
if (*num_found >= sk->nr_items)
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册