Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9163 - Inadequate check for MD devices in /etc/init.d/checkfs
Summary: Inadequate check for MD devices in /etc/init.d/checkfs
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-15 10:05 UTC by Neil Darlow
Modified: 2003-11-29 12:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Darlow 2002-10-15 10:05:46 UTC
The MD device checks in /etc/init.d/checkfs search /etc/raidtab for
/dev/md[0-9]+ only. It would be wise to also permit /dev/md/[0-9]+ also.

This seems simple enough to do e.g. by permitting the / before [0-9] to be optional.
Comment 1 SpanKY gentoo-dev 2002-10-15 18:41:46 UTC
just gonna haunt you to no end azarah ;) 
Comment 2 Neil Darlow 2002-10-16 05:10:05 UTC
There's a slight complication in that the output from /proc/mdstat is compared
with ${ACTIVE_RAID}.

This suggests that the same flexibility in parsing /proc/mdstat output would be
desirable. /proc/mdstat reports md[0-9] but you would have to be able to compare
against both formats from /etc/raidtab.

Life is never easy ;-)
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-16 23:37:59 UTC
Hehehe, yeah.

Please submit a *working* patch, as I do not have raid to test it on.
Comment 4 Andrew Cooks (RETIRED) gentoo-dev 2003-11-29 12:35:14 UTC
This bug hasn't changed in at least 180 days. As far as I can tell, the checkfs script has been changed since the bug was filed.

I'm resolving it as a TEST-REQUEST, for lack of activity.
Please reopen this bug if the problem persists.