Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
mdadm
don-t-auto-assemble-if-any-arrays-are-list.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File don-t-auto-assemble-if-any-arrays-are-list.patch of Package mdadm
From 0d172d634f153165a730181572abe90c3a2b646f Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.de> Date: Thu, 20 Nov 2008 17:02:55 +1100 Subject: [PATCH] Assemble: don't auto-assemble if any arrays are listed in mdadm.conf Auto-assembly and planned assembly don't really work well together, it can be confusing. In particular in mkinitrd or similar creates an mdadm.conf to assemble a particular array, we shouldn't go assembling any other arrays as well. If you want auto assembly, you need to give mdadm a config file with no ARRAY lines. mdadm -Ascpartitions can do this. Signed-off-by: NeilBrown <neilb@suse.de> --- mdadm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mdadm.c b/mdadm.c index 2bd963a..e0f51b7 100644 --- a/mdadm.c +++ b/mdadm.c @@ -1092,9 +1092,9 @@ int main(int argc, char *argv[]) array_list, NULL, NULL, readonly, runstop, NULL, homehost, verbose-quiet, force); - if (rv == 0) cnt++; + cnt++; } - if (homehost) { + if (homehost && cnt == 0) { /* Maybe we can auto-assemble something. * Repeatedly call Assemble in auto-assemble mode * until it fails -- 1.5.6.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor