diff options
author | Jeremy Allison <jra@samba.org> | 2006-07-19 00:13:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:13 -0500 |
commit | 0e292222c30c269c17e68acf1bbef787c1e946ed (patch) | |
tree | c15bf8b0677b624ef69ce86cd77ace20b78e8c40 /pcp/pmns | |
parent | f2faf11204e3ef0bc6a92554761cb0f0ac2a1103 (diff) | |
download | samba-0e292222c30c269c17e68acf1bbef787c1e946ed.tar.gz samba-0e292222c30c269c17e68acf1bbef787c1e946ed.tar.bz2 samba-0e292222c30c269c17e68acf1bbef787c1e946ed.zip |
r17125: Drastic problems require drastic solutions. There's
no way to get all the cases where kernel oplocks are
on and we can't open the file and get the correct
semantics (think about the open with truncate with
an attribute only open - we'd need a vfs change to
add the truncate(fname, len) call). So always drop
the share mode lock before doing any real fd opens and
then re-acquire it afterwards. We're already dealing
with the race in the create case, and we deal with
any other races in the same way. Volker, please
examine *carefully* :-). This should fix the problems
people reported with kernel oplocks being on.
Jeremy.
(This used to be commit 8171c4c404e9f382880c65daa0232f89e560f399)
Diffstat (limited to 'pcp/pmns')
0 files changed, 0 insertions, 0 deletions