<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(Message inbox:856)
Received: from zephyr.cs.vu.nl by top.cs.vu.nl id aa01825; 4 May 94 1:45 MET DST
Received: from ARCTURUS.CIRIL.FR by zephyr.cs.vu.nl id aa16409;
          4 May 94 1:45 MET DST
Received: from donjuan.mines.u-nancy.fr (mines.u-nancy.fr) by arcturus.ciril.fr with SMTP
	(1.37.109.10G/16.2) id AA266258679; Wed, 4 May 1994 01:44:39 +0200
Received: by donjuan.mines.u-nancy.fr (4.1/SMI-4.0)
	id AA12837; Wed, 4 May 94 01:45:35 +0200
From: Olivier Galibert aka Sarayan &lt;galibero@mines.u-nancy.fr&gt;
Message-Id: &lt;9405032345.AA12837@donjuan.mines.u-nancy.fr&gt;
Subject: nfsbug
To: leendert@cs.vu.nl
Date: Wed, 4 May 94 1:45:34 MET DST
X-Mailer: ELM [version 2.3 PL11]

That's a very nice program. Here is a small patch I
had to do to make it compile on HPux 9.01 with standard
cc. [Changing HPUX to hpux and including sys/inode.h]

  Sarayan

*** nfsbug.c.orig	Wed May  4 00:21:46 1994
--- nfsbug.c	Wed May  4 01:29:36 1994
***************
*** 30,42 ****
  #include &lt;sys/vnode.h&gt;
  #include &lt;sys/vfs.h&gt;
  #include &lt;sys/sysmacros.h&gt;
! #ifdef SVR4
  #include &lt;sys/inode.h&gt;
  #else
- #ifndef HPUX
  #include &lt;ufs/inode.h&gt;
  #endif
- #endif
  
  #include "mount.h"
  #include "nfs_prot.h"
--- 30,40 ----
  #include &lt;sys/vnode.h&gt;
  #include &lt;sys/vfs.h&gt;
  #include &lt;sys/sysmacros.h&gt;
! #if defined(SVR4) || defined(hpux)
  #include &lt;sys/inode.h&gt;
  #else
  #include &lt;ufs/inode.h&gt;
  #endif
  
  #include "mount.h"
  #include "nfs_prot.h"
***************
*** 405,411 ****
  		 * machinery in the same state as the fsirand program might
  		 * have been (given that it had pid at the time it ran).
  		 */
! #ifdef	HPUX
  		srand(1);
  		srand(frpid + devp-&gt;dev_random);
  		for (n = frpid; n--; ) (void) rand();
--- 403,409 ----
  		 * machinery in the same state as the fsirand program might
  		 * have been (given that it had pid at the time it ran).
  		 */
! #ifdef	hpux
  		srand(1);
  		srand(frpid + devp-&gt;dev_random);
  		for (n = frpid; n--; ) (void) rand();
***************
*** 494,500 ****
       * inode number is not 2). I don't know about other file
       * systems.
       */
! #ifdef	HPUX
      if (fh-&gt;fh_fsid[1] != MOUNT_UFS)
  	return FALSE;
  #else
--- 492,498 ----
       * inode number is not 2). I don't know about other file
       * systems.
       */
! #ifdef	hpux
      if (fh-&gt;fh_fsid[1] != MOUNT_UFS)
  	return FALSE;
  #else
***************
*** 710,716 ****
      long inum, gen;
      long rinum, rgen;
  {
! #ifdef	HPUX
      handle-&gt;fh_fsid[0] = makedev(maj, min);
      handle-&gt;fh_fsid[1] = MOUNT_UFS;
  #else
--- 708,714 ----
      long inum, gen;
      long rinum, rgen;
  {
! #ifdef	hpux
      handle-&gt;fh_fsid[0] = makedev(maj, min);
      handle-&gt;fh_fsid[1] = MOUNT_UFS;
  #else
***************
*** 737,743 ****
      register int i;
  
      /* fsid[0] -&gt; major, minor device number */
! #ifdef	HPUX
      printf("(%d,%d) ",
  	major(handle-&gt;fh_fsid[0]), minor(handle-&gt;fh_fsid[0]));
  #else
--- 735,741 ----
      register int i;
  
      /* fsid[0] -&gt; major, minor device number */
! #ifdef	hpux
      printf("(%d,%d) ",
  	major(handle-&gt;fh_fsid[0]), minor(handle-&gt;fh_fsid[0]));
  #else
***************
*** 746,752 ****
  #endif
  
      /* fsid[1] -&gt; file system type */
! #ifdef	HPUX
      switch (handle-&gt;fh_fsid[1]) {
  #else
      switch (handle-&gt;fh_fsid.val[1]) {
--- 744,750 ----
  #endif
  
      /* fsid[1] -&gt; file system type */
! #ifdef	hpux
      switch (handle-&gt;fh_fsid[1]) {
  #else
      switch (handle-&gt;fh_fsid.val[1]) {
</pre></body></html>