Ignore:
Timestamp:
Apr 21, 2011, 1:48:52 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Introduce a new bkpinfo member (subdir) to support storing the subdir under which ISO images are stored on an external HDD. Should fix mostly #433.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.c

    r2767 r2769  
    22812281{
    22822282
     2283    bool HDD = FALSE;
     2284    char *subdir_path;
    22832285    /** initialize ********************************************************/
    22842286
     
    23112313             "What is the disk format of the device? (Hit ENTER if you don't know.)",
    23122314             isodir_format, 16)) {
     2315            if (popup_with_button("Are you restoring from an external hard drive ?", "Yes", "No")) {
     2316                HDD = TRUE;
     2317            }
    23132318            if (popup_and_get_string
    23142319                ("ISO Mode - path",
    2315                  "At what path on this device can the ISO files be found ? (Use /tmp/isodir if restoring from HDD)",
    2316                  isodir_path, MAX_STR_LEN / 4)) {
     2320                "At what path on this device can the ISO files be found ?",
     2321                isodir_path, MAX_STR_LEN / 4)) {
    23172322                strip_spaces(isodir_device);
    23182323                strip_spaces(isodir_format);
    23192324                strip_spaces(isodir_path);
    23202325                log_it("isodir_device = %s - isodir_format = %s - isodir_path = %s", isodir_device, isodir_format, isodir_path);
     2326                if (HDD) {
     2327                    /*  We need an additional param */
     2328                    mr_asprintf(&subdir_path, "%s", isodir_path);
     2329                    bkpinfo->subdir = subdir_path;
     2330                    strcpy(isodir_path, "/tmp/isodir");
     2331                }
    23212332                return (TRUE);
    23222333            }
Note: See TracChangeset for help on using the changeset viewer.