mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
[SCSI] scsi_debug: fix virtual disk larger than 1TB
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
f381642d8f
commit
73da9c13d4
@ -887,7 +887,7 @@ static int resp_start_stop(struct scsi_cmnd * scp,
|
||||
static sector_t get_sdebug_capacity(void)
|
||||
{
|
||||
if (scsi_debug_virtual_gb > 0)
|
||||
return 2048 * 1024 * scsi_debug_virtual_gb;
|
||||
return 2048 * 1024 * (sector_t)scsi_debug_virtual_gb;
|
||||
else
|
||||
return sdebug_store_sectors;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user