search for: smb_big_uint

Displaying 4 results from an estimated 4 matches for "smb_big_uint".

2002 Dec 20
1
smbclient and large file support
...ms = 0; +unsigned int put_total_time_ms = 0; /* totals globals */ static double dir_total; --- samba-2.2.7a/source/client/clitar.c Tue Apr 30 06:26:18 2002 +++ samba-2.2.7a-fixed/source/client/clitar.c Thu Dec 19 15:50:20 2002 @@ -45,10 +45,10 @@ struct file_info_struct { - size_t size; + SMB_BIG_UINT size; uint16 mode; - int uid; - int gid; + uid_t uid; + gid_t gid; /* These times are normally kept in GMT */ time_t mtime; time_t atime; @@ -125,11 +125,11 @@ int blocksize=20; int tarhandle; -static void writetarheader(int f, char *aname, int size, time_t mtime, +static void...
2009 Jul 01
0
Unix Extensions + ext3 quotas + df
...NS_CAP))); break; case SMB_QUERY_POSIX_FS_INFO: { int rc; vfs_statvfs_struct svfs; if (!lp_unix_extensions()) { return ERROR_NT(NT_STATUS_INVALID_LEVEL); } rc = SMB_VFS_STATVFS(conn, ".", &svfs); if (!rc) { + + { + SMB_BIG_UINT dfree,dsize,bsize,block_size,sectors_per_unit,bytes_per_sector; + + if (get_dfree_info(conn,".",False,&bsize,&dfree,&dsize) != (SMB_BIG_UINT)-1) { + block_size = lp_block_size(snum); + if (bsize < block_size) { + SMB_BIG_UINT factor = block_size/bsi...
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...RICT_ALLOCATE_OFF)) { + if (vfs_fill_sparse(fsp, pos, sa_options) == -1) { return -1; } } diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c index 6cf156c..e8c0ebb 100644 --- a/source/smbd/vfs.c +++ b/source/smbd/vfs.c @@ -545,8 +545,9 @@ int vfs_allocate_file_space(files_struct *fsp, SMB_BIG_UINT len) /* Grow - we need to test if we have enough space. */ - if (!lp_strict_allocate(SNUM(fsp->conn))) + if (lp_strict_allocate(SNUM(fsp->conn)) == STRICT_ALLOCATE_OFF) { return 0; + } len -= st.st_size; len /= 1024; /* Len is now number of 1k blocks needed. */ @@ -600,7 +601,7...
2003 Dec 01
0
No subject
...DEBUG(0,("reply_read_and_X - large offset (%x << 32) used and we don't support \ 64 bit offsets.\n", (unsigned int)IVAL(inbuf,smb_vwv10) )); END_PROFILE(SMBreadX); return(ERROR(ERRDOS,ERRbadaccess)); } #endif /* LARGE_SMB_OFF_T */ } if (is_locked(fsp,conn,(SMB_BIG_UINT)smb_maxcnt,(SMB_BIG_UINT)startpos, READ_LOCK)) { END_PROFILE(SMBreadX); return(ERROR(ERRDOS,ERRlock)); } /* added sendfile support */ /*+++++++++++++++++++*/ smb_com2 = CVAL(inbuf,smb_vwv0); if (lp_use_sendfile() && (smb_com2 == 0xFF)) { /* here we use sendfile an...