Changeset 2380 in MondoRescue for branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Sep 9, 2009, 8:30:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
r2242 r2380 614 614 } 615 615 616 if (bkpinfo->backup_media_type == n fs) {617 log_msg(2, "Mounting for N FSthingy");616 if (bkpinfo->backup_media_type == netfs) { 617 log_msg(2, "Mounting for Network thingy"); 618 618 log_msg(2, "isodir = %s", bkpinfo->isodir); 619 619 if ((!bkpinfo->isodir[0] || !strcmp(bkpinfo->isodir, "/")) … … 624 624 #ifdef __FreeBSD__ 625 625 sprintf(mount_cmd, "/mnt/isodir/%s/%s/%s-%d.iso", bkpinfo->isodir, 626 bkpinfo->n fs_remote_dir, bkpinfo->prefix, g_current_media_number);626 bkpinfo->netfs_remote_dir, bkpinfo->prefix, g_current_media_number); 627 627 mddev = make_vn(mount_cmd); 628 628 sprintf(mount_cmd, "mount_cd9660 -r %s " MNT_CDROM, mddev); 629 629 #else 630 630 sprintf(mount_cmd, "mount %s/%s/%s-%d.iso -t iso9660 -o loop,ro %s", 631 bkpinfo->isodir, bkpinfo->n fs_remote_dir,631 bkpinfo->isodir, bkpinfo->netfs_remote_dir, 632 632 bkpinfo->prefix, g_current_media_number, MNT_CDROM); 633 633 #endif … … 805 805 strcpy(bkpinfo->prefix,STD_PREFIX); 806 806 } 807 } else if (!strcmp(value, "n fs")) {808 bkpinfo->backup_media_type = n fs;807 } else if (!strcmp(value, "netfs")) { 808 bkpinfo->backup_media_type = netfs; 809 809 bkpinfo->please_dont_eject = TRUE; 810 810 if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) { … … 816 816 ("cat /proc/cmdline"), "pxe")) { 817 817 /* We need to override prefix value in PXE mode as it's 818 * already done in start-n fs */818 * already done in start-netfs */ 819 819 envtmp1 = getenv("imgname"); 820 820 if (envtmp1 == NULL) { … … 961 961 } 962 962 963 if (bkpinfo->backup_media_type == n fs) {963 if (bkpinfo->backup_media_type == netfs) { 964 964 if (!cfgf) { 965 log_msg(2, "n fs_mount remains %s", bkpinfo->nfs_mount);966 log_msg(2, "n fs_remote_dir remains %s",967 bkpinfo->n fs_remote_dir);965 log_msg(2, "netfs_mount remains %s", bkpinfo->netfs_mount); 966 log_msg(2, "netfs_remote_dir remains %s", 967 bkpinfo->netfs_remote_dir); 968 968 log_msg(2, 969 969 "...cos it wouldn't make sense to abandon the values that GOT ME to this config file in the first place"); 970 970 } else { 971 read_cfg_var(g_mondo_cfg_file, "nfs-server-mount", 972 bkpinfo->nfs_mount); 973 read_cfg_var(g_mondo_cfg_file, "nfs-server-path", 974 bkpinfo->nfs_remote_dir); 975 log_msg(2, "nfs_mount is %s", bkpinfo->nfs_mount); 976 log_msg(2, "nfs_remote_dir is %s", bkpinfo->nfs_remote_dir); 971 read_cfg_var(g_mondo_cfg_file, "netfs-server-mount", 972 bkpinfo->netfs_mount); 973 read_cfg_var(g_mondo_cfg_file, "netfs-server-path", 974 bkpinfo->netfs_remote_dir); 975 log_msg(2, "netfs_mount is %s", bkpinfo->netfs_mount); 976 log_msg(2, "netfs_proto is %s", bkpinfo->netfs_proto); 977 log_msg(2, "netfs_remote_dir is %s", bkpinfo->netfs_remote_dir); 977 978 } 978 979 if (strstr(call_program_and_get_last_line_of_output 979 980 ("cat /proc/cmdline"), "pxe")) { 980 981 /* We need to override values in PXE mode as it's 981 * already done in start-n fs */982 envtmp1 = getenv("n fsmount");982 * already done in start-netfs */ 983 envtmp1 = getenv("netfsmount"); 983 984 if (envtmp1 == NULL) { 984 fatal_error("no n fsmount variable in environment");985 fatal_error("no netfsmount variable in environment"); 985 986 } 986 987 envtmp2 = getenv("dirimg"); … … 988 989 fatal_error("no dirimg variable in environment"); 989 990 } 990 strcpy(bkpinfo->n fs_mount,envtmp1);991 strcpy(bkpinfo->n fs_remote_dir,envtmp2);991 strcpy(bkpinfo->netfs_mount,envtmp1); 992 strcpy(bkpinfo->netfs_remote_dir,envtmp2); 992 993 } 993 994 } else if (bkpinfo->backup_media_type == iso) {
Note:
See TracChangeset
for help on using the changeset viewer.