File locking
Bassoukos Tassos
abas at aix.meng.auth.gr
Wed Aug 25 18:36:34 EEST 1999
On Wed, 25 Aug 1999, Michalis Kabrianis wrote:
> 1) Thanks.
> Ayta ta iksera (kai malista to oti afaireis ena arxeio alla ta inodes
> paramenoun valid to antimetwpisa poly prosfata - molis xthes, kai exasa ligo
> ton bousoula mexri na to katalabw), alla pali den yparxei tropos na min kanw
> open ena idi locked arxeio. H na min kanw remove apo allo process, ena arxeio
> poy to prwto process den prolabe na anoiksei. Dystyxws diladi den mou lynoun to
> problima. Ektos an den katalaba kati.
Katarxhn, as arxisoume apo ta apla, giati me mperdepses ligo: xwris kernel
modification den yparxei 'mandatory' locking, dhladh ena non-locking-aware
programma mporei kallista na paei kai na grapsei panw se locked
arxeia/perioxes arxeiwn, kai sy to mono pou mporeis na kaneis einai na
alla3eis ta permissions tou arxeiou se -w[0] ...
Ean twra milas gia programmata pou einai locking-aware[1], tote den
yparxei problhma, giati aplws grafeis ena wrapper gyrw apo thn open() me
onoma open_and_lock() pou kanei ayto akribws.
Tassos
[0] exw thn entypwsh pws ef'oson anoi3eis ena arxeio ws rw kai to kanei
-w, 8a synexiseis na mporeis na grafeis apo to syngekrimeno file
descriptor. Einai swsto ayto (kaneis ekei e3w? Ricudi?)
[1] diabase: ta egrapses esy gia enan syngekrimeno skopo, px gia na
elengxeis apo pollous xrhstes thn idia bash etc.
--
Bassoukos Tassos +30 31 996011 / +30 93 7109954
Computer Shaman and Informatics Thaumaturge
The IQ of any group is the lowest individual
IQ divided by the number of feet. - PCDC in /.
--
====================================================================
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