]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Oops, missed a portion of diff.
authorGarry Zacheiss <zacheiss@mit.edu>
Tue, 23 Jul 2002 00:53:40 +0000 (00:53 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Tue, 23 Jul 2002 00:53:40 +0000 (00:53 +0000)
src/afsd/afsd.c

index 1cb3488d20c694f661b8c456286a718ef28bbced..e80c2b8bcf311fe1339a5d75dcf5ae0015183cab 100644 (file)
@@ -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));
 }