RE: [PATCH] (locking) (was Re: dosemu and CLIPPER locks (again))

Bart Oldeman
2003-02-10T18:57:58Z

On Mon, 10 Feb 2003, Gregor Ibic wrote:

> The environment:
> Samba 2.2.7a
> shared some folder and then mounted with smbfs rw, fmask=777
>
> DOSEMU 1.1.4.11+64bit patch
> dos 5.0 booted from bootdir (I tried other doses but it is the same)
> lredired the mounted folder
>
> other client is on win platform (w2k or win98)
> mounted the same share with net use ...
>
> If I start the app from win client first, the dosemu client cant open the
> file

If I understood it correctly then this is wrong?

> if I start the dosemu client the win client can open the file

If I understood it correctly then this is OK?

> [root@flip root]# lsof /mnt/aranea/aralj/FIN--/SKKUP-01.101
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> dosemu.bi 17951 root 10u REG 0,11 946176 1452
> /mnt/aranea/aralj/FIN--/SKKUP-01.101
> [root@flip root]#
>
>
> smbstatus
> ....
>
> Locked files:
> Pid DenyMode Access R/W Oplock Name
> --------------------------------------------------------------
> 18038 DENY_NONE 0x2019f RDWR NONE
> /home/space/araswlj/aralj/FIN--/SKKUP-01.101 Mon Feb 10 19:38:47 2003
> 17908 DENY_NONE 0x3 RDWR NONE
> /home/space/araswlj/aralj/FIN--/SKKUP-01.101 Mon Feb 10 19:31:02 2003
>
> [root@flip root]#
>
> first line is from win client and the second line is from dosemu client

But what does lsof say (on the computer you would run DOSEMU) about the
file when the win client locks it, before you start the DOSEMU client?

Bart