artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c27f4f
)
if block size is > 2048, set it to 2048. atapi drives that lie!
author
deraadt
<deraadt@openbsd.org>
Thu, 5 Dec 1996 13:12:11 +0000
(13:12 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 5 Dec 1996 13:12:11 +0000
(13:12 +0000)
sys/dev/atapi/acd.c
patch
|
blob
|
history
diff --git
a/sys/dev/atapi/acd.c
b/sys/dev/atapi/acd.c
index
618073d
..
15113b3
100644
(file)
--- a/
sys/dev/atapi/acd.c
+++ b/
sys/dev/atapi/acd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: acd.c,v 1.1
5 1996/12/05 13:11:2
1 deraadt Exp $ */
+/* $OpenBSD: acd.c,v 1.1
6 1996/12/05 13:12:1
1 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;
}