Re: [Qemu-devel] [PATCH v2] 9pfs: fix offset error in v9fs_xattr_read()

2017-01-24 Thread Stefano Stabellini
On Wed, 25 Jan 2017, Greg Kurz wrote: > The current code tries to copy `read_count' bytes starting at offset > `offset' from a `read_count`-sized iovec. This causes v9fs_pack() to > fail with ENOBUFS. > > Since the PDU iovec is already partially filled with `offset' bytes, > let's skip them when c

[Qemu-devel] [PATCH v2] 9pfs: fix offset error in v9fs_xattr_read()

2017-01-24 Thread Greg Kurz
The current code tries to copy `read_count' bytes starting at offset `offset' from a `read_count`-sized iovec. This causes v9fs_pack() to fail with ENOBUFS. Since the PDU iovec is already partially filled with `offset' bytes, let's skip them when creating `qiov_full' and have v9fs_pack() to copy t