Path: utzoo!utgpu!watmath!att!ucbvax!hplabs!hpfcdc!mcb
From: mcb@hpfcdc.HP.COM (Michael Berry)
Newsgroups: comp.sys.hp
Subject: Re: allocate/deallocate command wanted
Message-ID: <5570258@hpfcdc.HP.COM>
Date: 8 Aug 89 16:58:43 GMT
References: <210024@speclab.bgp-usgs.gov>
Organization: HP Ft. Collins, Co.
Lines: 18

Re:  What happens if somone else writes to the tape while I am writing?
     (Roger N. Clark)

>	NAME
>	lad - lock and do command

>	SYNOPSIS
>	lad -f pathname ... command_string

> This could be done simply with HP-UX Enforcement locking.
> Unfortunately, that is not very universal yet.  I think that /usr/group
> has proposed Manditory (Enforcement) locking, which would solve the
> problem.

I might add that cooperating applications (users, whatever) could solve this
without needing enforcement mode locking.  Simple lockf(2) would suffice.

Michael Berry   ARPA:mcb%hpfcde@hplabs.HP.COM   UUCP:hplabs!hpfcla!mcb