On Sun, Nov 27, 2011 at 09:13:30PM -0500, Gordon Ross wrote: > 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?
I added this to the compilation options but the error remained. Even statvfs() fails but statvfs() works when -D_FILE_OFFSET_BITS=64 is added. Will work with HP to modify their packaging tools to shift from statfs() to statvfs() with -D_FILE_OFFSET_BITS=64. Thanks. > On Sun, Nov 27, 2011 at 1:48 AM, Albert Chin > <[email protected]> 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 ([email protected]) > > > > _______________________________________________ > > OpenIndiana-discuss mailing list > > [email protected] > > http://openindiana.org/mailman/listinfo/openindiana-discuss > > > > _______________________________________________ > OpenIndiana-discuss mailing list > [email protected] > http://openindiana.org/mailman/listinfo/openindiana-discuss > -- albert chin ([email protected]) _______________________________________________ OpenIndiana-discuss mailing list [email protected] http://openindiana.org/mailman/listinfo/openindiana-discuss
