From eff1de43cd6b95129c84c6781cdccfe6fb6bdf03 Mon Sep 17 00:00:00 2001 From: Garry Zacheiss Date: Tue, 23 Jul 2002 00:53:40 +0000 Subject: [PATCH] Oops, missed a portion of diff. --- src/afsd/afsd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 1cb3488d2..e80c2b8bc 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1329,6 +1329,10 @@ mainproc(as, arock) /* -dynroot */ enable_dynroot = 1; } + if (as->parms[27].items) { + /* -fakestat */ + enable_fakestat = 1; + } /* * Pull out all the configuration info for the workstation's AFS cache and @@ -1568,6 +1572,14 @@ mainproc(as, arock) printf("%s: Error enabling dynroot support.\n", rn); } + if (enable_fakestat) { + if (afsd_verbose) + printf("%s: Enabling fakestat support in kernel.\n", rn); + code = call_syscall(AFSOP_SET_FAKESTAT, 1); + if (code) + printf("%s: Error enabling fakestat support.\n", rn); + } + /* Initialize AFS daemon threads. */ if (afsd_verbose) printf("%s: Forking AFS daemon.\n", rn); @@ -1921,6 +1933,7 @@ char **argv; { ), "Enable AFSDB support"); cmd_AddParm(ts, "-files_per_subdir", CMD_SINGLE, CMD_OPTIONAL, "log(2) of the number of cache files per cache subdirectory"); cmd_AddParm(ts, "-dynroot", CMD_FLAG, CMD_OPTIONAL, "Enable dynroot support"); + cmd_AddParm(ts, "-fakestat", CMD_FLAG, CMD_OPTIONAL, "Enable fakestat support"); return (cmd_Dispatch(argc, argv)); } -- 2.39.5