s3: only include ntioctl.h where needed.
authorGünther Deschner <gd@samba.org>
Fri, 25 Mar 2011 12:42:42 +0000 (13:42 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 29 Mar 2011 23:13:10 +0000 (01:13 +0200)
Guenther

source3/include/includes.h
source3/include/vfs.h
source3/libsmb/clifile.c
source3/modules/vfs_default.c
source3/modules/vfs_full_audit.c
source3/modules/vfs_shadow_copy.c
source3/modules/vfs_shadow_copy2.c
source3/modules/vfs_time_audit.c
source3/smbd/nttrans.c
source3/smbd/vfs.c

index 297ec84a9fa8bfc3f38d7e20c069d4d060edf3b5..d952fdd8f26d8ffe10d170b49064c3b9ca099f17 100644 (file)
@@ -530,7 +530,6 @@ typedef char fstring[FSTRING_LEN];
 
 #include "libads/ads_status.h"
 #include "../libcli/util/error.h"
-#include "ntioctl.h"
 #include "../lib/util/charset/charset.h"
 #include "dynconfig.h"
 #include "debugparse.h"
index 64820afedf348d47d5be7fd9ac01f087c69956cb..ad15bd80420fb1ba4cb4ef8443db40c4d5536362 100644 (file)
@@ -182,6 +182,7 @@ enum vfs_fallocate_mode {
     In particular, if new operations are added to vfs_ops, appropriate constants
     should be added to vfs_op_type so that order of them kept same as in vfs_ops.
 */
+struct shadow_copy_data;
 
 struct vfs_fn_pointers {
        /* Disk operations */
@@ -192,7 +193,7 @@ struct vfs_fn_pointers {
                              uint64_t *dfree, uint64_t *dsize);
        int (*get_quota)(struct vfs_handle_struct *handle, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *qt);
        int (*set_quota)(struct vfs_handle_struct *handle, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *qt);
-       int (*get_shadow_copy_data)(struct vfs_handle_struct *handle, struct files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels);
+       int (*get_shadow_copy_data)(struct vfs_handle_struct *handle, struct files_struct *fsp, struct shadow_copy_data *shadow_copy_data, bool labels);
        int (*statvfs)(struct vfs_handle_struct *handle, const char *path, struct vfs_statvfs_struct *statbuf);
        uint32_t (*fs_capabilities)(struct vfs_handle_struct *handle, enum timestamp_set_resolution *p_ts_res);
 
@@ -522,7 +523,7 @@ int smb_vfs_call_set_quota(struct vfs_handle_struct *handle,
                           SMB_DISK_QUOTA *qt);
 int smb_vfs_call_get_shadow_copy_data(struct vfs_handle_struct *handle,
                                      struct files_struct *fsp,
-                                     SHADOW_COPY_DATA *shadow_copy_data,
+                                     struct shadow_copy_data *shadow_copy_data,
                                      bool labels);
 int smb_vfs_call_statvfs(struct vfs_handle_struct *handle, const char *path,
                         struct vfs_statvfs_struct *statbuf);
index 0c6740e59c57465f372719e13efd4602bfe02d2c..28f59f0d88c705d377dc4de1f4889a34b8139443 100644 (file)
@@ -23,6 +23,7 @@
 #include "async_smb.h"
 #include "libsmb/clirap.h"
 #include "trans2.h"
+#include "ntioctl.h"
 
 /***********************************************************
  Common function for pushing stings, used by smb_bytes_push_str()
index 414e428c6c79ce44e3e748c083c2e1e7a92a0b5d..e7c6f7ebebe275e4e3c4b57f8029219a3bf37570 100644 (file)
@@ -22,6 +22,7 @@
 #include "system/time.h"
 #include "system/filesys.h"
 #include "smbd/smbd.h"
+#include "ntioctl.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_VFS
index 024a1798784924c05c5956d896a0d4536b1478df..9f450e87dfcb00ef006fdf76135d58201a6f3e9b 100644 (file)
@@ -63,6 +63,7 @@
 #include "smbd/smbd.h"
 #include "../librpc/gen_ndr/ndr_netlogon.h"
 #include "auth.h"
+#include "ntioctl.h"
 
 static int vfs_full_audit_debug_level = DBGC_VFS;
 
index cf911d7a7082dfff093bd8e469675eb10a1ee3b9..b93f98dedee4526eeb30ef5b8ba94d19e9deca67 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "includes.h"
 #include "smbd/smbd.h"
+#include "ntioctl.h"
 
 /*
     Please read the VFS module Samba-HowTo-Collection.
index 654e01161c4db722b2c1d94bc2fabb39ec922020..3fbe22b0897f83bb3f9e7017cf5cdda732d0ced1 100644 (file)
@@ -22,6 +22,7 @@
 #include "includes.h"
 #include "smbd/smbd.h"
 #include "system/filesys.h"
+#include "ntioctl.h"
 
 /*
 
index 84d6b6eec276e4551f8e68780816f0159eb44c22..6ceeb2e2e46006301db4bc2572f6e07a5e7f9678 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "includes.h"
 #include "smbd/smbd.h"
+#include "ntioctl.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_VFS
index e981165fe15f74f69231d2cfba06970fdc403db6..a7da776451d939f9779acea9f7e6bd9f7aa916cd 100644 (file)
@@ -27,6 +27,7 @@
 #include "../librpc/gen_ndr/ndr_security.h"
 #include "passdb/lookup_sid.h"
 #include "auth.h"
+#include "ntioctl.h"
 
 extern const struct generic_mapping file_generic_mapping;
 
index bbe6e7ef1ed9397a697b5a0ea4b79d4f6acdabdc..d8c57a6a86c8ddd7890ba920289b7a083909d81e 100644 (file)
@@ -29,6 +29,7 @@
 #include "smbd/globals.h"
 #include "memcache.h"
 #include "transfer_file.h"
+#include "ntioctl.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_VFS