From 4ff3a4f0fe9f66a3227057d2bc41b5a517f0cfd3 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 5 Dec 1996 13:12:11 +0000 Subject: [PATCH] if block size is > 2048, set it to 2048. atapi drives that lie! --- sys/dev/atapi/acd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.20.1