search for: vfswrap_ftrunc

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

2008 Dec 26
1
Fat32 - 1Gb file copy is failing
...shared USB drive is not reachable. File copy is working fine with small 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 oc...
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...LLOCATE_OFF=0, + STRICT_ALLOCATE_ON=1, + STRICT_ALLOCATE_PARTIAL=2 +}; + #endif /* _SMB_H */ diff --git a/source/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 u...
2001 May 04
0
samba-2.2.0 on Ultrix 4.5?
...tx.c: In function `initialise_groups': smbd/sec_ctx.c:227: warning: comparison is always false due to limited range of data type smbd/sec_ctx.c:227: warning: comparison is always false due to limited range of data type Compiling smbd/vfs.c Compiling smbd/vfs-wrap.c smbd/vfs-wrap.c: In function `vfswrap_ftruncate': smbd/vfs-wrap.c:494: parse error before `struct' smbd/vfs-wrap.c:499: `currpos' undeclared (first use in this function) smbd/vfs-wrap.c:499: (Each undeclared identifier is reported only once smbd/vfs-wrap.c:499: for each function it appears in.) smbd/vfs-wrap.c:499: `vfs_ops' u...
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