Changeset 2869


Ignore:
Timestamp:
Sep 14, 2011, 2:17:05 PM (8 years ago)
Author:
bruno
Message:
  • Solve #495 by skipping the potential (auto-read-only) when analyzin /proc/mdstat result
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-raid.c

    r2515 r2869  
    10461046    // get RAID level
    10471047    token = mr_strtok (string, delims, &lastpos);
     1048    // skip potential auto-read-only entry
     1049    if (!strcmp(token, "(auto-read-only)")) {
     1050        mr_free(token);
     1051        token = mr_strtok (string, delims, &lastpos);
     1052    }
    10481053    if (!strcmp(token, "multipath")) {
    10491054      raidlist->el[raidlist->entries].raid_level = -2;
Note: See TracChangeset for help on using the changeset viewer.