1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

get pd_type from inquiry data itself

This commit is contained in:
Matt Jacob 2000-01-16 20:15:43 +00:00
parent b1e7821bcb
commit 31faeddf80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56122

View File

@ -660,7 +660,7 @@ cam_real_open_device(const char *path, int flags, struct cam_device *device,
"%s: %s", func_name, func_name, strerror(errno));
goto crod_bailout;
}
device->pd_type = ccb.cgd.pd_type;
device->pd_type = SID_TYPE(&ccb.cgd.inq_data);
bcopy(&ccb.cgd.inq_data, &device->inq_data,
sizeof(struct scsi_inquiry_data));
device->serial_num_len = ccb.cgd.serial_num_len;