Ignore:
Timestamp:
Oct 30, 2007, 11:44:02 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Adds magic file to depllist in order to have file working + ldd which helps for debugging issues
  • tty modes correct to avoid sh error messages
  • Use ext3 normally and not ext2 instead
  • USB device should be corrected after reading (take 1st part)
  • Adds a mount_USB_here function derived from mount_CDROM_here
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c

    r1740 r1741  
    574574    update_progress_form(tmp);
    575575    strcpy(format, mountlist->el[lino].format);
     576    /* BERLIOS: removed as it doen't make sens to not mount ext3 partitions as ext3
    576577    if (!strcmp(format, "ext3")) {
    577578        strcpy(format, "ext2");
    578579    }
     580    */
    579581    res = mount_device(mountlist->el[lino].device,
    580582                       mountlist->el[lino].mountpoint,
     
    692694#endif
    693695} else if (bkpinfo->backup_media_type == usb) {
    694         sprintf(mount_cmd, "mount -r %s %s", bkpinfo->media_device, MNT_CDROM);
     696        sprintf(mount_cmd, "mount -t vfat %s %s", bkpinfo->media_device, MNT_CDROM);
    695697} else if (strstr(bkpinfo->media_device, "/dev/")) {
    696698#ifdef __FreeBSD__
     
    10111013            fatal_error("Cannot get USB device name from cfg file");
    10121014        }
    1013         strcpy(bkpinfo->media_device, value);
     1015        sprintf(bkpinfo->media_device, "%s1", value);
    10141016        sprintf(tmp, "Backup medium is USB --- dev=%s", bkpinfo->media_device);
    10151017        log_msg(2, tmp);
Note: See TracChangeset for help on using the changeset viewer.