Changeset 2389


Ignore:
Timestamp:
Sep 10, 2009, 8:31:57 PM (10 years ago)
Author:
bruno
Message:

Fix a problem in netfs analysis in mondoarchive
(Backport from 2.2.9)

Location:
branches/2.2.10/mondo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-cli.c

    r2383 r2389  
    996996                fatal_error("No protocol correctly specified for remote share mount. Use protocol://server:share");
    997997            }
     998            p++;
     999            /* p points on to the string server:/path */
    9981000            bkpinfo->netfs_mount = p;
     1001
    9991002            /* new netfs mount - remove :// from proto */
     1003            /* going back to protocol */
    10001004            p--;
    10011005            p--;
  • branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c

    r2383 r2389  
    745745            mr_asprintf(bkpinfo->prefix, "%s", STD_PREFIX);
    746746        }
    747     } else if (!strcmp(value, "netfs")) {
     747    } else if ((!strcmp(value, "netfs")) || (!strcmp(value, "nfs"))) {
     748        /* Stay compatible with previous versions by allowing nfs as an entry here */
    748749        bkpinfo->backup_media_type = netfs;
    749750        bkpinfo->please_dont_eject = TRUE;
     
    768769        }
    769770        mr_free(tmp);
     771    /* For compatibility, force protocol in old nfs case to be transparent */
     772    if (!strcmp(value, "nfs")) {
     773        mr_free(bkpinfo->netfs_proto);
     774        mr_asprintf(bkpinfo->netfs_proto, "nfs");
     775    }
    770776
    771777    } else if (!strcmp(value, "tape")) {
Note: See TracChangeset for help on using the changeset viewer.