From b5a635fb0ab0967e375281dd003cd7eb123f73fd Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Thu, 12 Feb 2015 10:58:20 +0100 Subject: idl/ioctl: change QAR response array to a DATA_BLOB [MS-FSCC] specifies: The number of FILE_ALLOCATED_RANGE_BUFFER elements returned is computed by dividing the size of the returned output buffer (from either SMB or SMB2, the lower-layer protocol that carries the FSCTL) by the size of the FILE_ALLOCATED_RANGE_BUFFER element. Ideally, this requirement could be defined in idl with the following: [flag(NDR_REMAINING)] file_alloced_range_buf array[]; However, this is not currently supported by PIDL, so just use an opaque data blob for now. Signed-off-by: David Disseldorp Reviewed-by: Jeremy Allison --- source4/torture/smb2/ioctl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/torture/smb2/ioctl.c') diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c index 931a013b79..d04fb4962e 100644 --- a/source4/torture/smb2/ioctl.c +++ b/source4/torture/smb2/ioctl.c @@ -2922,6 +2922,9 @@ static NTSTATUS test_ioctl_qar_req(struct torture_context *torture, status = NT_STATUS_UNSUCCESSFUL; goto err_out; } + /* move to next buffer */ + ioctl.smb2.out.out.data += sizeof(far_buf); + ioctl.smb2.out.out.length -= sizeof(far_buf); } done: -- cgit