Changeset 1645 in MondoRescue for branches/2.2.5/mondo/src/common/libmondo-devices.c
- Timestamp:
- Sep 24, 2007, 3:04:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-devices.c
r1644 r1645 276 276 extern t_bkptype g_backup_media_type; // set by main() 277 277 278 279 280 281 void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo *bkpinfo) 278 /* Reference to global bkpinfo */ 279 extern struct s_bkpinfo *bkpinfo; 280 281 282 283 284 void set_g_cdrom_and_g_dvd_to_bkpinfo_value() 282 285 { 283 286 strcpy(g_cdrom_drive_is_here, bkpinfo->media_device); // just in case … … 664 667 * @see mount_CDROM_here 665 668 */ 666 int find_and_mount_actual_cd( struct s_bkpinfo *bkpinfo,char *mountpoint)669 int find_and_mount_actual_cd(char *mountpoint) 667 670 { 668 671 /*@ buffers ***************************************************** */ … … 1698 1701 */ 1699 1702 void 1700 insist_on_this_cd_number( struct s_bkpinfo *bkpinfo,int cd_number_i_want)1703 insist_on_this_cd_number(int cd_number_i_want) 1701 1704 { 1702 1705 … … 1755 1758 // return; 1756 1759 } 1757 if ((res = what_number_cd_is_this( bkpinfo)) != cd_number_i_want) {1760 if ((res = what_number_cd_is_this()) != cd_number_i_want) { 1758 1761 log_msg(3, "Currently, we hold %d but we want %d", res, 1759 1762 cd_number_i_want); … … 1765 1768 cd_number_i_want); 1766 1769 log_msg(3, tmp); 1767 while (what_number_cd_is_this( bkpinfo) != cd_number_i_want) {1770 while (what_number_cd_is_this() != cd_number_i_want) { 1768 1771 paranoid_system("sync"); 1769 1772 if (is_this_device_mounted(MNT_CDROM)) { … … 1813 1816 * @ingroup archiveGroup 1814 1817 */ 1815 int interactively_obtain_media_parameters_from_user(struct s_bkpinfo 1816 *bkpinfo, 1817 bool 1818 archiving_to_media) 1818 int interactively_obtain_media_parameters_from_user(bool archiving_to_media) 1819 1819 // archiving_to_media is TRUE if I'm being called by mondoarchive 1820 1820 // archiving_to_media is FALSE if I'm being called by mondorestore … … 1852 1852 bkptype_to_string(bkpinfo->backup_media_type)); 1853 1853 if (archiving_to_media) { 1854 sensibly_set_tmpdir_and_scratchdir( bkpinfo);1854 sensibly_set_tmpdir_and_scratchdir(); 1855 1855 } 1856 1856 bkpinfo->cdrw_speed = (bkpinfo->backup_media_type == cdstream) ? 2 : 4; … … 1932 1932 sprintf(comment, 1933 1933 "Please specify your %s drive's /dev entry", 1934 media_descriptor_string(bkpinfo-> 1935 backup_media_type)); 1934 media_descriptor_string(bkpinfo->backup_media_type)); 1936 1935 if (!popup_and_get_string 1937 1936 ("Device?", comment, bkpinfo->media_device, … … 1951 1950 sprintf(tmp, 1952 1951 "I think I've found your %s burner at SCSI node %s. Is this correct? (Say no if you have an IDE burner and you are running a 2.6 kernel. You will then be prompted for further details.)", 1953 media_descriptor_string(bkpinfo-> 1954 backup_media_type), 1952 media_descriptor_string(bkpinfo->backup_media_type), 1955 1953 bkpinfo->media_device); 1956 1954 if (!ask_me_yes_or_no(tmp)) { … … 2507 2505 * @ingroup utilityGroup 2508 2506 */ 2509 void sensibly_set_tmpdir_and_scratchdir( struct s_bkpinfo *bkpinfo)2507 void sensibly_set_tmpdir_and_scratchdir() 2510 2508 { 2511 2509 char *tmp, *command, *sz; … … 2609 2607 * (and remain mounted after this function returns). 2610 2608 */ 2611 int what_number_cd_is_this( struct s_bkpinfo *bkpinfo)2609 int what_number_cd_is_this() 2612 2610 { 2613 2611 int cd_number = -1;
Note:
See TracChangeset
for help on using the changeset viewer.