Changeset 1697


Ignore:
Timestamp:
Oct 21, 2007, 1:39:59 PM (12 years ago)
Author:
bruno
Message:

Unmounting USB device before removal of temporary scratchdir

Location:
branches/2.2.5/mondo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-archive.c

    r1696 r1697  
    18961896    if (is_this_device_mounted(bkpinfo->media_device)) {
    18971897        log_msg(1, "USB device mounted. Remounting it at the right place");
    1898         asprintf(&tmp, "umount %s", bkpinfo->media_device);
     1898        asprintf(&tmp, "umount %s1", bkpinfo->media_device);
    18991899        run_program_and_log_output(tmp, FALSE);
    19001900        paranoid_free(tmp);
  • branches/2.2.5/mondo/src/mondoarchive/main.c

    r1659 r1697  
    524524    sprintf(tmp, "umount %s/tmpfs", bkpinfo->tmpdir);
    525525    run_program_and_log_output(tmp, TRUE);
     526    if (bkpinfo->backup_media_type == usb) {
     527        log_msg(1, "Unmounting USB device.");
     528        sprintf(tmp, "umount %s1", bkpinfo->media_device);
     529        run_program_and_log_output(tmp, TRUE);
     530    }
    526531    run_program_and_log_output(g_erase_tmpdir_and_scratchdir, TRUE);
    527532
Note: See TracChangeset for help on using the changeset viewer.