]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afsd: Report fakestat correctly
authorAndrew Deason <adeason@sinenomine.net>
Mon, 21 May 2012 23:15:58 +0000 (18:15 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 22 Mar 2013 14:45:30 +0000 (07:45 -0700)
A fakestat value of 1 is for -fakestat-all, and 2 is for -fakestat,
not the other way around.

Reviewed-on: http://gerrit.openafs.org/7445
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 47e12584804b287051552900c94c99a3c84daa92)

Change-Id: I8b0872430c771741962afcfd9854cbe5fcdc42e8
Reviewed-on: http://gerrit.openafs.org/9478
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afsd/afsd.c

index 925cace01e133c9719ac4b9b3a92f2d01ebe419a..6a4f5078cb57f044ef0882ff3dbe7dc469817f8b 100644 (file)
@@ -2331,7 +2331,7 @@ afsd_run(void)
     if (enable_fakestat) {
        if (afsd_verbose)
            printf("%s: Enabling fakestat support in kernel%s.\n", rn,
-                  (enable_fakestat==2)?" for all mountpoints."
+                  (enable_fakestat==1)?" for all mountpoints."
                   :" for crosscell mountpoints");
        code = afsd_call_syscall(AFSOP_SET_FAKESTAT, enable_fakestat);
        if (code)