HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
s
sd(4) sd(4)
(Hewlett-Packard Company)
LOCKING
These commands use a common locking mechanism for reading and modifying both root directories and
software depots. This mechanism allows multiple readers but only one writer on a root or depot.
The commands which modify software in an (alternate) root directory are restricted from simultaneous
modification using fcntl(2) locking on the file
var/adm/sw/products/swlock
relative to the root directory (e.g. /var/adm/sw/products/swlock).
The commands which modify software in a depot are restricted from simultaneous modification using
fcntl(2) locking on the file
catalog/swlock
relative to the depot directory (e.g. /var/spool/sw/catalog/swlock).
All commands set fcntl(2) read locks on roots and depots using the swlock file mentioned above. When a
read lock is set, it prevents other commands from performing modifications (i.e. from setting write locks).
The swacl command is restricted from simultaneousmodification of an ACL using fcntl(2) read and write
locks on the
_LOCK_FILE
associated with each ACL.
AUTHOR
Software Distributor was developed by the Hewlett-Packard Company.
swagent, swcopy, swin-
stall
, swlist, and swpackage were developed by the Hewlett-Packard Company and Mark H. Col-
burn (see pax(1)).
SEE ALSO
swacl(1M), swagentd(1M), swask(1M), swconfig(1M), swcopy(1M), swinstall(1M), swjob(1M), swlist(1M),
swmodify(1M), swpackage(1M), swreg(1M), swremove(1M), swverify(1M), swpackage(4), sd(5).
Software Distributor Administration Guide, availableat
http://docs.hp.com.
HP-UX Release 11i: December 2000 − 25 − Section 4−−271
___
___