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/
Home Products Support Community News


Re: [Xen-devel] [PATCH] Convert shutdown to use xenstore

On Fri, 2005-08-05 at 02:58 +0100, Mark Williamson wrote:
> Hi Dan,
> Any reason not to use textual data in the store rather than numbers?  IMO 
> it'd 
> make it a little more readable - numbers only make sense if you have the 
> header file - but I don't know if there's a convention on this.

If something fundamentally *is* a number, or an ordinal, that's one
thing.  But otherwise, a simple value is better.

We've seen this in sysfs and Open Firmware; the only defence against
crap accumulating in the store is constant vigilance.  This is only
likely if it's actually useful to browse the thing, ie. as consistent
and human-readable as possible.  This is also an end in itself:
something that is self-evident and easy to understand is easier to
maintain ("hey, I was using the lower bit of that value to determine if
it's read-only, and you broke it!" vs "you removed the field called

An ideal system is one where I can implement a new backend, frontend or
tool simply by looking at the paths and values in the store.  It also
has clear implications for diagnosing problems.

A bad analogy is like a leaky screwdriver -- Richard Braakman

Xen-devel mailing list