[linux-cifs-client] file locking OOo and CIFS: strange behaviour

Stefan Koehler stefan at gonicus.de
Fri Oct 19 09:45:42 GMT 2007


Hi all,

we are currently stuck with a weird behaviour concerning file locking.

Here is the setting:

Fileserver: IBM N3700 (aka NetApp FAS270) with Data ONTAP 7.2.3
Client: Debian GNU/Linux with 2.6.17 Kernel (cifs 1.46); also tested
with 2.6.22 (cifs 1.49)
Application: OpenOffice.org 2.0.4 (also tested with OOo 2.3)

Concurrent access from OOo on a file leads to this phenomenon:

First user opens file rw, file gets byte range locking on fileserver,
everything fine.
Second user opens same file, gets no usable data at all (writer offers
filter dialog, other modules want to recover file...).
First user closes file. Lock released.
Second user closes application, opens file, file gets locked, all fine.
First user opens file, file gets opened read-only, all fine.

So there is no danger of data loss but also no user friendly performance...

The question is, why does the file not get opened ro the first time two
user are accessing it?
We have tried several tweaks in /proc/fs/cifs and also different
mount-options, all to no avail.

So any ideas and suggestions to debug are heartily welcomed!

Regards and thanks
Stefan



More information about the linux-cifs-client mailing list