File locking

Michalis Kabrianis kabrianis at hellug.gr
Thu Aug 26 21:25:30 EEST 1999


On 26-Aug-99 Christos Ricudis wrote:
> Hello Linux-greek-users!
> 
>   On 26 Aug 99, Linux-greek-users wrote to All with subject "File locking":
> 
>  L> H function flock() parexei advisory lock enos arxeiou. Dystyxws
>  L> den mporesa na brw tropo na pw stin open() na elegxei gia kapoio 
>  L> lock (i stin remove()), ara einai praktika axristo? (efoson 
>  L> advisory kai oxi ypoxrewtiko)
> 
> 1) Kaleis thn open() kai meta th flock()
> 

Mmmm, opws swsta eipe prwta o nmav etsi einai to swsto (gnwsto, epsaxna gia
alli proseggigi apla)

> 2) Xrhsimopoieis mandatory locking (mono se osa systhmata to yposthrizoyn
> (linux p.x)). 

Non-portable, aporriptetai
> 
> 3) Xrhsimopoieis thn open me (O_CREAT|O_EXCL)

Mazi me to 1

> 4) Trabas ta mallia soy mia kai tipote apo ayta de douleyei panw apo NFS. 

Ayto einai to teleytaio pou me noiazei, mia pou ta arxeia pou tha peirazw
*sxedon* apokleietai na einai se NFS
 
> 5) Telika, xrhsimopoieis lock files. 

Eimai para poly perifanos (kai den kanw plaka) pou i proseggisi pou mou
proteinei o Megas-guru ricoudis einai ayti pou eixa apofasisei na akolouthisw.
(des paliotero mail)
Thanks.

> 
> --
> Christos Ricudis
> I am a target. Please bomb me at N40 33.765' E22 55.130' Alt. 69ft
> --

Michalis Kabrianis
kabrianis at hellug.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list