s3: remove duplicate fsctl fn definitions
authorDavid Disseldorp <ddiss@suse.de>
Tue, 18 Oct 2011 11:55:22 +0000 (13:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 13:44:29 +0000 (15:44 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/libcli/raw/interfaces.h
source4/torture/smb2/ioctl.c

index 7f42926a593d1df1f76e80fe1548faaab86378ce..7bb5255b6a7d41962a2a0fdc4685443322811cea 100644 (file)
@@ -2194,17 +2194,6 @@ enum smb_ioctl_level {
 /* 2.2.31 SMB2 IOCTL Request */
 #define SMB2_IOCTL_FLAG_IS_FSCTL               0x00000001
 
-#define SMB2_FSCTL_DFS_GET_REFERRALS           0x00060194
-#define SMB2_FSCTL_PIPE_PEEK                   0x0011400C
-#define SMB2_FSCTL_PIPE_WAIT                   0x00110018
-#define SMB2_FSCTL_PIPE_TRANSCEIVE             0x0011C017
-#define SMB2_FSCTL_SRV_COPYCHUNK               0x001440F2
-#define SMB2_FSCTL_SRV_ENUM_SNAPS              0x00144064
-#define SMB2_FSCTL_SRV_REQUEST_RESUME_KEY      0x00140078
-#define SMB2_FSCTL_SRV_READ_HASH               0x001441bb
-#define SMB2_FSCTL_SRV_COPYCHUNK_WRITE         0x001480F2
-#define SMB2_FSCTL_LMR_REQ_RESILIENCY          0x001401D4
-
 /*
   union for ioctl() backend
 */
index f96893ab443451b80b76bb397db1c20fb0753e95..169a001f31485f255f965daed3c8bdcd71d22104 100644 (file)
@@ -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 = SMB2_FSCTL_SRV_ENUM_SNAPS;
+       ioctl.smb2.in.function = FSCTL_SRV_ENUM_SNAPS;
        ioctl.smb2.in.max_response_size = 16;
        ioctl.smb2.in.flags = SMB2_IOCTL_FLAG_IS_FSCTL;
 
        status = smb2_ioctl(tree, tmp_ctx, &ioctl.smb2);
        if (!NT_STATUS_IS_OK(status)) {
-               printf("SMB2_FSCTL_SRV_ENUM_SNAPS failed\n");
+               printf("FSCTL_SRV_ENUM_SNAPS failed\n");
                return false;
        }