Ignore:
Timestamp:
Jun 19, 2013, 8:50:28 AM (7 years ago)
Author:
Bruno Cornec
Message:

2nd phase for svn merge -r 2935:3146 ../3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/mondo/src/mondoarchive/mondoarchive.c

    r3147 r3148  
    279279        finish(0);
    280280    }
     281    if (argc >= 2 && !strcmp(argv[1], "mkraidtab")) {
     282        g_loglevel = 10;
     283        g_text_mode = TRUE;
     284        setup_newt_stuff();
     285#undef MDSTAT_FILE
     286#define MDSTAT_FILE "/tmp/mdstat"
     287        if (!(fin = fopen(MDSTAT_FILE, "r"))) {
     288            log_msg(1, "Could not open %s.\n", MDSTAT_FILE);
     289                finish(1);
     290        }
     291
     292        create_raidtab_from_mdstat(MDSTAT_FILE,"/tmp/raidtab");
     293        finish(0);
     294    }
    281295
    282296    if (argc > 2 && !strcmp(argv[1], "find-cd")) {
Note: See TracChangeset for help on using the changeset viewer.