[OpenIndiana-discuss] statfs() problem with HP-UX 11.23, 11.31 client and oi_151a server

Gordon Ross gordon.w.ross at gmail.com
Mon Nov 28 02:13:30 UTC 2011


Do you compile it with -D_FILE_OFFSET_BITS=64 in the compiler flags?
If not, does that change what you see when you run it?

On Sun, Nov 27, 2011 at 1:48 AM, Albert Chin
<openindiana-discuss at mlists.thewrittenword.com> 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?
>
> --
> albert chin (china at thewrittenword.com)
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>



More information about the OpenIndiana-discuss mailing list