diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-05 13:12:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-05 13:12:12 +0000 |
commit | e157e8a0c7f4636f39ef78a92ea930e3f472ac48 (patch) | |
tree | 63a0c88c63a843ad3b3a8dbda0c19e0a2752d92b /sys/dev/atapi/acd.c | |
parent | 6b73ece8f93ac997318ff2539a7d1bec768e9dde (diff) |
if block size is > 2048, set it to 2048. atapi drives that lie!
Diffstat (limited to 'sys/dev/atapi/acd.c')
-rw-r--r-- | sys/dev/atapi/acd.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |