Windows: CreateFile Reparse Point to File as File
[openafs.git] / src / WINNT / afsrdr / common / AFSRedirCommonDefines.h
index e600d47..bdd1740 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Copyright (c) 2008-2011 Kernel Drivers, LLC.
- * Copyright (c) 2009-2011 Your File System, Inc.
+ * Copyright (c) 2008-2013 Kernel Drivers, LLC.
+ * Copyright (c) 2009-2013 Your File System, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * - Redistributions of source code must retain the above copyright notice,
  *   this list of conditions and the following disclaimer.
  * - Redistributions in binary form must reproduce the above copyright
- *   notice,
- *   this list of conditions and the following disclaimer in the
- *   documentation
- *   and/or other materials provided with the distribution.
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
  * - Neither the name of Kernel Drivers, LLC nor the names of its
- *   contributors may be
- *   used to endorse or promote products derived from this software without
- *   specific prior written permission from Kernel Drivers, LLC
- *   and Your File System, Inc.
+ *   contributors may be used to endorse or promote products derived from
+ *   this software without specific prior written permission from
+ *   Kernel Drivers, LLC and Your File System, Inc.
  *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
@@ -94,6 +91,7 @@
 #define AFS_NAME_BUFFER_EIGHT_TAG    '8NFA'
 #define AFS_NAME_BUFFER_NINE_TAG     '9NFA'
 #define AFS_NAME_BUFFER_TEN_TAG      'ANFA'
+#define AFS_NAME_BUFFER_ELEVEN_TAG   'BNFA'
 #define AFS_SUBST_BUFFER_TAG         'SBFA'
 #define AFS_FILE_CREATE_BUFFER_TAG   'CFFA'
 #define AFS_RENAME_REQUEST_TAG       'RFFA'
 #define AFS_EXTENTS_RESULT_TAG       'XEFA'
 #define AFS_SYS_NAME_NODE_TAG        'NSFA'
 #define AFS_REPARSE_NAME_TAG         'NRFA'
-#define AFS_NAME_ARRAY_TAG           'ANFA'
+#define AFS_NAME_ARRAY_TAG           'RAFA'
 #define AFS_OBJECT_INFO_TAG          'IOFA'
 #define AFS_NP_OBJECT_INFO_TAG       'ONFA'
 #define AFS_DIR_SNAPSHOT_TAG         'SSFA'
 #define AFS_PROCESS_AG_CB_TAG        'APFA'
 #define AFS_BYTERANGE_TAG            '_RBA'
 #define AFS_HARDLINK_REQUEST_TAG     'LFFA'
+#define AFS_SYMLINK_REQUEST_TAG      'YSFA'
 
 #define __Enter
 
 #define AFS_VOLUME_ACTIVE_GLOBAL_ROOT                   0x00000008
 
 //
+// Authentication Group Flags
+//
+
+#define AFS_AUTHGROUP_REPARSE_POLICY_SET                0x00000001
+#define AFS_AUTHGROUP_REPARSE_POINT_TO_FILE_AS_FILE     0x00000002
+
+//
 // Need this to handle the break point definition
 //
 
@@ -232,6 +238,11 @@ static inline void AFSBreakPoint() {
 
 #endif
 
+#define AFSDbgTrace(X) \
+{ \
+    PAFSDbgLogMsg pTraceFnc = AFSDebugTraceFnc; \
+    if( pTraceFnc != NULL) { pTraceFnc X;} \
+}
 //
 // Library control device name
 //