Ignore:
Timestamp:
Sep 10, 2009, 2:07:16 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Change NFS support into a NetFS support to allow for multiple protocol in addition to NFS (NEEDS TESTING)

(Backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/newt-specific.c

    r2377 r2382  
    2020#include "my-stuff.h"
    2121#include "mr_mem.h"
     22#include "mr_str.h"
    2223#include "mondostructures.h"
    2324#include "newt-specific.h"
     
    99100    long g_start_time = 0L;     ///< The time (in seconds since the epoch) that the progress form was opened.
    100101    bool g_text_mode = TRUE;    ///< If FALSE, use a newt interface; if TRUE, use an ugly (but more compatible) dumb terminal interface.
    101     char *g_selfmounted_isodir; ///< Holds the NFS mountpoint if mounted via mondoarchive.
     102    char *g_selfmounted_isodir; ///< Holds the NETFS mountpoint if mounted via mondoarchive.
    102103
    103104/* @} - end of globalGroup */
     
    11061107 * Ask the user which backup media type they would like to use.
    11071108 * The choices are @p none (exit to shell), @c cdr, @c cdrw, @c dvd,
    1108  * @c tape, @c cdstream, @c udev (only when @p g_text_mode is TRUE), @c nfs,
     1109 * @c tape, @c cdstream, @c udev (only when @p g_text_mode is TRUE), @c netfs,
    11091110 * and @c iso.
    11101111 * @param restoring TRUE if we're restoring, FALSE if we're backing up.
     
    11201121        char *title_sz = NULL;
    11211122        char *minimsg_sz = NULL;
    1122         static t_bkptype possible_bkptypes[] = { none, cdr, cdrw, dvd, tape, cdstream, udev, nfs, iso };
    1123         static char *possible_responses[] = { "none", "cdr", "cdrw", "dvd", "tape", "cdstream", "udev", "nfs", "iso", NULL };
     1123        static t_bkptype possible_bkptypes[] = { none, cdr, cdrw, dvd, tape, cdstream, udev, netfs, iso };
     1124        static char *possible_responses[] = { "none", "cdr", "cdrw", "dvd", "tape", "cdstream", "udev", "netfs", "iso", NULL };
    11241125        char *outstr = NULL;
    11251126        t_bkptype backup_type;
     
    11711172        b4 = newtButton(17, 5, "USB Key/Disk");
    11721173        b5 = newtButton(1, 5, " DVD disks ");
    1173         b6 = newtButton(17, 9, " NFS mount ");
     1174        b6 = newtButton(17, 9, " Net mount ");
    11741175        b7 = newtButton(1, 13, " Hard disk ");
    11751176        b8 = newtButton(17, 13, "    Exit   ");
     
    11911192            output = dvd;
    11921193        } else if (b_res == b6) {
    1193             output = nfs;
     1194            output = netfs;
    11941195        } else if (b_res == b7) {
    11951196            output = iso;
     
    14531454        for (i = 0; i < filelist->entries; i++) {
    14541455            keylist[i] = (void *) i;
    1455             tmp = filelist_entry_to_string(&(filelist->el[i])), keylist[i];
    1456             newtListboxAppendEntry(fileListbox, tmp);
     1456            tmp = filelist_entry_to_string(&(filelist->el[i]));
     1457            newtListboxAppendEntry(fileListbox, tmp, keylist[i]);
    14571458            mr_free(tmp);
    14581459        }
Note: See TracChangeset for help on using the changeset viewer.