Ignore:
Timestamp:
Oct 21, 2007, 1:39:59 PM (13 years ago)
Author:
Bruno Cornec
Message:

Unmounting USB device before removal of temporary scratchdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.