~kris/9p

9hist

7afc4431e744190da42a8cf580f172c547a9d7ab — David du Colombier 30 years ago e3f8dcd
Plan 9 from Bell Labs 1996-07-10
1 files changed, 4 insertions(+), 2 deletions(-)

M port/devsd.c
M port/devsd.c => port/devsd.c +4 -2
@@ 103,10 103,11 @@ void
sdinit(void)
{
	Disk *d;
	uchar scratch[0xFF], type;
	uchar *scratch, type;
	int dev, i, nbytes;

	dev = 0;
	scratch = scsialloc(0xFF);
	for(;;) {
		d = &disk[ndisk];
		dev = scsiinv(dev, types, &d->t, &d->inquire, d->id);


@@ 124,7 125,7 @@ sdinit(void)
			 * the peripheral device type and qualifier fields
			 * in the response to an inquiry command are 0x7F.
			 */
			nbytes = sizeof(scratch);
			nbytes = 0xFF;
			memset(scratch, 0, nbytes);
			if(scsiinquiry(d->t, d->lun, scratch, &nbytes) != STok)
				continue;


@@ 179,6 180,7 @@ sdinit(void)
			break;
		}
	}
	scsifree(scratch);
}

Chan*