search for: cache_flush_needed

Displaying 1 result from an estimated 1 matches for "cache_flush_needed".

2002 Oct 03
1
File corruption with write cache enabled - patch included
...one: +45 20829308 DK-2100 ?, Denmark Office: 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->offse...