summaryrefslogtreecommitdiff
path: root/source3/include/ntioctl.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-08-07 21:47:46 +0000
committerJeremy Allison <jra@samba.org>2003-08-07 21:47:46 +0000
commita83bac7571d067b672a181942c8fea6ffbfcc33f (patch)
treef57ee2af641802453ec7582f43c43839397ad2cd /source3/include/ntioctl.h
parent3bbe9c0869ea8653f684afa9a1345f6fa2f80b4b (diff)
downloadsamba-a83bac7571d067b672a181942c8fea6ffbfcc33f.tar.gz
samba-a83bac7571d067b672a181942c8fea6ffbfcc33f.tar.bz2
samba-a83bac7571d067b672a181942c8fea6ffbfcc33f.zip
Shadow copy API - Original work by "Ken Cross" <kcross@nssolutions.com>, adapted
into a patch by "Stefan (metze) Metzmacher" <metze@metzemix.de>. Jeremy. (This used to be commit ce5c91d35dabc5ff6fb3df2b259ed186d6a7e0da)
Diffstat (limited to 'source3/include/ntioctl.h')
-rw-r--r--source3/include/ntioctl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/include/ntioctl.h b/source3/include/ntioctl.h
index 17791fde18..9814c88e5e 100644
--- a/source3/include/ntioctl.h
+++ b/source3/include/ntioctl.h
@@ -23,6 +23,8 @@
we only need the sparse flag
*/
+#ifndef _NTIOCTL_H
+#define _NTIOCTL_H
/* IOCTL information */
/* List of ioctl function codes that look to be of interest to remote clients like this. */
@@ -53,6 +55,8 @@
#define FSCTL_SIS_COPYFILE 0x00090100
#define FSCTL_SIS_LINK_FILES 0x0009C104
+#define FSCTL_GET_SHADOW_COPY_DATA 0x00144064 /* KJC -- Shadow Copy information */
+
#if 0
#define FSCTL_SECURITY_ID_CHECK
#define FSCTL_DISMOUNT_VOLUME
@@ -66,3 +70,18 @@
#define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
#define IO_REPARSE_TAG_HSM 0xC0000004
#define IO_REPARSE_TAG_SIS 0x80000007
+
+
+/* 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 */