summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-10-19 20:02:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:06 -0500
commitc6aea6ef2d97982263b1652b7c186df269bf0de6 (patch)
tree3b56fedaf2c5107945724005d9d16cb03438ff7e /source3/include/smb.h
parentad93243f2399c2f349434dbbb33ed3766a817a8d (diff)
downloadsamba-c6aea6ef2d97982263b1652b7c186df269bf0de6.tar.gz
samba-c6aea6ef2d97982263b1652b7c186df269bf0de6.tar.bz2
samba-c6aea6ef2d97982263b1652b7c186df269bf0de6.zip
r11190: Fix enhancement request #3192.
This does 2 things. 1). Makes dfree command a per-share parameter (it should be anyway IMHO). 2). Adds a "dfree cache time" parameter in seconds that specifies how long a dfree command output should be cached for. Default is zero (no caching). Jeremy. (This used to be commit 49ef8b88a3e12883148eb28d8e86fb07dbc3d12d)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index e3d151f9ed..6511f10365 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -508,6 +508,14 @@ typedef struct
#include "smb_acls.h"
#include "vfs.h"
+struct dfree_cached_info {
+ time_t last_dfree_time;
+ SMB_BIG_UINT dfree_ret;
+ SMB_BIG_UINT bsize;
+ SMB_BIG_UINT dfree;
+ SMB_BIG_UINT dsize;
+};
+
struct dptr_struct;
typedef struct connection_struct
@@ -559,7 +567,7 @@ typedef struct connection_struct
name_compare_entry *veto_list; /* Per-share list of files to veto (never show). */
name_compare_entry *veto_oplock_list; /* Per-share list of files to refuse oplocks on. */
name_compare_entry *aio_write_behind_list; /* Per-share list of files to use aio write behind on. */
-
+ struct dfree_cached_info *dfree_info;
} connection_struct;
struct current_user