diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-05-17 09:52:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:04 -0500 |
commit | 5ff4b74df3f32192c9828233295d9f8fedcceb23 (patch) | |
tree | da62feda7a25e882b41fb99c6a0949a08f44d0db /source4/torture | |
parent | d86da81304bc247c77b78f1f1d9da562168285d7 (diff) | |
download | samba-5ff4b74df3f32192c9828233295d9f8fedcceb23.tar.gz samba-5ff4b74df3f32192c9828233295d9f8fedcceb23.tar.bz2 samba-5ff4b74df3f32192c9828233295d9f8fedcceb23.zip |
r15656: for NT IOCTL's we need to control the max_data field for some calls
metze
(This used to be commit 3cab02f6f513cf7eb3d8863e62952766bb4d908f)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/raw/ioctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/raw/ioctl.c b/source4/torture/raw/ioctl.c index cd93047576..dd100e107d 100644 --- a/source4/torture/raw/ioctl.c +++ b/source4/torture/raw/ioctl.c @@ -105,6 +105,7 @@ static BOOL test_fsctl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) nt.ntioctl.in.file.fnum = fnum; nt.ntioctl.in.fsctl = True; nt.ntioctl.in.filter = 0; + nt.ntioctl.in.max_data = 0; nt.ntioctl.in.blob = data_blob(NULL, 0); status = smb_raw_ioctl(cli->tree, mem_ctx, &nt); @@ -112,10 +113,11 @@ static BOOL test_fsctl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("trying batch oplock\n"); nt.ioctl.level = RAW_IOCTL_NTIOCTL; - nt.ntioctl.in.function = (FSCTL_FILESYSTEM | (2<<2)); + nt.ntioctl.in.function = FSCTL_REQUEST_BATCH_OPLOCK; nt.ntioctl.in.file.fnum = fnum; nt.ntioctl.in.fsctl = True; nt.ntioctl.in.filter = 0; + nt.ntioctl.in.max_data = 0; nt.ntioctl.in.blob = data_blob(NULL, 0); status = smb_raw_ioctl(cli->tree, mem_ctx, &nt); |