summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2011-09-26 13:38:16 +0200
committerDavid Disseldorp <ddiss@samba.org>2011-09-29 14:47:05 +0200
commit08573c2b923d565ed85027376ff88f91a9ee0c77 (patch)
treea2ffb44cebcd9d53956687d6354a07a9caf39c26 /source4/torture/smb2
parentdbcd59f46b0d2125dfb6eb82b3d92be228c6ae4b (diff)
downloadsamba-08573c2b923d565ed85027376ff88f91a9ee0c77.tar.gz
samba-08573c2b923d565ed85027376ff88f91a9ee0c77.tar.bz2
samba-08573c2b923d565ed85027376ff88f91a9ee0c77.zip
s4: add SMB2_FSCTL opcodes
Also, skip samba4.smb2.ioctl for now. Snapshots are not supported by default. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Thu Sep 29 14:47:05 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c
index bc8a96a58f..f96893ab44 100644
--- a/source4/torture/smb2/ioctl.c
+++ b/source4/torture/smb2/ioctl.c
@@ -58,13 +58,13 @@ static bool test_ioctl_get_shadow_copy(struct torture_context *torture,
ZERO_STRUCT(ioctl);
ioctl.smb2.level = RAW_IOCTL_SMB2;
ioctl.smb2.in.file.handle = h;
- ioctl.smb2.in.function = 0x144064; /* FSCTL_GET_SHADOW_COPY_DATA 0x144064 */
+ ioctl.smb2.in.function = SMB2_FSCTL_SRV_ENUM_SNAPS;
ioctl.smb2.in.max_response_size = 16;
- ioctl.smb2.in.flags = 1; /* Is FSCTL */
+ ioctl.smb2.in.flags = SMB2_IOCTL_FLAG_IS_FSCTL;
status = smb2_ioctl(tree, tmp_ctx, &ioctl.smb2);
if (!NT_STATUS_IS_OK(status)) {
- printf("FSCTL_GET_SHADOW_COPY_DATA failed\n");
+ printf("SMB2_FSCTL_SRV_ENUM_SNAPS failed\n");
return false;
}