Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Christian Iseli <chris@ludwig-alpha.unil.ch>
Cc: axp-list@redhat.com
Subject: Re: C library upgrade question
Date: Wed, 8 Sep 1999 04:33:01 -0700	[thread overview]
Message-ID: <19990908043301.A26819@twiddle.net> (raw)
In-Reply-To: <199909081123.NAA17581@ludwig-alpha.unil.ch>; from Christian Iseli on Wed, Sep 08, 1999 at 01:23:13PM +0200

On Wed, Sep 08, 1999 at 01:23:13PM +0200, Christian Iseli wrote:
> Ok.  So, if I get this straight, init is using libc itself.  Thus what
> happens is that after init quits, the last link to the deleted libc is
> severed, the file is unlinked completely, but at this point nothing
> performs a sync.

Something like that.  I remember a detailed explanation of the 
problem came up on one of the libc lists.

I think the actual problem is more like (1) init keeps the refcount
of the old libc non-zero, (2) the remount ro of / with open deleted
files forced the dirty bit set (3) init dies.

> Guess I could avoid this by keeping a link to libc in the filesystem until 
> after the reboot (something like "ln /lib/libc.so.6.1 /lib/libc.old" before 
> upgrading the library) ?

That plus a bit in /etc/rc.d/rc.sysinit or something to delete the
old library would probably be ideal.  My / is only 150M and takes
near zero time to fsck, so I just don't bother.


r~


  reply	other threads:[~1999-09-08 11:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-06 15:55 C library upgrade question Christian Iseli
1999-09-07 13:05 ` Jeff Johnson
1999-09-07 13:19   ` Christian Iseli
1999-09-08  3:49     ` Richard Henderson
1999-09-08 11:23       ` Christian Iseli
1999-09-08 11:33         ` Richard Henderson [this message]
1999-09-08 11:53           ` Christian Iseli
1999-09-08 11:55         ` Uncle George
1999-09-08 17:38           ` Michal Jaegermann
1999-09-09  7:44             ` Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox