Subject: [PATCH 1/4] Grow_reshape: need text version of device namein mdinfo.

Subject: [PATCH 1/4] Grow_reshape: need text version of device namein mdinfo.

am 11.01.2011 16:24:11 von Marcin.Labun

From 95c5df882c57b2be297c1e8a125ab337c984ce57 Mon Sep 17 00:00:00 2001
From: Marcin Labun
Date: Tue, 11 Jan 2011 15:05:37 +0100
Subject: [PATCH 1/4] Grow_reshape: need text version of device name in mdinfo.

Signed-off-by: Marcin Labun
---
Grow.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/Grow.c b/Grow.c
index 29a78a6..41db6f2 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1406,8 +1406,7 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file,
array.spare_disks);
return 1;
}
-
- sra = sysfs_read(fd, 0, GET_LEVEL | GET_DISKS | GET_DEVS | GET_STATE);
+ sra = sysfs_read(fd, 0, GET_LEVEL | GET_DISKS | GET_DEVS | GET_STATE | GET_VERSION);
if (sra) {
if (st->ss->external && subarray == NULL) {
array.level = LEVEL_CONTAINER;
--
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html