From 8401d0281f833638c1cfc5cb862d77fe97232ecb Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 4 Nov 2010 10:33:17 -0500 Subject: [PATCH] afsd: Pass cacheMountDir to aix_vmount cacheMountDir is no longer global, so aix_vmount() needs it passed as an argument. Do so. Change-Id: I26c56b49f5ec675277d137424f672f0b727f705d Reviewed-on: http://gerrit.openafs.org/3259 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afsd/afsd_kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afsd/afsd_kernel.c b/src/afsd/afsd_kernel.c index f68a76e608..5f769e6bab 100644 --- a/src/afsd/afsd_kernel.c +++ b/src/afsd/afsd_kernel.c @@ -275,7 +275,7 @@ afsd_call_syscall(call, parm0, parm1, parm2, parm3, parm4, parm5, parm6) #define ROUNDUP(x) (((x) + 3) & ~3) -aix_vmount() +aix_vmount(const char *cacheMountDir) { struct vmount *vmountp; int size, error; @@ -479,7 +479,7 @@ afsd_mount_afs(const char *rn, const char *cacheMountDir) #elif defined(AFS_FBSD_ENV) if ((mount("AFS", cacheMountDir, mountFlags, (caddr_t) 0)) < 0) { #elif defined(AFS_AIX_ENV) - if (aix_vmount()) { + if (aix_vmount(cacheMountDir)) { #elif defined(AFS_HPUX100_ENV) if ((mount("", cacheMountDir, mountFlags, "afs", NULL, 0)) < 0) { #elif defined(AFS_SUN5_ENV)