public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: "Bart Oldeman" <bartoldeman@users.sourceforge.net>
To: "Alain M." <alainm@pobox.com>
Cc: dosEmu-list <linux-msdos@vger.kernel.org>
Subject: Re: cifs 1.50 and dosemu 1.4 great combination
Date: Fri, 12 Oct 2007 19:19:21 +1300	[thread overview]
Message-ID: <c3d607cc0710112319o48ec76c6ha1aaaf585ff65b9d@mail.gmail.com> (raw)
In-Reply-To: <470F06AB.2000200@pobox.com>

On 10/12/07, Alain M. <alainm@pobox.com> wrote:
>
> Sorry if I may seam a little dumb, but some time ago Bart said that lock
> did NOT work... and I googled about cifs and could not really understand
> the details.

Locking "works", but not 100%. The problem is that DOS has 5 different
locking modes (compat, deny read, deny write, deny all, and deny
none), but POSIX only 3 (none, read, and write).

So somehow DOSEMU maps 5 to 3 and tries to be reasonable, but it is a heuristic.
It may work, or it may not work for a particular application in a
particular situation.

And there's a chain:
DOSEMU -1> Linux fs = cifs -2> samba or Windows server

-1> translates DOS locks to POSIX locks (lredir'ed drive).
-2> (may) do the reverse (mounted drive using the Linux kernel cifs module).
smbfs used to do nothing at all with POSIX locks at -2> so it was
broken. cifs now does it better (possibly as well as two DOSEMU's
sharing files on an ext3 filesystem by now);
if the samba server implements POSIX extensions there isn't even a
lock translation anymore for step 2.

Having DOSEMU talk directly to the samba server could be 100% reliable
but a bit hard to setup (setup networking in DOSEMU, and install a DOS
samba client in it).

Bart

  reply	other threads:[~2007-10-12  6:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11 14:30 cifs 1.50 and dosemu 1.4 great combination kemas
     [not found] ` <470E52D1.5040406@pobox.com>
     [not found]   ` <1192159242.2490.10.camel@localhost>
2007-10-12  5:31     ` Alain M.
2007-10-12  6:19       ` Bart Oldeman [this message]
2007-10-12 11:58       ` Claudia Neumann
2007-10-15  3:23       ` kemas
  -- strict thread matches above, loose matches on Subject: below --
2007-11-14 14:39 Tarquin Adams
2007-11-14 16:03 ` Claudia Neumann
2007-11-15 10:26 Tarquin Adams
2007-11-21  4:04 ` kemas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c3d607cc0710112319o48ec76c6ha1aaaf585ff65b9d@mail.gmail.com \
    --to=bartoldeman@users.sourceforge.net \
    --cc=alainm@pobox.com \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox