]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Implement _PC_FILESIZEBITS for solaris pathconf
authorAndrew Deason <adeason@sinenomine.net>
Mon, 21 Sep 2009 21:57:01 +0000 (16:57 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 23 Sep 2009 23:52:35 +0000 (16:52 -0700)
Using recent NFS clients and servers with the translator under Solaris
causes AFS to be queried for the _PC_FILESIZEBITS pathconf value. Right
now we don't implement it and return EINVAL, causing at least some
modern NFS clients to be unable to mount AFS via the translator on at
least some modern NFS servers.

So, return _PC_FILESIZEBITS as either 32 or 64, depending on whether we
are a 64-bit client or not.

Reviewed-on: http://gerrit.openafs.org/481
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 40b18318e4a04a323dbdd9e3c4a73d3b2e92104d)
Reviewed-on: http://gerrit.openafs.org/490

src/afs/SOLARIS/osi_vnodeops.c

index 73280bf5c32eb60e2d302e7a76b75c2c458e3ead..9fcb02682ba57c3f362b46cf8fa5aa872a6b000c 100644 (file)
@@ -1203,6 +1203,13 @@ afs_pathconf(vp, cmd, outdatap, credp)
     case _PC_NO_TRUNC:
        *outdatap = 1;
        break;
+    case _PC_FILESIZEBITS:
+#ifdef AFS_64BIT_CLIENT
+       *outdatap = 64;
+#else
+       *outdatap = 32;
+#endif
+       break;
     default:
        return EINVAL;
     }