From 970f82454dc6143a8231a988dd1e5c2c06602685 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 (cherry picked from commit 40b18318e4a04a323dbdd9e3c4a73d3b2e92104d) Reviewed-on: http://gerrit.openafs.org/490 --- 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 73280bf5c..9fcb02682 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -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; } -- 2.39.5