From 02a8adfe83766cd2938245bad5dc76a2d0c4d34d Mon Sep 17 00:00:00 2001 From: skywalker Date: Mon, 18 Nov 2002 02:53:59 +0000 Subject: [PATCH] Changed to look for flag about not trying a remote host for nfs files --- src/jrd/isc_file.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/jrd/isc_file.cpp b/src/jrd/isc_file.cpp index e0ee6c7f46..788286aad1 100644 --- a/src/jrd/isc_file.cpp +++ b/src/jrd/isc_file.cpp @@ -58,6 +58,7 @@ #include "../jrd/isc_f_proto.h" #include "../jrd/jrd_proto.h" +#include "../common/config/config.h" /* VMS Specific Stuff */ @@ -71,6 +72,8 @@ #include #include #include "../jrd/lnmdef.h" + + #define LOGICAL_NAME_TABLE "LNM$FILE_DEV" #define DEFAULT_FILE_NAME ".gdb" #define INET_FLAG '^' @@ -307,6 +310,8 @@ int ISC_analyze_nfs(TEXT * expanded_filename, TEXT * node_name) * decompose into node name and remote file name. * **************************************/ + + #ifdef STACK_EFFICIENT TEXT *mnt_buffer, *remote_filename, *max_node, *max_path, *expand_mount; #else /* STACK_EFFICIENT */ @@ -321,6 +326,13 @@ int ISC_analyze_nfs(TEXT * expanded_filename, TEXT * node_name) IB_FILE *mtab; int context, len; + + // If we are ignoring NFS remote mounts then do not bother checking here + // and pretend it's only local. MOD 16-Nov-2002 + if (! Config::getRemoteFileOpenAbility()) { + return FALSE; + } + #ifdef STACK_EFFICIENT /* allocate all strings in one block */ mnt_buffer = (TEXT *)