Changeset 2528 in MondoRescue


Ignore:
Timestamp:
Jan 8, 2010, 9:39:33 AM (14 years ago)
Author:
Bruno Cornec
Message:

r3494@localhost: bruno | 2010-01-07 08:13:44 +0100
Fix the way the dsf is declared in the linked list to have it work

File:
1 edited

Legend:

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

    r2527 r2528  
    17141714    /* In any case we want to exclude the dsf itself from all MondRescue activities
    17151715     * at restore time (LVM, fdisk, ...) so we want it in our exclude_dev list */
    1716     if ((DSFptr = find_device_in_list(dsf)) == NULL) {
    1717         log_msg (4, "Can't find device %s in mounted file systems list", dsf);
    1718         paranoid_free(tmp);
    1719         mr_free(token);
    1720         return (1);
    1721     }
     1716    if ((DSFptr = (MOUNTED_FS_STRUCT *) calloc(1, sizeof(MOUNTED_FS_STRUCT))) == NULL) {
     1717        fatal_error ("Cannot allocate memory");
     1718    }
     1719    add_mounted_fs_struct(DSFptr);
     1720    strcpy(DSFptr->device, dsf);
    17221721    DSFptr->check = 1;
    17231722
Note: See TracChangeset for help on using the changeset viewer.