On Mon, 19 Apr 2004, Michael Hipp wrote: > Bart Oldeman wrote: > > smbfs doesn't support locks. Perhaps you have better luck with cifs > > (kernel 2.6.x), and samba. > > Samba has tons of locking options and I've used it to serve various > database apps to Windows boxes.
that's Samba with a Windows client. Here we're talking Samba with a Linux client which is quite different. > Is there some particular way in which it doesn't have locking for DOS > apps or is this a more general issue. it is a general issue. DOSEMU emulates locking via the Linux filesystem -- and some information gets lost. If you want to solve it properly you have to attach the "DOS locking state" to the file, record it the information to a temporary file (easy to get stale if multiple DOSEMUs are involved though...) or have DOSEMU talk directly to the Samba server to bypass the Linux file systems. This is however a non-trivial coding exercise and nobody has been bothered to implement it so far -- I certainly won't be bothered as there is not a lot to gain (except for being happy about the decrease in mailing list posts about locking problems). Maybe this post will inspire others. Or... load a DOS network client (the MS client, or mars-nwe, or....) in DOSEMU and let it talk via the network instead of going via lredir. This is what several posters here mentioned and will indeed be more reliable since the Linux filesystem is bypassed, so no information is lost. ie. (here MFS is the Mach File System -- the code that DOSEMU uses to map Linux directories to DOS directories via lredir) strategy via smbfs/samba: DOS program -> DOS -> DOSEMU (MFS) --(info lost here)-> Linux --(more info lost here)-> smbfs -> Samba -> *nix strategy without smbfs DOS program -> DOS -> DOSEMU (MFS) -> Samba -> *nix strategy via MS SMB client/samba: DOS program -> DOS -> MS SMB client -> DOSEMU (networking) -> Samba -> *nix note that I never tried this myself but it's based on my experience with the DOSEMU filesystem and what others posted. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
