Changeset 1253 for branches/2.2.2/mondo


Ignore:
Timestamp:
Mar 20, 2007, 12:01:31 PM (12 years ago)
Author:
bruno
Message:

Fix a bug on is_this_raid_personality_registered which was just plain wrong :-(
(report from John Pearson <johnp_at_gtagalenco.com.au>)

File:
1 edited

Legend:

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

    r1250 r1253  
    8181
    8282    command = malloc(MAX_STR_LEN * 2);
    83     strcpy(command, "grep \" /proc/mdstat");
     83    strcpy(command, "grep \"");
    8484    if (raidno == -1) {
    8585        strcat(command, "linear");
     
    8787        sprintf(command + strlen(command), "raid%d", raidno);
    8888    }
    89     strcat(command, "\" > /dev/null 2> /dev/null");
     89    strcat(command, "\" /proc/mdstat > /dev/null 2> /dev/null");
    9090    log_it("Is raid %d registered? Command = '%s'", raidno, command);
    9191    res = system(command);
Note: See TracChangeset for help on using the changeset viewer.