Skip to content

Commit 7ce4cad

Browse files
author
Christian Svensson
committed
fix(tcgdiskstat): Increase INQUIRY buffer
For page 83h the result can be larger than 128 bytes, so increase it to A Good Enough (TM) value.
1 parent e2dce48 commit 7ce4cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/drive/sgio/ops.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func SCSIInquiry(fd uintptr) (*InquiryResponse, error) {
157157
}
158158
sn := respBuf[4 : 4+snHdr.Length]
159159

160-
respBuf = make([]byte, 128)
160+
respBuf = make([]byte, 2048)
161161
cdb = CDB6{SCSI_INQUIRY}
162162
cdb[1] = 0x1 /* Request VPD page 0x83 for device ID */
163163
cdb[2] = 0x83

0 commit comments

Comments
 (0)