[PATCH 2/4] DDF: no need for GET_LAYOUT any more

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

 



With the previous patch, mdmon will provide the layout property for us.

Signed-off-by: Martin Wilck <mwilck@xxxxxxxx>
---
 super-ddf.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/super-ddf.c b/super-ddf.c
index 65472a2..7a7f5fe 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -4697,16 +4697,10 @@ static int raid10_degraded(struct mdinfo *info)
 {
 	int n_prim, n_bvds;
 	int i;
-	struct mdinfo *d, *sra;
+	struct mdinfo *d;
 	char *found;
 	int ret = -1;
 
-	if (info->array.layout == 0) {
-		sra = sysfs_read(-1, info->sys_name, GET_LAYOUT);
-		info->array.layout = sra->array.layout;
-		free(sra);
-	}
-
 	n_prim = info->array.layout & ~0x100;
 	n_bvds = info->array.raid_disks / n_prim;
 	found = xmalloc(n_bvds);
-- 
1.7.1
--
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