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

Jakob Østergaard (jakob@unthought.net)
Sun, 4 Nov 2001 20:52:48 +0100


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}...............:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/