mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 20:34:10 +00:00
fix scsi inquiry command
I got wrong results if command is longer than 6 bytes.
This commit is contained in:
parent
29b1952991
commit
f334aa3e6e
@ -995,7 +995,7 @@ sub scsi_inquiry {
|
||||
|
||||
my $buf = "\x00" x 36;
|
||||
my $sensebuf = "\x00" x 8;
|
||||
my $cmd = pack("C x3 C x11", 0x12, 36);
|
||||
my $cmd = pack("C x3 C x1", 0x12, 36);
|
||||
|
||||
# see /usr/include/scsi/sg.h
|
||||
my $sg_io_hdr_t = "i i C C s I P P P I I i P C C C C S S i I I";
|
||||
|
Loading…
Reference in New Issue
Block a user