Changeset 3876 in MondoRescue
- Timestamp:
- Mar 8, 2024, 3:31:58 AM (9 months ago)
- Location:
- branches/3.3/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-devices-EXT.h
r3875 r3876 4 4 /* Reviewed */ 5 5 extern char *find_optical_device(void); 6 extern bool find_and_mount_actual_cd(char *mountpoint); 7 extern bool mount_media(char *mountpoint); 6 8 7 9 /* TBC */ … … 10 12 extern int does_partition_exist(const char *drive, int partno); 11 13 extern bool does_string_exist_in_boot_block(char *dev, char *str); 12 extern int find_and_mount_actual_cd(char *mountpoint);13 14 extern long get_phys_size_of_drive(char *drive); 14 15 extern bool is_this_a_valid_disk_format(char *format); -
branches/3.3/mondo/src/include/my-stuff.h
r3872 r3876 307 307 #ifdef __FreeBSD__ 308 308 #define VANILLA_SCSI_CDROM "/dev/cd0" 309 #define ALT_CDROM "/dev/ad0" 309 310 #define VANILLA_SCSI_TAPE "/dev/sa0" 310 311 #define VANILLA_USB_DEVICE "tobegivenbybsdguru" -
branches/3.3/mondo/src/mondorestore/mondo-rstr-tools.c
r3874 r3876 89 89 extern void kill_anything_like_this(char *str); 90 90 extern int skip_obdr(void); 91 extern int mount_media();92 91 extern int set_tape_block_size_with_mt(long internal_tape_block_size); 93 92 … … 362 361 } 363 362 if (!IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 364 mount_media( );363 mount_media(MNT_CDROM); 365 364 } 366 365 i = what_number_cd_is_this(); /* has the side-effect of calling mount_media() */ … … 984 983 mr_free(bkpinfo->isodir); 985 984 iso_mnt[0] = iso_path[0] = '\0'; 986 if (mount_media( )) {985 if (mount_media(MNT_CDROM)) { 987 986 mr_free(tmp1); 988 987 fatal_error("Unable to mount isodir. Failed to mount CD-ROM as well."); … … 2165 2164 } else { 2166 2165 log_msg(2, "gcffa --- calling mount_media now :)"); 2167 if (!mount_media( )) {2166 if (!mount_media(MNT_CDROM)) { 2168 2167 log_msg(2, "gcffa --- managed to mount CD; so, no need for Plan B"); 2169 2168 try_plan_B = FALSE; -
branches/3.3/mondo/src/mondorestore/mondorestore.c
r3873 r3876 56 56 extern int partition_everything(struct mountlist_itself *mountlist); 57 57 extern int handle_incoming_parameters(int argc, char *argv[]); 58 extern int mount_media();59 58 60 59 /** … … 1775 1774 mr_free(tmp); 1776 1775 mvaddstr_and_log_it(g_currentY, 0, "Preparing to read your archives"); 1777 mount_media();1778 1776 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 1779 1777 mvaddstr_and_log_it(g_currentY++, 0, … … 1793 1791 } 1794 1792 } else { 1793 mount_media(MNT_CDROM); 1795 1794 mvaddstr_and_log_it(g_currentY++, 0, 1796 1795 "Restoring OS and data from CD/USB ");
Note:
See TracChangeset
for help on using the changeset viewer.