qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Chage disk serial length from 20 to 36
@ 2016-08-29  7:52 ronyweng
  2016-08-29  8:25 ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: ronyweng @ 2016-08-29  7:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, ronyweng

From: ronyweng <ronyweng@synology.com>

Openstack Cinder assigns volume a 36 characters uuid as serial.
Qemu will shrinks the uuid to 20 characters,
missmatch with original uuid.

Signed-off-by: Rony Weng <ronyweng@synology.com>
---
 hw/scsi/scsi-disk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
index 836a155..0e1bb68 100644
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
@@ -599,8 +599,8 @@ static int scsi_disk_emulate_inquiry(SCSIRequest *req, uint8_t *outbuf)
             }
 
             l = strlen(s->serial);
-            if (l > 20) {
-                l = 20;
+            if (l > 36) {
+                l = 36;
             }
 
             DPRINTF("Inquiry EVPD[Serial number] "
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-30 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29  7:52 [Qemu-devel] [PATCH] Chage disk serial length from 20 to 36 ronyweng
2016-08-29  8:25 ` Paolo Bonzini
2016-08-30 12:08   ` Markus Armbruster
2016-08-30 12:19     ` Paolo Bonzini
2016-08-30 12:44       ` Markus Armbruster
2016-08-30 15:35         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).