Changeset 705


Ignore:
Timestamp:
Jul 22, 2006, 4:24:31 AM (13 years ago)
Author:
andree
Message:

Fixed bug where image partitions (e.g. NTFS) would change size if Ok was
pressed in edit mountlist item dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondorestore/mondo-rstr-newt.c

    r541 r705  
    13641364    strcpy(mountlist->el[currline].mountpoint, mountpoint_str);
    13651365    strcpy(mountlist->el[currline].format, format_str);
    1366     if (strstr(mountlist->el[currline].device, RAID_DEVICE_STUB)
    1367         || !strcmp(mountlist->el[currline].mountpoint, "image")) {
    1368         mountlist->el[currline].size =
    1369             calculate_raid_device_size(mountlist, raidlist,
     1366    if (strcmp(mountlist->el[currline].mountpoint, "image")) {
     1367        if (strstr(mountlist->el[currline].device, RAID_DEVICE_STUB)) {
     1368            mountlist->el[currline].size =
     1369                calculate_raid_device_size(mountlist, raidlist,
    13701370                                       mountlist->el[currline].device);
    1371     } else {
    1372         mountlist->el[currline].size = atol(size_str) * 1024;
     1371        } else {
     1372            mountlist->el[currline].size = atol(size_str) * 1024;
     1373        }
    13731374    }
    13741375    newtListboxSetEntry(listbox, (int) keylist[currline],
Note: See TracChangeset for help on using the changeset viewer.