Ignore:
Timestamp:
Jun 19, 2011, 2:13:48 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Revert bad changes made accidentaly on the 2.2.8 branch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/mondorestore/mondo-prep.c

    r2808 r2833  
    288288    log_msg(1, "OK, rewound i-want-my-lvm. Doing funky stuff...");
    289289    rewind(fin);
    290     for (fgets(incoming, MAX_STR_LEN - 1, fin); !feof(fin); fgets(incoming, MAX_STR_LEN - 1, fin)) {
     290    for (fgets(incoming, 512, fin); !feof(fin); fgets(incoming, 512, fin)) {
    291291        fgetpos(fin, &orig_pos);
    292292        if (incoming[0] != '#') {
     
    301301        if ((p = strstr(incoming, "vgcreate"))) {
    302302// include next line(s) if they end in /dev (cos we've got a broken i-want-my-lvm)
    303             for (fgets(tmp, MAX_STR_LEN - 1, fin); !feof(fin); fgets(tmp, MAX_STR_LEN - 1, fin)) {
     303            for (fgets(tmp, 512, fin); !feof(fin); fgets(tmp, 512, fin)) {
    304304                if (tmp[0] == '#') {
    305305                    fsetpos(fin, &orig_pos);
     
    17841784            MONDO_LOGFILE);
    17851785
    1786     /* BERLIOS: should not be called each time */
     1786    /* BERLIOS: shoould not be called each time */
    17871787    part_table_fmt = which_partition_format(drive);
    17881788    output[0] = '\0';
     
    24062406    } else if (strcmp(format, "vmfs") == 0) {
    24072407        strcpy(program, "mkfs -t vmfs");
    2408     } else if (strcmp(format, "ntfs") == 0) {
    2409         /*
    2410          * mkfs.ntfs treats the '-c' switch as 'specify cluster size'
    2411          * so the default "mkfs -t %s -c" command structure fails
    2412          */
    2413         strcpy(program, "mkfs -t ntfs");
    24142408    } else if (strcmp(format, "ocfs2") == 0) {
    24152409        /*
Note: See TracChangeset for help on using the changeset viewer.