search for: vfs_allocate_file_spac

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

2006 Jan 01
1
negative len requested??
Hi all, happy ney year! I have a lot of these messages with different filenames and dirs in my smbd.log: [2006/01/01 17:23:49, 0] smbd/vfs.c:vfs_allocate_file_space(375) vfs_allocate_file_space: dir1/dir2/file.zip negative len requested. when I ls -la in this dir I get: -rwxrw---- 1 ab everyone 22931487 Sep 10 2003 file.zip What does it mean and do I have a problem here? Regards Robert
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...) { + if (pos && (sa_options != STRICT_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 b...
2006 Jun 24
1
Quota / OpLock file truncation again
I am seeing a potentially serious bug with samba 3.0.22 on Linux (Ubuntu Dapper Drake). I found the following old discussions about the same problem: http://lists.samba.org/archive/samba-technical/2004-September/037328.html and http://lists.samba.org/archive/samba/2003-July/071081.html as well as this old closed bug in bugzilla: https://bugzilla.samba.org/show_bug.cgi?id=679 I
2004 Jan 09
0
large file pre-allocation causing Windows error
...01 00 00 ... [2004/01/09 10:06:27, 3] smbd/process.c:switch_message(685) switch message SMBwrite (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 [2...