diff options
author | Alec Murphy <alec@checksum.fail> | 2019-09-24 13:31:16 -0400 |
---|---|---|
committer | Alec Murphy <alec@checksum.fail> | 2019-09-24 13:31:16 -0400 |
commit | a807e67c302525cfb1ed8d51f00070a0ed943012 (patch) | |
tree | 74d685e65565c5aabb9b165409f837048a7b88ad | |
parent | 527b324d1fc28620d795e387d208996f2ceda405 (diff) |
Limit max_blk to 2G by default
-rw-r--r-- | DskVIO.HC | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ U8 MountVirtioBlk() bd->type = BDT_VIRTIO_BLK; if (VIRTIO_BLK_MAX_BLK) { - bd->max_blk = VIRTIO_BLK_MAX_BLK; + bd->max_blk = Min(VIRTIO_BLK_MAX_BLK, virtio_blk.blks); } else { @@ -117,4 +117,4 @@ U8 MountVirtioBlk() dv->data_area = bs->bitmap_sects; Free(bs); return dv->drv_let; -}
\ No newline at end of file +} |