Charles.Forsyth20060303-partialeea662d19 years agoHistory
89 lines · 1.4 KB · Text
RawDownload
.TH LOCKFS 4.SH NAMElockfs \- exclusive access file server.SH SYNOPSIS.B lockfs[.B -A] [.B -a.I alg]... [.B -p.I addr].I dir[.I mountpoint].SH DESCRIPTION.I Lockfsacts as a filesystem layer above an existing namespace,allowing multiple-reader, exclusive writer access to thefiles therein. Opening a file served by.I lockfsobtains a lock on the file, or blocks until a lock canbe obtained..I Lockfsserves a single-level directory that initially contains thefiles in.IR dir .If the.B -poption is provided,.I lockfswill listen for incoming connections on.IR addr ,authenticating them as required.Each.B -aargument provides an acceptablealgorithm to run on the connection.The list of all.IR alg sis passed to.B server (see.IR security-auth (2)).If no.B -aarguments are given,.B "-a none"is assumed.If the.B -Aoption is given, then no authenticationwill be performed..PPIf the.B -poption is not given, the lockfs file systemwill be mounted on.IR mountpoint ,or.I dirif.I mountpointis not given..SH EXAMPLERun a lock server guarding access to.BR /lib/datafiles :.IP.EXlockfs -p 'tcp!*!32454' /lib/datafiles.EE.PPMount the above server (where.I locksrvwas originally run on a server named.IR machine ..IP.EXmount -c tcp!\fImachine\fP!32454 /n/remote.EE.SH SOURCE.B /appl/cmd/lockfs.b.SH BUGSThere's no way to break a lock held by amalingering process..PPShould probably support multi-level directories.