Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 10:30:37 -0500 (EST)
From:      John Baldwin <john@baldwin.cx>
To:        qa@FreeBSD.org
Subject:   sysinstall fstab bug
Message-ID:  <200211201530.gAKFUbjG001578@laptop.baldwin.cx>

next in thread | raw e-mail | index | archive | help
sysinstall currently is using /dev/acd0c for /cdrom in the /etc/fstab it
generates, but in 5.0 it should really be using /dev/acd0 w/o using a
"fake" BSD 'c' partition.  I think this patch will fix it but it hasn't
been tested yet.

Index: devices.c
===================================================================
RCS file: /usr/cvs/src/usr.sbin/sysinstall/devices.c,v
retrieving revision 1.142
diff -u -r1.142 devices.c
--- devices.c	13 Nov 2002 05:39:57 -0000	1.142
+++ devices.c	20 Nov 2002 15:20:53 -0000
@@ -61,13 +61,13 @@
     char *description;
     int major, minor, delta, max;
 } device_names[] = {
-    { DEVICE_TYPE_CDROM,	"cd%dc",	"SCSI CDROM drive",	15, 2, 8, 4 				},
-    { DEVICE_TYPE_CDROM,	"mcd%da",	"Mitsumi (old model) CDROM drive",	29, 0, 8, 4	 	},
-    { DEVICE_TYPE_CDROM,	"scd%da",	"Sony CDROM drive - CDU31/33A type",	45, 0, 8, 4 		},
+    { DEVICE_TYPE_CDROM,	"cd%d",	"SCSI CDROM drive",	15, 2, 8, 4 				},
+    { DEVICE_TYPE_CDROM,	"mcd%d",	"Mitsumi (old model) CDROM drive",	29, 0, 8, 4	 	},
+    { DEVICE_TYPE_CDROM,	"scd%d",	"Sony CDROM drive - CDU31/33A type",	45, 0, 8, 4 		},
 #ifdef notdef
-    { DEVICE_TYPE_CDROM,	"matcd%da",	"Matsushita CDROM ('sound blaster' type)", 46, 0, 8, 4 		},
+    { DEVICE_TYPE_CDROM,	"matcd%d",	"Matsushita CDROM ('sound blaster' type)", 46, 0, 8, 4 		},
 #endif
-    { DEVICE_TYPE_CDROM,	"acd%dc",	"ATAPI/IDE CDROM",	117, 0, 8, 4				},
+    { DEVICE_TYPE_CDROM,	"acd%d",	"ATAPI/IDE CDROM",	117, 0, 8, 4				},
     { DEVICE_TYPE_TAPE, 	"rsa%d",	"SCSI tape drive",	14, 0, 16, 4				},
     { DEVICE_TYPE_TAPE, 	"rwt%d",	"Wangtek tape drive",	10, 0, 1, 4				},
     { DEVICE_TYPE_DISK, 	"da%d",		"SCSI disk device",	13, 65538, 8, 16			},

-- 
John Baldwin <jhb@FreeBSD.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-qa" in the body of the message




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