mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 01:30:43 +00:00
Due to unknown reasons, Disk_Names() returns SCSI CDROM as a valid
disk. This is main reason why sysinstall presents SCSI CDROM to available disks in Fdisk/Label menu. In addition, adding a blank SCSI CDROM to the menu generates floating point exception in sparc64. Disk_Names() just extracts sysctl "kern.disks". Why GEOM treats SCSI CDROM as a disk is beyond me and that should be investigated. For temporary workaround, ignore SCSI CDROM device. PR: sparc64/72962 Tested by: R. Tyler Ballance < tyler AT tamu DOT edu> MFC after: 1 week
This commit is contained in:
parent
2d25239038
commit
45ae467e85
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139168
@ -457,6 +457,20 @@ skipif:
|
||||
if (!strncmp(names[i], "md", 2))
|
||||
continue;
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* Due to unknown reasons, Disk_Names() returns SCSI CDROM as a
|
||||
* valid disk. This is main reason why sysinstall presents SCSI
|
||||
* CDROM to available disks in Fdisk/Label menu. In addition,
|
||||
* adding a blank SCSI CDROM to the menu generates floating point
|
||||
* exception in sparc64. Disk_Names() just extracts sysctl
|
||||
* "kern.disks". Why GEOM treats SCSI CDROM as a disk is beyond
|
||||
* me and that should be investigated.
|
||||
* For temporary workaround, ignore SCSI CDROM device.
|
||||
*/
|
||||
if (!strncmp(names[i], "cd", 2))
|
||||
continue;
|
||||
|
||||
d = Open_Disk(names[i]);
|
||||
if (!d) {
|
||||
msgDebug("Unable to open disk %s\n", names[i]);
|
||||
|
@ -457,6 +457,20 @@ skipif:
|
||||
if (!strncmp(names[i], "md", 2))
|
||||
continue;
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* Due to unknown reasons, Disk_Names() returns SCSI CDROM as a
|
||||
* valid disk. This is main reason why sysinstall presents SCSI
|
||||
* CDROM to available disks in Fdisk/Label menu. In addition,
|
||||
* adding a blank SCSI CDROM to the menu generates floating point
|
||||
* exception in sparc64. Disk_Names() just extracts sysctl
|
||||
* "kern.disks". Why GEOM treats SCSI CDROM as a disk is beyond
|
||||
* me and that should be investigated.
|
||||
* For temporary workaround, ignore SCSI CDROM device.
|
||||
*/
|
||||
if (!strncmp(names[i], "cd", 2))
|
||||
continue;
|
||||
|
||||
d = Open_Disk(names[i]);
|
||||
if (!d) {
|
||||
msgDebug("Unable to open disk %s\n", names[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user