8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 20:43:04 +01:00

Changed to look for flag about not trying a remote host for nfs files

This commit is contained in:
skywalker 2002-11-18 02:53:59 +00:00
parent 51d0611e29
commit 02a8adfe83

View File

@ -58,6 +58,7 @@
#include "../jrd/isc_f_proto.h" #include "../jrd/isc_f_proto.h"
#include "../jrd/jrd_proto.h" #include "../jrd/jrd_proto.h"
#include "../common/config/config.h"
/* VMS Specific Stuff */ /* VMS Specific Stuff */
@ -71,6 +72,8 @@
#include <secdef.h> #include <secdef.h>
#include <lckdef.h> #include <lckdef.h>
#include "../jrd/lnmdef.h" #include "../jrd/lnmdef.h"
#define LOGICAL_NAME_TABLE "LNM$FILE_DEV" #define LOGICAL_NAME_TABLE "LNM$FILE_DEV"
#define DEFAULT_FILE_NAME ".gdb" #define DEFAULT_FILE_NAME ".gdb"
#define INET_FLAG '^' #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. * decompose into node name and remote file name.
* *
**************************************/ **************************************/
#ifdef STACK_EFFICIENT #ifdef STACK_EFFICIENT
TEXT *mnt_buffer, *remote_filename, *max_node, *max_path, *expand_mount; TEXT *mnt_buffer, *remote_filename, *max_node, *max_path, *expand_mount;
#else /* STACK_EFFICIENT */ #else /* STACK_EFFICIENT */
@ -321,6 +326,13 @@ int ISC_analyze_nfs(TEXT * expanded_filename, TEXT * node_name)
IB_FILE *mtab; IB_FILE *mtab;
int context, len; 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 #ifdef STACK_EFFICIENT
/* allocate all strings in one block */ /* allocate all strings in one block */
mnt_buffer = (TEXT *) mnt_buffer = (TEXT *)