[Bug 767150] New: mdmon: broken handling of --all parameter
https://bugzilla.novell.com/show_bug.cgi?id=767150 https://bugzilla.novell.com/show_bug.cgi?id=767150#c0 Summary: mdmon: broken handling of --all parameter Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: nfbrown@suse.com ReportedBy: suse-beta@cboltz.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- I noticed the following lines while booting (latest factory from today): boot.md[335]: Starting MD RAID Usage: mdmon [options] CONTAINER boot.md[335]: Options are: boot.md[335]: --help -h : This message boot.md[335]: --all : All devices boot.md[335]: --takeover -t : Takeover container boot.md[335]: --offroot : Set first character of argv[0] to @ to indicate the boot.md[335]: application was launched from initrd/initramfs and boot.md[335]: should not be shutdown by systemd as part of the boot.md[335]: regular shutdown process. /etc/init.d/boot.md contains: case "$1" in start) # [...] /sbin/mdmon --all --takeover According to the manpage, mdmon expects an additional parameter to specify the "container", but my understanding is that --all means "all containers" - which implies to me that the "container" parameter shouldn't be needed. Interestingly, if I specify a md device as additional parameter ("mdmon --takeover --all /dev/md0"), I also get the help output. Please fix this in mdmon's parameter handling or (if my understanding of the manpage is wrong) fix the mdmon call in boot.md -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=767150 https://bugzilla.novell.com/show_bug.cgi?id=767150#c1 Neil Brown <nfbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Neil Brown <nfbrown@suse.com> 2012-07-05 03:17:21 UTC --- Thanks for the report. The bug is actually in the handling of --takeover :-) The patch below fixes it. I've just submitted an update so hopefully it will appear in factory shortly. --- mdadm-3.2.5.orig/mdmon.c +++ mdadm-3.2.5/mdmon.c @@ -306,7 +306,6 @@ int main(int argc, char *argv[]) all = 1; break; case 't': - container_name = optarg; takeover = 1; break; case OffRootOpt: -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=767150 https://bugzilla.novell.com/show_bug.cgi?id=767150#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-07-05 06:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (767150) was mentioned in https://build.opensuse.org/request/show/127149 Factory / mdadm -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com