Ignore:
Timestamp:
Mar 8, 2024, 3:31:58 AM (4 months ago)
Author:
Bruno Cornec
Message:

Fix mount_media calls

File:
1 edited

Legend:

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

    r3874 r3876  
    8989extern void kill_anything_like_this(char *str);
    9090extern int skip_obdr(void);
    91 extern int mount_media();
    9291extern int set_tape_block_size_with_mt(long internal_tape_block_size);
    9392
     
    362361}
    363362if (!IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    364     mount_media();
     363    mount_media(MNT_CDROM);
    365364}
    366365i = what_number_cd_is_this();   /* has the side-effect of calling mount_media() */
     
    984983                mr_free(bkpinfo->isodir);
    985984                iso_mnt[0] = iso_path[0] = '\0';
    986                 if (mount_media()) {
     985                if (mount_media(MNT_CDROM)) {
    987986                    mr_free(tmp1);
    988987                    fatal_error("Unable to mount isodir. Failed to mount CD-ROM as well.");
     
    21652164        } else {
    21662165            log_msg(2, "gcffa --- calling mount_media now :)");
    2167             if (!mount_media()) {
     2166            if (!mount_media(MNT_CDROM)) {
    21682167                log_msg(2, "gcffa --- managed to mount CD; so, no need for Plan B");
    21692168                try_plan_B = FALSE;
Note: See TracChangeset for help on using the changeset viewer.