[comp.protocols.nfs] NFS mount protocol and mount.x

taylor@Think.COM (David Taylor) (10/29/89)

If an NFS mount daemon uses the mount.x file distributed with SunRPC 3.9
or 4.0 or the file /usr/include/rpcsvc/mount.x on a Sun (running SunOS
4.0.x) [all of which are similar but slightly different], then:

	showmount -e hostname

from another host prints a message saying something like:

	showmount: can't decode rpc message

After exploring this a bit I've come to the conclusion that the mount
protocol documented in the mount.x and nfs.rfc.ms files is not the mount
protocol that is actually implemented by SunOS 4.0.x and by Ultrix 3.1.

So, does anyone have a mount.x file that corresponds to the actual,
implemented, protocol?  Or a description of the protocol?

David
--
David Taylor
taylor@think.com, ...!think!taylor

cs@Eng.Sun.COM (Carl Smith) (10/31/89)

> So, does anyone have a mount.x file that corresponds to the actual,
> implemented, protocol?  Or a description of the protocol?

	Here's the bug fix:

------- mount.x -------
*** /tmp/da01812	Mon Oct 30 11:07:47 1989
--- mount.x	Thu Sep 28 20:24:51 1989
***************
*** 42,51 ****
  /*
   * A list of who has what mounted
   */
! struct mountlist {
  	name ml_hostname;
  	dirpath ml_directory;
! 	mountlist *ml_next;
  };
  
  /*
--- 42,52 ----
  /*
   * A list of who has what mounted
   */
! typedef struct mountbody *mountlist;
! struct mountbody {
  	name ml_hostname;
  	dirpath ml_directory;
! 	mountlist ml_next;
  };
  
  /*


			Carl