qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/17] iscsi: save host block size


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 11/17] iscsi: save host block size
Date: Tue, 13 Dec 2011 13:37:14 +0100

The iSCSI backend already gets the block size from the READ CAPACITY
command it sends.  Save it so that the generic block layer gets it
too.

Signed-off-by: Paolo Bonzini <address@hidden>
---
 block/iscsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/iscsi.c b/block/iscsi.c
index 4e6cf7a..8a0bce9 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -546,6 +546,7 @@ static int iscsi_open(BlockDriverState *bs, const char 
*filename, int flags)
     if (iscsi_url != NULL) {
         iscsi_destroy_url(iscsi_url);
     }
+    bs->host_block_size = iscsilun->block_size;
     return 0;
 
 failed:
-- 
1.7.7.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]