search for: real_write_fil

Displaying 3 results from an estimated 3 matches for "real_write_fil".

Did you mean: real_write_file
2008 Feb 26
1
Performance issues after samba update (utime?)
Hi all, We're experiencing performance issues after migrating from 3.0.8 to 3.0.28. Write performance has degraded about 30%, regardless of the size of file being copied. (tests described below are a single 150Mb file copy from an XP explorer) The setup is somewhat peculiar as the server is mounting NFS shares (v3) and exporting these. smb.conf hasn't changed, save for the addition of
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...p_strict_sync, bStrictSync) FN_LOCAL_BOOL(lp_map_system, bMap_system) FN_LOCAL_BOOL(lp_delete_readonly, bDeleteReadonly) diff --git a/source/smbd/fileio.c b/source/smbd/fileio.c index 60aeeef..e23f391 100644 --- a/source/smbd/fileio.c +++ b/source/smbd/fileio.c @@ -127,9 +127,10 @@ static ssize_t real_write_file(struct smb_request *req, if (pos == -1) { ret = vfs_write_data(req, fsp, data, n); } else { + enum smb_strict_allocate_options sa_options = lp_strict_allocate(SNUM(fsp->conn)); fsp->fh->pos = pos; - if (pos && lp_strict_allocate(SNUM(fsp-&gt...
2002 Oct 03
1
File corruption with write cache enabled - patch included
...: E208 --- samba-2.2.5/source/smbd/fileio.c.orig Thu Oct 3 10:41:36 2002 +++ samba-2.2.5/source/smbd/fileio.c Thu Oct 3 12:45:14 2002 @@ -438,7 +438,21 @@ if ( n <= wcp->alloc_size && n > wcp->data_size) { cache_flush_needed = True; } else { + ssize_t ret = real_write_file(fsp, data, pos, n); + + /* + * If the write overlaps the entire + * cache, then discard the cache. + */ + + if ( (pos <= wcp->offset) && + (pos + n >= wcp->offset + wcp->data_size) ) { + DEBUG(9,("discardin...