All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] mdadm: add checking clustered bitmap in assemble mode
@ 2017-03-02  3:25 Zhilong Liu
  2017-03-02  4:25 ` Coly Li
  2017-03-06 21:32 ` jes.sorensen
  0 siblings, 2 replies; 5+ messages in thread
From: Zhilong Liu @ 2017-03-02  3:25 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: linux-raid, Zhilong Liu

Both clustered and internal array don't need to specify
--bitmap when assembling array.

Signed-off-by: Zhilong Liu <zlliu@suse.com>

diff --git a/mdadm.c b/mdadm.c
index b5d89e4..4087f77 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.6.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-07 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02  3:25 [PATCH v1] mdadm: add checking clustered bitmap in assemble mode Zhilong Liu
2017-03-02  4:25 ` Coly Li
2017-03-06 21:32 ` jes.sorensen
2017-03-07  3:13   ` [PATCH v2] mdadm:add " Zhilong Liu
2017-03-07 16:57     ` jes.sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.