Bug 4362 - Clipper application running under Linux over cifsfs can miss the last write and corrupt the database.
Clipper application running under Linux over cifsfs can miss the last write a...
Status: RESOLVED FIXED
Product: CifsVFS
Classification: Unclassified
Component: kernel fs
2.6
All Linux
: P3 regression
: ---
Assigned To: Steve French
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-31 18:58 UTC by Jeremy Allison
Modified: 2007-01-31 22:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Allison 2007-01-31 18:58:07 UTC
Clipper application running under Linux over cifsfs can miss the last read and corrupt the database.

lseek(fd, 0, SEEK_END) is missing the last write and returning the wrong size (there's a 1 second cache of file size that must be revalidated on the wire in the non-oplocked case).

I'll attach the files to reprodce the bug.

Jeremy.

Reported by Claudia Neumann <dr.claudia.neumann@gmx.de>
Comment 1 Jeremy Allison 2007-01-31 19:07:31 UTC
Test case can be found here :

www.apw-wiegand.de/Jeremy/

(it's in German - just as an fyi).

Jeremy.
Comment 2 Steve French 2007-01-31 22:28:40 UTC
Fix in cifs-2.6.git tree now.

Will request merge to mainline when test success confirmation is returned
(tests ok for me with 2.6.20 simple fs tests)