Changeset 20 in MondoRescue for trunk/mondo/mondo/common/libmondo-devices.c


Ignore:
Timestamp:
Sep 9, 2005, 7:30:28 PM (16 years ago)
Author:
bcornec
Message:

-p option added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-devices.c

    r9 r20  
    16621662 * @param bkpinfo The backup information structure. Fields used:
    16631663 * - @c bkpinfo->backup_media_type
     1664 * - @c bkpinfo->prefix
    16641665 * - @c bkpinfo->isodir
    16651666 * - @c bkpinfo->media_device
     
    17011702      if (is_this_device_mounted(MNT_CDROM)) { run_program_and_log_output("umount "MNT_CDROM, 5); }
    17021703      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);
    17041705      if (!does_file_exist(tmp))
    17051706        {
    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);
    17071708      if (does_file_exist(tmp))
    17081709        {
     
    20482049                     { log_to_screen ("User has chosen not to backup the PC"); finish(1); }
    20492050                 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); }
    20502053             } else {
    20512054                 for (i=0;i<=MAX_NOOF_MEDIA; i++) { bkpinfo->media_size[i] = 650;}
Note: See TracChangeset for help on using the changeset viewer.