Subject: Re: install-target for /sys/arch/*/conf/Makefile.* ?
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 04/25/2000 13:37:28
>> > rm -f /onetbsd
>> > mv /netbsd /onetbsd
>> > cp netbsd /
...
>> cp /netbsd /onetbsd
>> cp netbsd /newnetbsd
>> mv /newnetbsd /netbsd
>>
>> it's much more atomic.
>
>an operation is either atomic, or not atomic.
>
>the following *is* atomic:
>
> rm -f /onetbsd
> ln /netbsd /onetbsd
> cp netbsd /nnetbsd
> mv /nnetbsd /netbsd
yes, you are correct. yours is more atomic than mine. i was,
however, not shooting for complete atomicity, but just the atomicity
of the existence of a coherent /netbsd. :P
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."