Set the disk type to SCSI in the in-core label for the whole disk.
This commit is contained in:
parent
49a3215509
commit
ce4fb6afc1
@ -28,7 +28,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: od.c,v 1.41 1998/07/04 22:30:24 julian Exp $
|
||||
* $Id: od.c,v 1.42 1998/07/13 09:53:11 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -370,6 +370,7 @@ od_open(dev, mode, fmt, p, sc_link)
|
||||
|
||||
/* Build label for whole disk. */
|
||||
bzero(&label, sizeof label);
|
||||
label.d_type = DTYPE_SCSI;
|
||||
label.d_secsize = od->params.secsiz;
|
||||
label.d_nsectors = od->params.sectors;
|
||||
label.d_ntracks = od->params.heads;
|
||||
|
@ -14,7 +14,7 @@
|
||||
*
|
||||
* Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992
|
||||
*
|
||||
* $Id: sd.c,v 1.134 1998/07/13 08:23:05 julian Exp $
|
||||
* $Id: sd.c,v 1.135 1998/07/14 11:34:22 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_bounce.h"
|
||||
@ -474,6 +474,7 @@ sd_open(dev_t dev, int mode, int fmt, struct proc *p, struct scsi_link *sc_link)
|
||||
#ifndef SLICE
|
||||
/* Build label for whole disk. */
|
||||
bzero(&label, sizeof label);
|
||||
label.d_type = DTYPE_SCSI;
|
||||
label.d_secsize = sd->params.secsiz;
|
||||
label.d_nsectors = sd->params.sectors;
|
||||
label.d_ntracks = sd->params.heads;
|
||||
|
Loading…
Reference in New Issue
Block a user