WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-tools

Re: [Xen-tools] [PATCH] Xenstore mkdir/write implicitly create directori

On Wed, 2005-08-24 at 09:15 +0100, Christian Limpach wrote:
> Hi Rusty!
> 
> >     I'm working on making the xenstore init/restart more robust.  My idea
> > is to introduce a "--init" option which means "blow away any data in the
> > store, we're starting fresh" for use at boot time, and a "--restart"
> > which shuts down the old xenstored and gracefully takes over (upgrades).
> 
> Sounds good, although wouldn't it be just as easy (and maybe a little
> more flexible) to implement the --init option in a seperate tool?  Unless
> it's really dumb and just wipes out the whole store?  I hacked up a small
> tool to blow away old backend directories and even something simple like
> that was quite awkward to implement in C because of string handling and
> memory allocation.  I think at some point we'll definitely need some
> kind of garbage collecting tool...

For that matter, if --init will just wipe out the whole store, it seems
easier to integrate it into the init.d script ("rm
-rf /var/lib/xenstored") than into xenstored itself.

- Josh Triplett



_______________________________________________
Xen-tools mailing list
Xen-tools@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-tools