From: David van Moolenbroek Date: Wed, 17 May 2017 23:16:52 +0000 (+0000) Subject: at_wini: bump hardcoded ATAPI limit to DVD size X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/gitweb.css?a=commitdiff_plain;h=502e7ff95325e67989155cb005ae158e5cf430f9;p=minix.git at_wini: bump hardcoded ATAPI limit to DVD size at_wini was previously hardcoded to present ATAPI devices as having a size of 800 MiB, which was enough for CDs but not for DVDs. This patch increases the device size to 8500 MiB, which should be large enough to cover all DVDs. Change-Id: I7d3192e4ecd0708a655663c1007ff517ed969580 --- diff --git a/minix/drivers/storage/at_wini/at_wini.c b/minix/drivers/storage/at_wini/at_wini.c index 6b1295d0d..b1188ff8a 100644 --- a/minix/drivers/storage/at_wini/at_wini.c +++ b/minix/drivers/storage/at_wini/at_wini.c @@ -1729,8 +1729,9 @@ static int atapi_open(void) /* Should load and lock the device and obtain its size. For now just set the * size of the device to something big. What is really needed is a generic * SCSI layer that does all this stuff for ATAPI and SCSI devices (kjb). (XXX) + * .."something big" is now the maximum size of the largest type of DVD. */ - w_wn->part[0].dv_size = (u64_t)(800L*1024) * 1024; + w_wn->part[0].dv_size = (u64_t)(8500L*1024) * 1024; return(OK); }