Nem egeszen vilagos ez szamomra...

Egy ext2/3 fs-en belul, hogyan tudom megakadalyozni, hogy ket processz egyidejuleg read-write modon ferhessen hozza egy file-hoz? Neztem a mount 'mand' opciojat es az fcntl leirasat, ami szerint a 'mand' mellett az adott file-ra set-GID bit kell, de ne legyen vegrehajthato (chmod g-x, chmod g+s). Ennek ellenere probaltam mc-vel szerkeszteni, meg bele cat-olni egyszerre, es ment gond nelkul.

A masik problema ugyanannak a file-nak smbfs-en es helyben valo egyideju rw hozzaferes megakadalyozasa, amit a samba.org-on levo HOWTO-ban elegge problematikusnak irnak (15.). Ugyanakkor a man smb.conf-ban a "kernel oplocks"-nal ez olvashato:

=============================
kernel oplocks (G)

        For UNIXes that support kernel based oplocks (currently
only IRIX and the Linux 2.4 kernel), this parameter allows the
use of them to be turned on or off.

Kernel oplocks support allows Samba oplocks  to be broken  when-
ever  a local UNIX process or NFS operation accesses a file that
smbd(8) has oplocked.  This  allows  complete  data  consistency
between  SMB/CIFS, NFS and local file access (and is a very cool
feature :-).

This parameter defaults to on, but is translated to a  no-op  on
systems  that  no  not  have  the  necessary kernel support. You
should never need to touch this parameter.

Default: kernel oplocks = yes
=============================

Honnan tudom egyaltalan, hogy a kernelemben letezik ez a feature? (2.4.31)
(Kulon erre utalo CONFIG opciot nem talaltam a kernel-source-ban.)

Bonusz kerdes: milyen mas filerendszer van az ext2/3-on kivul, ami az ilyen multiuseres kornyezetet hatekonyabban tamogatja?

sZs
_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz