Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
mdadm.7989
0007-mdadm-add-checking-clustered-bitmap-in-ass...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0007-mdadm-add-checking-clustered-bitmap-in-assemble-mode.patch of Package mdadm.7989
From 72b616aff26e64079727ea908073027c08f99c07 Mon Sep 17 00:00:00 2001 From: Zhilong Liu <zlliu@suse.com> Date: Tue, 7 Mar 2017 11:13:03 +0800 Subject: [PATCH] mdadm:add checking clustered bitmap in assemble mode mdadm:Both clustered and internal array don't need to specify --bitmap when assembling array. Signed-off-by: Zhilong Liu <zlliu@suse.com> Acked-by: Coly Li <colyli@suse.de> Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com> --- mdadm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mdadm.c b/mdadm.c index b5ac061..d6ad8dc 100644 --- a/mdadm.c +++ b/mdadm.c @@ -1095,8 +1095,10 @@ int main(int argc, char *argv[]) pr_err("bitmap file needed with -b in --assemble mode\n"); exit(2); } - if (strcmp(optarg, "internal") == 0) { - pr_err("there is no need to specify --bitmap when assembling arrays with internal bitmaps\n"); + if (strcmp(optarg, "internal") == 0 || + strcmp(optarg, "clustered") == 0) { + pr_err("no need to specify --bitmap when assembling" + " arrays with internal or clustered bitmap\n"); continue; } bitmap_fd = open(optarg, O_RDWR); -- 2.10.2
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