*/
_PUBLIC_ bool conv_str_bool(const char * str, bool * val);
-#if _SAMBA_BUILD_ == 4
/**
* Convert a size specification like 16K into an integral number of bytes.
**/
_PUBLIC_ bool conv_str_size(const char * str, uint64_t * val);
-#endif
/**
* Parse a uint64_t value from a string
struct commit_info
{
/* For chunk-based commits */
- SMB_OFF_T dbytes; /* Dirty (uncommitted) bytes */
- SMB_OFF_T dthresh; /* Dirty data threshold */
+ uint64_t dbytes; /* Dirty (uncommitted) bytes */
+ uint64_t dthresh; /* Dirty data threshold */
/* For commits on EOF */
enum eof_mode on_eof;
SMB_OFF_T eof; /* Expected file size */
int flags,
mode_t mode)
{
- SMB_OFF_T dthresh;
+ uint64_t dthresh;
const char *eof_mode;
struct commit_info *c = NULL;
int fd;
return tmp_lp;
}
-static SMB_OFF_T recycle_maxsize(vfs_handle_struct *handle)
+static uint64_t recycle_maxsize(vfs_handle_struct *handle)
{
- SMB_OFF_T maxsize;
+ uint64_t maxsize;
if (!conv_str_size(lp_parm_const_string(SNUM(handle->conn),
"recycle", "maxsize", NULL),
return maxsize;
}
-static SMB_OFF_T recycle_minsize(vfs_handle_struct *handle)
+static uint64_t recycle_minsize(vfs_handle_struct *handle)
{
- SMB_OFF_T minsize;
+ uint64_t minsize;
if (!conv_str_size(lp_parm_const_string(SNUM(handle->conn),
"recycle", "minsize", NULL),