This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
[tprouty/samba.git] / source / include / ntioctl.h
1 /* 
2    Unix SMB/CIFS implementation.
3    NT ioctl code constants
4    Copyright (C) Andrew Tridgell              2002
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 /*
22   I'm guessing we will need to support a bunch of these eventually. For now
23   we only need the sparse flag
24 */
25
26
27 /* IOCTL information */
28 /* List of ioctl function codes that look to be of interest to remote clients like this. */
29 /* Need to do some experimentation to make sure they all work remotely.                  */
30 /* Some of the following such as the encryption/compression ones would be                */
31 /* invoked from tools via a specialized hook into the VFS rather than via the            */
32 /* standard vfs entry points */
33 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
34 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
35 #define FSCTL_REQUEST_BATCH_OPLOCK   0x00090008
36 #define FSCTL_LOCK_VOLUME            0x00090018
37 #define FSCTL_UNLOCK_VOLUME          0x0009001C
38 #define FSCTL_GET_COMPRESSION        0x0009003C
39 #define FSCTL_SET_COMPRESSION        0x0009C040
40 #define FSCTL_REQUEST_FILTER_OPLOCK  0x0009008C
41 #define FSCTL_FIND_FILES_BY_SID      0x0009008F
42 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
43 #define FSCTL_SET_REPARSE_POINT      0x000900A4
44 #define FSCTL_GET_REPARSE_POINT      0x000900A8
45 #define FSCTL_DELETE_REPARSE_POINT   0x000900AC
46 #define FSCTL_0x000900C0             0x000900C0
47 #define FSCTL_SET_SPARSE             0x000900C4
48 #define FSCTL_SET_ZERO_DATA          0x000900C8
49 #define FSCTL_SET_ENCRYPTION         0x000900D7
50 #define FSCTL_ENCRYPTION_FSCTL_IO    0x000900DB
51 #define FSCTL_WRITE_RAW_ENCRYPTED    0x000900DF
52 #define FSCTL_READ_RAW_ENCRYPTED     0x000900E3
53 #define FSCTL_SIS_COPYFILE           0x00090100
54 #define FSCTL_SIS_LINK_FILES         0x0009C104
55
56 #if 0
57 #define FSCTL_SECURITY_ID_CHECK
58 #define FSCTL_DISMOUNT_VOLUME
59 #define FSCTL_GET_NTFS_FILE_RECORD
60 #define FSCTL_ALLOW_EXTENDED_DASD_IO
61 #define FSCTL_RECALL_FILE
62 #define FSCTL_QUERY_ALLOCATED_RANGES
63
64 #endif
65
66 #define IO_REPARSE_TAG_MOUNT_POINT   0xA0000003
67 #define IO_REPARSE_TAG_HSM           0xC0000004
68 #define IO_REPARSE_TAG_SIS           0x80000007