Changeset 3876 in MondoRescue for branches/3.3/mondo/src/mondorestore


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

Fix mount_media calls

Location:
branches/3.3/mondo/src/mondorestore
Files:
2 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;
  • branches/3.3/mondo/src/mondorestore/mondorestore.c

    r3873 r3876  
    5656extern int partition_everything(struct mountlist_itself *mountlist);
    5757extern int handle_incoming_parameters(int argc, char *argv[]);
    58 extern int mount_media();
    5958
    6059/**
     
    17751774    mr_free(tmp);
    17761775    mvaddstr_and_log_it(g_currentY, 0, "Preparing to read your archives");
    1777     mount_media();
    17781776    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    17791777        mvaddstr_and_log_it(g_currentY++, 0,
     
    17931791        }
    17941792    } else {
     1793        mount_media(MNT_CDROM);
    17951794        mvaddstr_and_log_it(g_currentY++, 0,
    17961795                            "Restoring OS and data from CD/USB   ");
Note: See TracChangeset for help on using the changeset viewer.