All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] super1: make the check for NodeNumUpdate more accurate
@ 2016-05-09  2:22 Guoqing Jiang
  2016-05-09 19:01 ` Jes Sorensen
  0 siblings, 1 reply; 2+ messages in thread
From: Guoqing Jiang @ 2016-05-09  2:22 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: linux-raid, Guoqing Jiang

We missed to check the version is BITMAP_MAJOR_CLUSTERED
or not, otherwise mdadm can't create array with other 1.x
metadatas (1.0 and 1.1).

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
---
 super1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/super1.c b/super1.c
index 972b470..fa93367 100644
--- a/super1.c
+++ b/super1.c
@@ -2389,7 +2389,7 @@ static int write_bitmap1(struct supertype *st, int fd, enum bitmap_update update
 		break;
 	case NodeNumUpdate:
 		/* cluster md only supports superblock 1.2 now */
-		if (st->minor_version != 2) {
+		if (st->minor_version != 2 && bms->version == BITMAP_MAJOR_CLUSTERED) {
 			pr_err("Warning: cluster md only works with superblock 1.2\n");
 			return -EINVAL;
 		}
-- 
2.6.2


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

* Re: [PATCH] super1: make the check for NodeNumUpdate more accurate
  2016-05-09  2:22 [PATCH] super1: make the check for NodeNumUpdate more accurate Guoqing Jiang
@ 2016-05-09 19:01 ` Jes Sorensen
  0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2016-05-09 19:01 UTC (permalink / raw)
  To: Guoqing Jiang; +Cc: linux-raid

Guoqing Jiang <gqjiang@suse.com> writes:
> We missed to check the version is BITMAP_MAJOR_CLUSTERED
> or not, otherwise mdadm can't create array with other 1.x
> metadatas (1.0 and 1.1).
>
> Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
> ---
>  super1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied!

Also applied the two patches from last week.

Thanks,
Jes

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

end of thread, other threads:[~2016-05-09 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09  2:22 [PATCH] super1: make the check for NodeNumUpdate more accurate Guoqing Jiang
2016-05-09 19:01 ` 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.