staging: hv: Add support for >2 TB LUN in storage driver.
Subsystems (2)
PATCH 1/1 staging: hv: Add support for >2 TB LUN in storage driver.
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.
--- drivers/staging/hv/hyperv_storage.h | 1 + drivers/staging/hv/storvsc_drv.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
drivers/staging/hv/hyperv_storage.h +1 -0
@@ -218,6 +218,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 16struct hv_storvsc_request ;
drivers/staging/hv/storvsc_drv.c +2 -0
@@ -701,6 +701,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);
Signature · 1 line
1.7.1
Quoted 5 lines · Mike Sterling
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.Signed-off-by Mike Sterling <[email protected]>
As I'm guessing you want this to show up as being done by [email protected] and not [email protected], can you please resend this from your [email protected] account, or put the proper "From:" line in the patch body as described in the file, Documentation/SubmittingPatches so I can apply it correctly?
Also, please use the proper "Reported-by:" tag for the bug reporter.
Please resend.
greg k-h