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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-11-04 10:33:17 -05:00 committed by Derrick Brashear
parent 3f4460e1e9
commit 8401d0281f

View File

@ -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)