1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

s3: only include ntioctl.h where needed.

Guenther
This commit is contained in:
Günther Deschner 2011-03-25 13:42:42 +01:00
parent c2d6260f10
commit b1e3b9d7c1
10 changed files with 11 additions and 3 deletions

View File

@ -530,7 +530,6 @@ typedef char fstring[FSTRING_LEN];
#include "libads/ads_status.h" #include "libads/ads_status.h"
#include "../libcli/util/error.h" #include "../libcli/util/error.h"
#include "ntioctl.h"
#include "../lib/util/charset/charset.h" #include "../lib/util/charset/charset.h"
#include "dynconfig.h" #include "dynconfig.h"
#include "debugparse.h" #include "debugparse.h"

View File

@ -182,6 +182,7 @@ enum vfs_fallocate_mode {
In particular, if new operations are added to vfs_ops, appropriate constants 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. 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 { struct vfs_fn_pointers {
/* Disk operations */ /* Disk operations */
@ -192,7 +193,7 @@ struct vfs_fn_pointers {
uint64_t *dfree, uint64_t *dsize); 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 (*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 (*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); 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); 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); SMB_DISK_QUOTA *qt);
int smb_vfs_call_get_shadow_copy_data(struct vfs_handle_struct *handle, int smb_vfs_call_get_shadow_copy_data(struct vfs_handle_struct *handle,
struct files_struct *fsp, struct files_struct *fsp,
SHADOW_COPY_DATA *shadow_copy_data, struct shadow_copy_data *shadow_copy_data,
bool labels); bool labels);
int smb_vfs_call_statvfs(struct vfs_handle_struct *handle, const char *path, int smb_vfs_call_statvfs(struct vfs_handle_struct *handle, const char *path,
struct vfs_statvfs_struct *statbuf); struct vfs_statvfs_struct *statbuf);

View File

@ -23,6 +23,7 @@
#include "async_smb.h" #include "async_smb.h"
#include "libsmb/clirap.h" #include "libsmb/clirap.h"
#include "trans2.h" #include "trans2.h"
#include "ntioctl.h"
/*********************************************************** /***********************************************************
Common function for pushing stings, used by smb_bytes_push_str() Common function for pushing stings, used by smb_bytes_push_str()

View File

@ -22,6 +22,7 @@
#include "system/time.h" #include "system/time.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "smbd/smbd.h" #include "smbd/smbd.h"
#include "ntioctl.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS #define DBGC_CLASS DBGC_VFS

View File

@ -63,6 +63,7 @@
#include "smbd/smbd.h" #include "smbd/smbd.h"
#include "../librpc/gen_ndr/ndr_netlogon.h" #include "../librpc/gen_ndr/ndr_netlogon.h"
#include "auth.h" #include "auth.h"
#include "ntioctl.h"
static int vfs_full_audit_debug_level = DBGC_VFS; static int vfs_full_audit_debug_level = DBGC_VFS;

View File

@ -19,6 +19,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/smbd.h" #include "smbd/smbd.h"
#include "ntioctl.h"
/* /*
Please read the VFS module Samba-HowTo-Collection. Please read the VFS module Samba-HowTo-Collection.

View File

@ -22,6 +22,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/smbd.h" #include "smbd/smbd.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "ntioctl.h"
/* /*

View File

@ -27,6 +27,7 @@
#include "includes.h" #include "includes.h"
#include "smbd/smbd.h" #include "smbd/smbd.h"
#include "ntioctl.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS #define DBGC_CLASS DBGC_VFS

View File

@ -27,6 +27,7 @@
#include "../librpc/gen_ndr/ndr_security.h" #include "../librpc/gen_ndr/ndr_security.h"
#include "passdb/lookup_sid.h" #include "passdb/lookup_sid.h"
#include "auth.h" #include "auth.h"
#include "ntioctl.h"
extern const struct generic_mapping file_generic_mapping; extern const struct generic_mapping file_generic_mapping;

View File

@ -29,6 +29,7 @@
#include "smbd/globals.h" #include "smbd/globals.h"
#include "memcache.h" #include "memcache.h"
#include "transfer_file.h" #include "transfer_file.h"
#include "ntioctl.h"
#undef DBGC_CLASS #undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS #define DBGC_CLASS DBGC_VFS