From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30078 invoked from network); 8 Sep 1999 11:33:27 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Sep 1999 11:33:27 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA05457 for ; Wed, 8 Sep 1999 07:33:26 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id EAA26906; Wed, 8 Sep 1999 04:33:01 -0700 Date: Wed, 8 Sep 1999 04:33:01 -0700 From: Richard Henderson To: Christian Iseli Cc: axp-list@redhat.com Subject: Re: C library upgrade question Message-ID: <19990908043301.A26819@twiddle.net> References: <19990907204924.A17797@twiddle.net> <199909081123.NAA17581@ludwig-alpha.unil.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i 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~