Read Only
Subsystems (2)
Hello all!
How to I make for two people not to obtain to use the same archive at the same time?
For example, with samba, two users can't write in the same file at the same time.
Thank's
Tiago
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
ty den 19.10.2004 Klokka 22:43 (-0300) skreiv Tiago Giovanaz da Silva:
Quoted 5 lines
Hello all!
How to I make for two people not to obtain to use the same archive at the same time?
For example, with samba, two users can't write in the same file at the same time.
Short answer: You can't
long answer: Use of advisory POSIX locks (man fcntl) or lock files (see the NFS FAQ) will do what you want _if_ all the programs that access the same file use the same locking scheme (that's why they are called "advisory locks" as opposed to "mandatory locks").
Cheers,
Trond
Signature · 12 lines
Trond Myklebust <[email protected]> ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs