projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e3276
)
Staging: hv: Add support for >2 TB LUN in storage driver.
author
Mike Sterling
<
[email protected]
>
Tue, 6 Sep 2011 23:10:55 +0000
(16:10 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 6 Sep 2011 23:06:09 +0000
(16:06 -0700)
If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently
report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc.
Thanks to Robert Scheck <
[email protected]
> for reporting the issue.
Reported-by: Robert Scheck <
[email protected]
>
Signed-off-by: Mike Sterling <
[email protected]
>
Signed-off-by: K.Y. Srinivasan <
[email protected]
>
Signed-off-by: Haiyang Zhang <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/hv/storvsc_drv.c
patch
|
blob
|
history
diff --git
a/drivers/staging/hv/storvsc_drv.c
b/drivers/staging/hv/storvsc_drv.c
index 3686d1048e313af18b6b8b40358b2d6621baf383..b0c4e56304e23ac158d657c212c244f57c0e3e38 100644
(file)
--- a/
drivers/staging/hv/storvsc_drv.c
+++ b/
drivers/staging/hv/storvsc_drv.c
@@
-232,6
+232,7
@@
struct vstor_packet {
#define STORVSC_MAX_LUNS_PER_TARGET 64
#define STORVSC_MAX_TARGETS 1
#define STORVSC_MAX_CHANNELS 1
+#define STORVSC_MAX_CMD_LEN 16
struct hv_storvsc_request;
@@
-1440,6
+1441,8
@@
static int storvsc_probe(struct hv_device *device)
host->max_id = STORVSC_MAX_TARGETS;
/* max # of channels */
host->max_channel = STORVSC_MAX_CHANNELS - 1;
+ /* max cmd length */
+ host->max_cmd_len = STORVSC_MAX_CMD_LEN;
/* Register the HBA and start the scsi bus scan */
ret = scsi_add_host(host, &device->device);