"Ali A. Ghorbani" wrote:
> 
> Hi,
> 
> I wonder if you were able to solve the file lock problem? I have got
> similar problem!
> 
> Ali
FYI: As I receive such question from time to time, I would like to
answer
them once on dosemu list.

Situation that we have at now:
If You mount a share on NFS(nfsd), SMB (samba), NCP (NovellNetware)
file locking work only "locally". I mean if there are some dosemus on
one machine using /mnt/share and content - they can see their locks.
But if You have mounted the same share as /mnt/share on other machine
and you run there some dosemus too - these dosemus can see only their
locks, but not from other machine(s).
Locks are "seen" only per mounted share.

Only solution:
I was trying to solve the problem, and as for now the only working
solution (not tested by me, but *said* to be working) is using
kernel nfs daemon. NOT nfsd, but knfsd because it has support for
nfs locking - which nfsd has not.

In the beginning I was trying to solve the locking problem with SMB
and NCP.

NCP: Thanks to Petr Vandrovec I have a path that gives You properly
working locks on NCPFS but... there are problems with file size.
If the file is opened by more than one station, the file size
reported by Novell (3.11 - at least tested, but said to be the same
for every other version) is all the time the size when FIRST station
opened the file - no matter what was written to the file.
Linux always reports real size of file and probably it assumes that
Novell give him also the real size. So You have problems accessing
file beyond the original size (at least using standard RH6.0 2.2.5
kernel). My dos database program is still NOT working ;( properly.

SMB: I wrote 3 letters to different addresses on smb related lists
and to the maintainer of smbfs. There was no reply.
I don't know why It doesn't work.

Future:
At the moment I have some deadlines at work and I move so I cannot
test the behavior of VFS or NCPFS more deeply or just check the
"ncp file size" issue on never version of kernel (2.2.5 is a little
bit old). 
If I solve the problem I write to linux-msdos. Hope such day comes.

                                        GREG__

PS: If You want a patch for NCPFS file locking write to me
directly. But IMHO it is a little bit useless now. ;(
At least until I get a solution of "file size issue".

Just use KNFSD if You can. That is the best way for now.

PSS: You can always try to use normal dos novell client inside
dosemu. Not nice IMVHO, but usually working.

Reply via email to