Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 1997 03:43:39 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        hackers@freebsd.org
Subject:   a quick slice/devfs patch
Message-ID:  <Pine.BSF.3.95.971203033944.13142B-100000@current1.whistle.com>

next in thread | raw e-mail | index | archive | help

This patch will be needed to handle newer "dangerously dedicated"
systems. Some of you have noticed that that didn't work right.

The patch MIGHT not apply cleanly on what is out there
but hey it's a 4 liner.. I'm sur eyou get the drift :)

*** mbr.c.old	Wed Dec  3 03:31:02 1997
--- mbr.c	Wed Dec  3 03:28:50 1997
***************
*** 176,181 ****
--- 176,185 ----
  			printf ("rejected.. bad flag\n");
  			return(EINVAL);	/* must be either 0 or 0x80 */
  		}
+ 		if ((dp->dp_type) && (dp->dp_size) && (dp->dp_start == 0)) {
+ 			printf("rejected.. Slice includes MBR\n");
+ 			return (EINVAL);
+ 		}
  		if (dp->dp_flag == 0x80)
  			numactive++;
  	}


   ......





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971203033944.13142B-100000>