Changeset 2399 in MondoRescue


Ignore:
Timestamp:
Sep 15, 2009, 7:28:39 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Use protocol name when displaying restore progress instead of netfs
  • Ask for network protocol name at restore time
Location:
branches/2.2.9/mondo/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-devices.c

    r2380 r2399  
    17871787            sprintf(command ,"umount %s/isodir 2> /dev/null", bkpinfo->tmpdir);
    17881788            (void)system(command);
     1789            strcpy(tmp1, bkpinfo->netfs_protocol);
     1790            if (!popup_and_get_string
     1791                ("Network protocol", "Which protocol should I use?",
     1792                 tmp1, MAX_STR_LEN)) {
     1793                log_to_screen("User has chosen not to backup the PC");
     1794                finish(1);
     1795            }
     1796            mr_free(bkpinfo->netfs_protocol);
     1797            mr_asprintf(&(bkpinfo->netfs_protocol), "%s", tmp1);
    17891798            if (!popup_and_get_string
    17901799                ("Network share", "Which remote share should I mount?",
  • branches/2.2.9/mondo/src/common/libmondo-string.c

    r2380 r2399  
    10921092 * @note The returned string points to static storage that will be overwritten with each call.
    10931093 */
    1094 /* BCO/BERLIOS change that function to allocate memory, return a pointer and modify caller to free the mem */
    10951094char *media_descriptor_string(t_bkptype type_of_bkp) {
    10961095
     
    11201119        break;
    11211120    case netfs:
    1122         mr_asprintf(&type_of_backup, "netfs");
     1121        mr_asprintf(&type_of_backup, "%s", bkpinfo->netfs_proto);
    11231122        break;
    11241123    case usb:
Note: See TracChangeset for help on using the changeset viewer.