Changeset 2235


Ignore:
Timestamp:
Jun 19, 2009, 6:05:10 PM (10 years ago)
Author:
bruno
Message:

r3132@localhost: bruno | 2009-06-19 16:10:49 +0200
Ads a test infrastruture for mountlist nd truncname

Location:
branches/2.2.9/mondo
Files:
2 added
2 edited

Legend:

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

    r2232 r2235  
    537537            paranoid_free(tmp);
    538538        } else {
     539            log_msg(8, "Evaluating drive #%d (%s) within mountlist", i, drivelist->el[i].device);
    539540            if ((tmp = evaluate_drive_within_mountlist(mountlist, drivelist->el[i].device)) == NULL) {
    540541                res++;
     
    686687        }
    687688        if (j == noof_drives) {
    688             strcpy(drivelist->el[noof_drives++].device, truncdrive);
     689            log_msg(8,"Adding drive %s to list", drivelist->el[noof_drives].device[63]);
     690            strncpy(drivelist->el[noof_drives].device, drive, 63);
     691            drivelist->el[noof_drives].device[63] = '\0';
     692            noof_drives++;
    689693            drivelist->el[noof_drives++].device[63] = '\0';
    690694        }
     
    693697    }
    694698    drivelist->entries = noof_drives;
    695     log_msg(8, "Made list of drives");
     699    log_msg(8, "Made list of %d drives",noof_drives);
    696700
    697701    return (noof_drives);
  • branches/2.2.9/mondo/test/test-mountlist.c

    r2234 r2235  
    8787ret = evaluate_mountlist(mountlist, tmpA, tmpB, tmpC);
    8888log_it("after evaluate_mountlist");
     89
     90mr_free(MONDO_LOGFILE);
    8991exit(0);
    9092}
Note: See TracChangeset for help on using the changeset viewer.