From 40b18318e4a04a323dbdd9e3c4a73d3b2e92104d Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 21 Sep 2009 16:57:01 -0500 Subject: [PATCH] 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 --- src/afs/SOLARIS/osi_vnodeops.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.5