Ignore:
Timestamp:
Jun 19, 2013, 8:34:46 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • First pass on svn merge -r 2935:3146 ../3.0
File:
1 edited

Legend:

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

    r2937 r3147  
    5050    int pos = 0, npos = 0;
    5151    int res = 0;
    52     int mountpoint_copies = 0;
    5352    int device_copies = 0;
    5453    int i = 0;
     
    112111            }
    113112            /* does partition /dev/adXsYZ exist more than once in the mountlist? */
    114             for (i = 0, mountpoint_copies = 0, device_copies = 0;
     113            for (i = 0, device_copies = 0;
    115114                 i < mountlist->entries; i++) {
    116115                if (!strcmp(device, mountlist->el[i].device)) {
     
    214213            }
    215214            /* does partition /dev/adXsY exist more than once in the mountlist? */
    216             for (i = 0, mountpoint_copies = 0, device_copies = 0;
     215            for (i = 0, device_copies = 0;
    217216                 i < mountlist->entries; i++) {
    218217                if (!strcmp(device, mountlist->el[i].device)) {
     
    277276                }
    278277                /* does partition /dev/adXsYZ exist more than once in the mountlist? */
    279                 for (i = 0, mountpoint_copies = 0, device_copies = 0;
     278                for (i = 0, device_copies = 0;
    280279                     i < mountlist->entries; i++) {
    281280                    if (!strcmp(device, mountlist->el[i].device)) {
     
    384383    int pos = 0;
    385384    int res = 0;
    386     int mountpoint_copies = 0;
    387385    int device_copies = 0;
    388386    int i = 0;
     
    461459
    462460        /* does partition /dev/hdNX exist more than once in the mountlist? */
    463         for (i = 0, mountpoint_copies = 0, device_copies = 0;
     461        for (i = 0, device_copies = 0;
    464462             i < mountlist->entries; i++) {
    465463            if (!strcmp(device, mountlist->el[i].device)) {
     
    807805    char *tmp = NULL;
    808806    char *p = NULL;
     807    char *q = NULL;
    809808
    810809    int items = 0;
     
    926925    }
    927926    paranoid_fclose(fout);
     927    if (!(fout = fopen(MONDO_MNTLISTCHG, "w"))) {
     928        log_OS_error("WMTD - Cannot openout "MONDO_MNTLISTCHG);
     929        return (1);
     930    }
     931    fprintf(fout, "the mountlist was changed by mondorestore\n");
     932    paranoid_fclose(fout);
    928933    return (0);
    929934}
Note: See TracChangeset for help on using the changeset viewer.