Re: PROPOSAL: dot-proc interface [was: /proc stuff]

Jakob Østergaard
2001-11-04T19:53:13Z

On Sun, Nov 04, 2001 at 08:32:17PM +0100, Dave Jones wrote:
> On Sun, 4 Nov 2001, Jakob Østergaard wrote:
>
> > Now this isn't even bad - the fun begins when a resync is running, when
> > mdstat contains *progress meters* like "[====> ] 42%". While being
> > nicely readable for a human, this is a parsing nightmare. Especially
> > because stuff like this changes over time.
>
> Any program needing to parse this would just ignore the bits between [],
> and convert the percentage to an int. Hardly a 'nightmare'.

You didn't read the output then. The information about which disks are up
and which are failed, is put between square brackets too. You don't want
to ignore that.

So just ignore square brackets that have "=" " " and ">" between them ?

What happens when someone decides "[----> ]" looks cooler ?

Or just parse the brackets with "U" "F" and "_" between them ? What then
when someone decides that disks being resynced are marked with "R" ?

Fuzzy matching.

Nightmare.

--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............: