[PATCH#2][2nd REVIEW?] fake data io module for samba
Andrew Bartlett
abartlet at samba.org
Thu Nov 6 15:11:47 MST 2014
On Tue, 2014-11-04 at 12:39 +0100, Peter Somogyi wrote:
> Wait a bit. Andrew, the pread API looks this:
>
> static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct
> *fsp, void *data,
> size_t n, off_t offset)
>
> All what I can do is a memset / memcpy on that given *data content.
> Or is there a safe and agreed hack to replace that pointer in the call
> chain?
>
> BTW I'd be fine with a simple memset as well, just to avoid concerns and
> confusion.
memset() seems reasonable to me.
Andrew Bartlett
--
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical
mailing list