Changeset 1239


Ignore:
Timestamp:
Mar 12, 2007, 1:37:05 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/stable/mondo/src/mondorestore/mondorestore.c

    r1213 r1239  
    888888    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    889889        mr_msg(2,
    890                 "I probably don't need to unmount or eject the CD-ROM but I'm doing it anyway.");
     890                "Tape : I don't need to unmount or eject the CD-ROM.");
     891    } else {
     892        run_program_and_log_output("umount " MNT_CDROM, FALSE);
     893        if (!bkpinfo->please_dont_eject) {
     894            eject_device(bkpinfo->media_device);
     895        }
    891896    }
    892897    run_program_and_log_output("umount " MNT_CDROM, FALSE);
Note: See TracChangeset for help on using the changeset viewer.