Hi Bruno,

Please find attached a reworked version of function parse_mdstat() with
the following new features:

- checks whether file open was successful
- replaced fgets with getline() to avoid static strings and thus 
  overflows
- uses takes raidlist rather than mdstat as argument
- s_mdstat and s_mdrec nuked as a consequence
- fills data, spare and failed disk structures correctly including 
  correct index values
- returns progress of the drive in resync rather than the last drive

I've done some more testing, valgrind is still happy, so I think this is
as good as it gets at the moment. If there is anything that I've
overloooked, please let me know. Otherwise I'll now start putting the
bits and pieces together and will send a patch with all the relevant
changes for mdadm together.

Cheers,
Andree
-- 
Andree Leidenfrost
Sydney - Australia

Attachment: parse_mdstat060507.tar.gz
Description: application/compressed-tar

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to