Changeset 1240


Ignore:
Timestamp:
Mar 12, 2007, 1:41:12 AM (12 years ago)
Author:
bruno
Message:

For tape restore, there was a blocking situation where mondorestore tried to eject a CD when it's useless. (Patch provided by Benoit Donnette <bdonnette_at_linagora.com>)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.2/mondo/src/mondorestore/mondo-restore.c

    r1236 r1240  
    960960    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    961961        log_msg(2,
    962                 "I probably don't need to unmount or eject the CD-ROM but I'm doing it anyway.");
     962                "Tape : I don't need to unmount or eject the CD-ROM.");
     963    } else {
     964        run_program_and_log_output("umount " MNT_CDROM, FALSE);
     965        if (!bkpinfo->please_dont_eject) {
     966            eject_device(bkpinfo->media_device);
     967        }
    963968    }
    964969    run_program_and_log_output("umount " MNT_CDROM, FALSE);
Note: See TracChangeset for help on using the changeset viewer.