[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The kernel (file system) in Debian supports replacing files even while they're being used.



On Wed, 2003-01-01 at 15:50, Frank Gevaerts wrote:
> On Wed, Jan 01, 2003 at 02:45:22PM -0600, Ron Johnson wrote:
> > On Wed, 2003-01-01 at 14:30, khromy wrote:
> > > On Wed, Jan 01, 2003 at 10:01:49PM +0200, Shaul Karl wrote:
> > > >     /tmp$ cp -v /bin/sleep mysleep 
> > > >     /tmp$ (./mysleep 100 &); cp -v /bin/sleep mysleep 
> > > 
> > > (./mysleep 100 &); rm mysleep; cp -v /bin/sleep mysleep
> > > 
> > > ^-- works
> > 
> > Shaul knows that *that* works.  He wants to know how dpkg can
> > update active/open files, while he can't... 
> 
> It can't, but it doesn't need to. An upgrade is a sequence of remove and
> install, while leaving the configuration intact. The remove step is
> equivalent to the 'rm mysleep' step above.

Ok.

So why isn't havoc caused when, for example, you are running gnome,
and you upgrade all the gnome packages?  You'll say: "because the
binaries are loaded into core".  

But then what happens when one of these loaded binaries calls a 
function in a library that has been replaced?  

Or, say, a loaded binary goes to re-read a data file who's lay-
out happens to have changed between versions?

Thanks,
Ron
-- 
+------------------------------------------------------------+
| Ron Johnson, Jr.     mailto:ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson  |
|                                                            |
| "Basically, I got on the plane with a bomb. Basically, I   |
|  tried to ignite it. Basically, yeah, I intended to damage |
|  the plane."                                               |
|    RICHARD REID, who tried to blow up American Airlines    |
|                  Flight 63                                 |
+------------------------------------------------------------+



Reply to: