[PATCH 01/33] [hotunplug] we are testing mdstat, not ent which is undefined at this point

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

 



Hi. Sending on behalf of Anna. She couldn't send to l-r directly.

From: Czarnowska, Anna 
Sent: Monday, July 05, 2010 11:21 AM
To: Neil Brown
Cc: linux-raid@xxxxxxxxxxxxxxx; Czarnowska, Anna; Hawrylewicz Czarnowski, Przemyslaw; Labun, Marcin; Neubauer, Wojciech; Williams, Dan J; Ciechanowski, Ed; dledford@xxxxxxxxxx
Subject: [PATCH 01/33] [hotunplug] we are testing mdstat, not ent which is undefined at this point

From: Doug Ledford <dledford@xxxxxxxxxx>

Signed-off-by: Doug Ledford <dledford@xxxxxxxxxx>
---
 mdstat.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/mdstat.c b/mdstat.c
index 58d349d..3bb74fa 100644
--- a/mdstat.c
+++ b/mdstat.c
@@ -348,9 +348,9 @@ struct mdstat_ent *mdstat_by_component(char *name)
      while (mdstat) {
            struct dev_member *m;
            struct mdstat_ent *ent;
-           if (ent->metadata_version &&
-               strncmp(ent->metadata_version, "external:", 9) == 0     &&
-               is_subarray(ent->metadata_version+9))
+           if (mdstat->metadata_version &&
+               strncmp(mdstat->metadata_version, "external:", 9) == 0 &&
+               is_subarray(mdstat->metadata_version+9))
                  /* don't return subarrays, only containers */
                  ;
            else for (m = mdstat->members; m; m = m->next) {
-- 
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