mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
get pd_type from inquiry data itself
This commit is contained in:
parent
b1e7821bcb
commit
31faeddf80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56122
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user