Ignore:
Timestamp:
Mar 20, 2007, 11:48:46 AM (17 years ago)
Author:
Bruno Cornec
Message:

MDSTAT_FILE is used everywhere (replacing /proc/mdstat strings)

File:
1 edited

Legend:

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

    r1249 r1252  
    5353    if (raidno == -1) {
    5454        mr_asprintf(&command,
    55                  "grep \"linear\" /proc/mdstat > /dev/null 2> /dev/null");
     55                 "grep \"linear\" %s > /dev/null 2> /dev/null", MDSTAT_FILE);
    5656    } else {
    5757        mr_asprintf(&command,
    58                  "grep \"raid%d\" /proc/mdstat > /dev/null 2> /dev/null",
    59                  raidno);
     58                 "grep \"raid%d\" %s > /dev/null 2> /dev/null",
     59                 raidno, MDSTAT_FILE);
    6060    }
    6161    log_it("Is raid %d registered? Command = '%s'", raidno, command);
Note: See TracChangeset for help on using the changeset viewer.