From: deraadt Date: Thu, 5 Dec 1996 13:12:11 +0000 (+0000) Subject: if block size is > 2048, set it to 2048. atapi drives that lie! X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4ff3a4f0fe9f66a3227057d2bc41b5a517f0cfd3;p=openbsd if block size is > 2048, set it to 2048. atapi drives that lie! --- diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c index 618073d64b2..15113b3d50b 100644 --- a/sys/dev/atapi/acd.c +++ b/sys/dev/atapi/acd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acd.c,v 1.15 1996/12/05 13:11:21 deraadt Exp $ */ +/* $OpenBSD: acd.c,v 1.16 1996/12/05 13:12:11 deraadt Exp $ */ /* * Copyright (c) 1996 Manuel Bouyer. All rights reserved. @@ -1047,6 +1047,8 @@ acd_size(acd, flags) ATAPI_DEBUG_PRINT(("acd_size: %ld %ld\n", acd->params.blksize, acd->params.disksize)); + if (acd->params.blksize > 2048) + acd->params.blksize = 2048; return acd->params.disksize; }