From: Andrew Deason Date: Mon, 21 Sep 2009 21:57:01 +0000 (-0500) Subject: Implement _PC_FILESIZEBITS for solaris pathconf X-Git-Tag: openafs-devel-1_5_65~54 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=40b18318e4a04a323dbdd9e3c4a73d3b2e92104d;p=packages%2Fo%2Fopenafs.git Implement _PC_FILESIZEBITS for solaris pathconf 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 Reviewed-by: Derrick Brashear --- diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index e2302db2f..12a06e70e 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -1120,6 +1120,13 @@ afs_pathconf(struct vnode *vp, int cmd, u_long *outdatap, case _PC_NO_TRUNC: *outdatap = 1; break; + case _PC_FILESIZEBITS: +#ifdef AFS_64BIT_CLIENT + *outdatap = 64; +#else + *outdatap = 32; +#endif + break; default: return EINVAL; }