1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:smbd: make typedef write_cache private to fileio.c

metze
This commit is contained in:
Stefan Metzmacher 2012-06-04 14:46:31 +02:00
parent 01b726dbe8
commit 4a91321f3a
2 changed files with 9 additions and 9 deletions

View File

@ -127,14 +127,6 @@ typedef union unid_t {
#include "librpc/gen_ndr/security.h"
typedef struct write_cache {
off_t file_size;
off_t offset;
size_t alloc_size;
size_t data_size;
char *data;
} write_cache;
struct fd_handle {
size_t ref_count;
int fd;
@ -230,7 +222,7 @@ typedef struct files_struct {
uint64_t initial_allocation_size; /* Faked up initial allocation on disk. */
uint16 file_pid;
uint16 vuid;
write_cache *wcp;
struct write_cache *wcp;
struct timeval open_time;
uint32 access_mask; /* NTCreateX access bits (FILE_READ_DATA etc.) */
uint32 share_access; /* NTCreateX share constants (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE). */

View File

@ -25,6 +25,14 @@
#include "smbd/globals.h"
#include "smbprofile.h"
typedef struct write_cache {
off_t file_size;
off_t offset;
size_t alloc_size;
size_t data_size;
char *data;
} write_cache;
static bool setup_write_cache(files_struct *, off_t);
/****************************************************************************