Subject: Re: bin/3203
To: Bruce Albrecht <Bruce.Albrecht@seag.fingerhut.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-bugs
Date: 03/06/1997 15:09:38
On Thu, 6 Mar 1997 12:18:19 -0600 
 Bruce Albrecht <Bruce.Albrecht@seag.fingerhut.com> wrote:

 > Also, I was looking at the swapnetbsd.c file in the compile directory,
 > and noticed that it defined dumpdev to be one of my AmigaDOS
 > partitions.  Could this clobber my AmigaDOS partition?  What should it
 > be, and how do I define it in the config file?  It's not mentioned in
 > either config or options.

"My fault!"  (I think, anyhow.)  This was basically an arithmetic
botch in config... I've committed the following patch, which fixes the
problem.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939

Index: sem.c
===================================================================
RCS file: /mastersrc/netbsd/src/usr.sbin/config/sem.c,v
retrieving revision 1.7
diff -c -r1.7 sem.c
*** sem.c	1997/01/31 22:18:39	1.7
--- sem.c	1997/03/06 22:42:53
***************
*** 606,612 ****
  		 */
  		if (dflt->nv_int != NODEV) {
  			maj = major(dflt->nv_int);
! 			min = (minor(dflt->nv_int) / maxpartitions) + part;
  			d = makedev(maj, min);
  			cp = makedevstr(maj, min);
  		} else
--- 606,613 ----
  		 */
  		if (dflt->nv_int != NODEV) {
  			maj = major(dflt->nv_int);
! 			min = ((minor(dflt->nv_int) / maxpartitions) *
! 			    maxpartitions) + part;
  			d = makedev(maj, min);
  			cp = makedevstr(maj, min);
  		} else