Skip to contentSkip to conversation

Grow: fix version number in error message

PATCH Applied Namhyung Kim 2 participants 2 messages Jul 19, 2011 – Jul 26, 2011 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Grow: fix version number in error message

As the conditional checks, reshape to fewer devices is supported since Linux kernel 2.6.30 not 2.6.32.

---
 Grow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Grow.c +1 -1
index a4092b5..e4fc222 100644
@@ -1268,7 +1268,7 @@ char *analyse_change(struct mdinfo *info, struct reshape *re)
 
 	if (re->after.data_disks < re->before.data_disks &&
 	    get_linux_version() < 2006030)
-		return "reshape to fewer devices is not supported before 2.6.32 - sorry.";
+		return "reshape to fewer devices is not supported before 2.6.30 - sorry.";
 
 	re->backup_blocks = compute_backup_blocks(
 		info->new_chunk, info->array.chunk_size,
Signature · 1 line
1.7.6
Applied
#1 lore raw
Quoted 13 lines · On Tue, 19 Jul 2011 13:34:13 +0900 Namhyung Kim <[email protected]> wrote:

As the conditional checks, reshape to fewer devices is supported since Linux kernel 2.6.30 not 2.6.32.

---
 Grow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Grow.c +0 -0
index a4092b5..e4fc222 100644

Grow.c char *analyse_change(struct mdinfo *info, struct reshape *re) · line 1274

Quoted 8 lines
Grow.c +1 -1
@@ -1268,7 +1268,7 @@ char *analyse_change(struct mdinfo *info, struct reshape *re)
 
 	if (re->after.data_disks < re->before.data_disks &&
 	    get_linux_version() < 2006030)
-		return "reshape to fewer devices is not supported before 2.6.32 - sorry.";
+		return "reshape to fewer devices is not supported before 2.6.30 - sorry.";
 
 	re->backup_blocks = compute_backup_blocks(
 		info->new_chunk, info->array.chunk_size,

applied, thanks.

NeilBrown