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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 95c5df882c57b2be297c1e8a125ab337c984ce57 Mon Sep 17 00:00:00 2001
From: Marcin Labun <marcin.labun@xxxxxxxxx>
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 <marcin.labun@xxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux