Displaying 3 results from an estimated 3 matches for "vfs_set_filelen".
2008 Jun 11
2
vfs_set_filelen function problem on FAT file systems.
Hi All,
I am facing problem when copying large files from Windows PC to FAT
Partition.
I observed that the vfs_set_filelen() (SMB_VFS_FTRUNCATE) call is actually
creating the Zero file on the FAT Partition which is taking lot of time and
the connection is getting closed.
What is the merit of setting the file size before starting the copy. Anyway
this will create a sparse file on unix file system.(Which will not even...
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
.../* 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 @@ int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len)
static char *sparse_buf;
#define SPARSE_BUF_WRITE_SIZE (32*1024)
-int vfs_fill_sparse(files_struct *fsp, SMB_OFF_T len)
+int vfs_fill_sparse(files_struct *fsp, SMB_OFF_T len, enum smb_strict_allocate_options sa_options)
{
int ret;
SMB_STRUCT_STAT st;
@@ -6...
2004 Jan 09
0
large file pre-allocation causing Windows error
...e (pid 32295)
[2004/01/09 10:06:27, 4] smbd/uid.c:change_to_user(122)
change_to_user: Skipping user change - already user
[2004/01/09 10:06:27, 10] smbd/vfs.c:vfs_allocate_file_space(474)
vfs_allocate_file_space: file VIDEO/2003-1/DVm04-01.avi, len 400648192
[2004/01/09 10:06:27, 10] smbd/vfs.c:vfs_set_filelen(532)
vfs_set_filelen: ftruncate VIDEO/2003-1/DVm04-01.avi to len 400648192
[2004/01/09 10:07:37, 3] smbd/reply.c:reply_write(2186)
write fnum=6481 num=0 wrote=0
[2004/01/09 10:07:37, 5] lib/util.c:show_msg(456)
[2004/01/09 10:07:37, 5] lib/util.c:show_msg(466)
size=37
smb_com=0xb
smb_rcls...