Skip to content

Commit

Permalink
Btrfs: return keys for large items to the search ioctl
Browse files Browse the repository at this point in the history
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: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
chrismason-xx committed Mar 18, 2010
1 parent abc6e13 commit 90fdde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ioctl.c
Expand Up @@ -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;
Expand Down

0 comments on commit 90fdde1

Please sign in to comment.