[OpenIndiana-discuss] statfs() problem with HP-UX 11.23, 11.31 client and oi_151a server
Albert Chin
openindiana-discuss at mlists.thewrittenword.com
Sun Nov 27 07:03:01 UTC 2011
On Sun, Nov 27, 2011 at 12:48:39AM -0600, Albert Chin wrote:
> We're running oi_151a and using it to serve up file systems to HP-UX
> 11.23 and 11.31 hosts. Unfortunately, we're seeing statfs() problems
> on this NFS server. We don't see this issue on any other client
> (Solaris 2.6-10, AIX 5.1-7, HP-UX 10.20, 11.00, 11.11, Tru64 UNIX,
> IRIX, RHEL 4-6).
>
> With the following program:
> $ cat st.c
> #include <stdio.h>
> #include <stdlib.h>
> #include <errno.h>
>
> #include <sys/types.h>
>
> /* Tru64 UNIX */
> /* #include <sys/mount.h> */
>
> /* AIX, HP-UX, RHEL */
> #include <sys/vfs.h>
>
> /* IRIX, Solaris */
> /* #include <sys/statfs.h> */
>
> int
> main (void) {
> struct statfs stbuf;
> int err;
>
> err = statfs ("/opt/dist", &stbuf);
> if (err != 0) {
> printf ("errno: %d\n", err);
> printf ("errno: %d\n", errno);
> perror ("error");
> exit (1);
> }
>
> exit (0);
> }
>
> $ uname -a
> HP-UX yukio B.11.31 U ia64 1117140128 unlimited-user license
> $ mount | grep /opt/dist
> /opt/dist on sanji:/opt/dist/yukio rsize=32768,wsize=32768,NFSv3,dev=100042e on Sun Nov 27 06:39:33 2011
> $ cc st.c
> errno: -1
> errno: 72
> error: Value too large to be stored in data type
>
> errno 72 is EOVERFLOW.
>
> Trying to mount with NFS v2 gives the same result. Any ideas?
We don't see any errors from the above program when the NFS server
11.31/IA or Solaris 10.
--
albert chin (china at thewrittenword.com)
More information about the OpenIndiana-discuss
mailing list