search for: smb_off_t

Displaying 8 results from an estimated 8 matches for "smb_off_t".

2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...ource/modules/vfs_default.c b/source/modules/vfs_default.c index 88c7237..8a724ad 100644 --- a/source/modules/vfs_default.c +++ b/source/modules/vfs_default.c @@ -745,10 +745,14 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_O SMB_STRUCT_STAT st; char c = 0; SMB_OFF_T currpos; + enum smb_strict_allocate_options sa_options = lp_strict_allocate(SNUM(fsp->conn)); START_PROFILE(syscall_ftruncate); - if (lp_strict_allocate(SNUM(fsp->conn))) { + /* Only use allocation truncate if strict allocate + * is set "on", not off or partial. + */ + if...
2008 Dec 26
1
Fat32 - 1Gb file copy is failing
...l files. And I could copy the files more than 1Gb when the drive is with NTFS and other file systems I went though the code. In the following samba code piece: samba-3.0.32_old/source/modules/vfs_default.c: 714 static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, int fd, SMB_OFF_T len) 715 { ... 734 735 result = sys_ftruncate(fd, len); 736 if (result == 0) 737 goto done; 738 If comment out line 735/736 (not to extend space for the file to copy on fat), no error will occur during copying. (But we cannot do so otherwise all truncate req...
2004 Dec 20
1
HP-UX/AIX sendfile patches.
...-- sendfile.aix.c Mon Dec 20 15:38:19 2004 *************** *** 371,376 **** --- 371,434 ---- return count + hdr_len; } + #elif defined(AIX_SENDFILE_API) + + /* BEGIN AIX SEND_FILE */ + + #include <sys/socket.h> + + ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T offset, size_t count) + { + + size_t total=0; + struct sf_parms hdtrl; + + /* Set up the header/trailer struct params. */ + if (header) { + hdtrl.header_data = header->data; + hdtrl.header_length = header->length; + } else { + hdtrl.header_data = NULL; + hdtrl.header_length = 0...
2004 Feb 17
0
VFS module programmieren
...fs_handle_struct *handle, struct files_struct *fsp, int fd); ssize_t (*read)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, void *data, size_t n); ssize_t (*write)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, const void *data, size_t n); SMB_OFF_T (*lseek)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, SMB_OFF_T offset, int whence); ssize_t (*sendfile)(struct vfs_handle_struct *handle, int tofd, files_struct *fsp, int fromfd, const DATA_BLOB *header, SMB_OFF_T offset, size_t count); ... } ops; struct...
2007 Jul 04
2
Samba Problem With Big File Transfer on Windows Client
I use fedora 7 and the last stable version of samba 3.0.25a-3 on an embedded linux system as a server and a windows xp. I 'am using truecrypt and sharing de mount directory with the XP machine via samba. Selniux is disabled. Everything works well such as connection or small files transfers but we have a huge problem when we try to transfer a big file (~100 MB) from the client (Windows) to the
2002 Dec 10
5
2gb limit & weird filenames
Hello, I'm trying to set up a samba server for a friend who has a mac. He's running OSX, version 10.2. He's got some really big video editing files that are well in excess of 2gb. We're trying to back these up to the samba server, but it quits right around 2gb. That seems to be a magical number. This is with version 2.2.3 of Samba, and Linux-Mandrake 8.2, ext3 file system. I
2003 Mar 05
2
Samba-3.0alpha22 available on samba.org mirrors
...and pdb/ subdirectories for library installs 3) Fixup of ordered cleanup of get_dc_list() 4) Added more autoconf tests for Stratus VOS 5) Fixed nasty bug where file writes with start offsets in the range 0x80000000 -> 0xFFFFFFFF would fail as they were being cast from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types). The sign extension would cause the offset to be treated as negative. 6) Add support to automatically retrieve the dns host name and domain name of an AD server 7) Add support for PRINTER_INFO_7 and publishing printer attributes in active...
2003 Dec 01
0
No subject
...on_struct *conn, char *inbuf,char *outbuf,int length,int bufsize) { /*added to support sendfile start */ int outsize; off_t sbytes; struct sf_hdtr smb_sf_hdtr; struct iovec smb_hdr[1]; int smb_com2; /*added to support sendfile end */ files_struct *fsp = file_fsp(inbuf,smb_vwv2); SMB_OFF_T startpos = IVAL(inbuf,smb_vwv3); size_t smb_maxcnt = SVAL(inbuf,smb_vwv5); size_t smb_mincnt = SVAL(inbuf,smb_vwv6); ssize_t nread = -1; char *data; START_PROFILE(SMBreadX); /* If it's an IPC, pass off the pipe handler. */ if (IS_IPC(conn)) { END_PROFILE(SMBreadX); return...