2002-07-29 15:14:05 +04:00
/*
Unix SMB / CIFS implementation .
NT ioctl code constants
Copyright ( C ) Andrew Tridgell 2002
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-09 23:25:36 +04:00
the Free Software Foundation ; either version 3 of the License , or
2002-07-29 15:14:05 +04:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 04:52:41 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2002-07-29 15:14:05 +04:00
*/
/*
I ' m guessing we will need to support a bunch of these eventually . For now
we only need the sparse flag
*/
2003-08-08 01:47:46 +04:00
# ifndef _NTIOCTL_H
# define _NTIOCTL_H
2003-05-12 05:20:17 +04:00
/* IOCTL information */
/* List of ioctl function codes that look to be of interest to remote clients like this. */
/* Need to do some experimentation to make sure they all work remotely. */
/* Some of the following such as the encryption/compression ones would be */
/* invoked from tools via a specialized hook into the VFS rather than via the */
/* standard vfs entry points */
# define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
# define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
# define FSCTL_REQUEST_BATCH_OPLOCK 0x00090008
# define FSCTL_LOCK_VOLUME 0x00090018
# define FSCTL_UNLOCK_VOLUME 0x0009001C
# define FSCTL_GET_COMPRESSION 0x0009003C
# define FSCTL_SET_COMPRESSION 0x0009C040
# define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C
# define FSCTL_FIND_FILES_BY_SID 0x0009008F
# define FSCTL_FILESYS_GET_STATISTICS 0x00090090
2005-07-12 12:05:15 +04:00
# define FSCTL_SET_OBJECT_ID 0x00090098
# define FSCTL_GET_OBJECT_ID 0x0009009C
2003-05-12 05:20:17 +04:00
# define FSCTL_SET_REPARSE_POINT 0x000900A4
# define FSCTL_GET_REPARSE_POINT 0x000900A8
# define FSCTL_DELETE_REPARSE_POINT 0x000900AC
2007-04-24 01:07:05 +04:00
# define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900C0
2003-05-12 05:20:17 +04:00
# define FSCTL_SET_SPARSE 0x000900C4
# define FSCTL_SET_ZERO_DATA 0x000900C8
# define FSCTL_SET_ENCRYPTION 0x000900D7
# define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB
# define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF
# define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
# define FSCTL_SIS_COPYFILE 0x00090100
2005-07-12 12:05:15 +04:00
# define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
2003-05-12 05:20:17 +04:00
# define FSCTL_SIS_LINK_FILES 0x0009C104
2003-08-08 01:47:46 +04:00
# define FSCTL_GET_SHADOW_COPY_DATA 0x00144064 /* KJC -- Shadow Copy information */
2003-05-12 05:20:17 +04:00
#if 0
# define FSCTL_SECURITY_ID_CHECK
# define FSCTL_DISMOUNT_VOLUME
# define FSCTL_GET_NTFS_FILE_RECORD
# define FSCTL_ALLOW_EXTENDED_DASD_IO
2007-10-11 00:34:30 +04:00
# define FSCTL_RECALL_FILE
2003-05-12 05:20:17 +04:00
# endif
# define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
# define IO_REPARSE_TAG_HSM 0xC0000004
# define IO_REPARSE_TAG_SIS 0x80000007
2003-08-08 01:47:46 +04:00
/* For FSCTL_GET_SHADOW_COPY_DATA ...*/
typedef char SHADOW_COPY_LABEL [ 25 ] ;
typedef struct shadow_copy_data {
TALLOC_CTX * mem_ctx ;
/* Total number of shadow volumes currently mounted */
uint32 num_volumes ;
/* Concatenated list of labels */
SHADOW_COPY_LABEL * labels ;
} SHADOW_COPY_DATA ;
# endif /* _NTIOCTL_H */