From f334aa3e6e24aadb3f925e9fbbf01cbfca470f2b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 15 Jul 2013 13:12:18 +0200 Subject: [PATCH] fix scsi inquiry command I got wrong results if command is longer than 6 bytes. --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 26072619..f1369279 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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";