Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 1996 19:36:43 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@freebsd.org, j@uriah.heep.sax.de
Subject:   Re: Bug in NFS
Message-ID:  <199606190936.TAA08623@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >Use only devices which have numbers (on the server) < 64K (e.g., wd0b)
>> >and don't manage devices from the client.
>> 
>> Or use devfs ?

>Or fix NFS?

It seems to be easy.  This is untested.

major and minor are supposed to have type `int', although minors with
the high bit set don't really fit in an int.  Unusual values for major
and minor might cause problems because makedev() doesn't mask out the
bits that it doesn't understand.

Bruce

*** nfs_subs.c~	Sat Jun 15 18:13:07 1996
--- nfs_subs.c	Wed Jun 19 19:25:32 1996
***************
*** 1219,1224 ****
  		vtyp = nfsv3tov_type(fp->fa_type);
  		vmode = fxdr_unsigned(u_short, fp->fa_mode);
! 		rdev = makedev(fxdr_unsigned(u_char, fp->fa3_rdev.specdata1),
! 			fxdr_unsigned(u_char, fp->fa3_rdev.specdata2));
  		fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
  	} else {
--- 1219,1224 ----
  		vtyp = nfsv3tov_type(fp->fa_type);
  		vmode = fxdr_unsigned(u_short, fp->fa_mode);
! 		rdev = makedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
! 			fxdr_unsigned(int, fp->fa3_rdev.specdata2));
  		fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
  	} else {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606190936.TAA08623>