Changeset 20 in MondoRescue for trunk/mondo/mondo/common/libmondo-devices.c
- Timestamp:
- Sep 9, 2005, 7:30:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-devices.c
r9 r20 1662 1662 * @param bkpinfo The backup information structure. Fields used: 1663 1663 * - @c bkpinfo->backup_media_type 1664 * - @c bkpinfo->prefix 1664 1665 * - @c bkpinfo->isodir 1665 1666 * - @c bkpinfo->media_device … … 1701 1702 if (is_this_device_mounted(MNT_CDROM)) { run_program_and_log_output("umount "MNT_CDROM, 5); } 1702 1703 system("mkdir -p /tmp/isodir &> /dev/null"); 1703 sprintf(tmp, "%s/%s/% d.iso", bkpinfo->isodir, bkpinfo->nfs_remote_dir, cd_number_i_want);1704 sprintf(tmp, "%s/%s/%s-%d.iso", bkpinfo->isodir, bkpinfo->nfs_remote_dir, bkpinfo->prefix, cd_number_i_want); 1704 1705 if (!does_file_exist(tmp)) 1705 1706 { 1706 sprintf(tmp, "/tmp/isodir/%s/% d.iso", bkpinfo->nfs_remote_dir, cd_number_i_want);1707 sprintf(tmp, "/tmp/isodir/%s/%s-%d.iso", bkpinfo->nfs_remote_dir, bkpinfo->prefix, cd_number_i_want); 1707 1708 if (does_file_exist(tmp)) 1708 1709 { … … 2048 2049 { log_to_screen ("User has chosen not to backup the PC"); finish(1); } 2049 2050 for(i=0; i<=MAX_NOOF_MEDIA; i++) { bkpinfo->media_size[i] = atoi (sz_size); } 2051 if (!popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix, MAX_STR_LEN/4)) 2052 { log_to_screen("User has chosen not to backup the PC"); finish(1); } 2050 2053 } else { 2051 2054 for (i=0;i<=MAX_NOOF_MEDIA; i++) { bkpinfo->media_size[i] = 650;}
Note:
See TracChangeset
for help on using the changeset viewer.