diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-08-18 22:59:22 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-08-18 22:59:22 +0000 |
commit | 826ccce5c32876da679bc20dc369e2ea1a823c00 (patch) | |
tree | 1d60d7c6d1e445aa8882b904f51e0c81c675eeff /sys/scsi/scsi_tape.h | |
parent | 3eb14090c70271ebc05919f0fca6ab448350ad99 (diff) |
Only allow blocksizes that are powers of 2 between 512 and 64K. An sd
device that returns any other value via READ CAPACITY or MODE SENSE
will be marked 'drive offline'. Prevents divide by zero when
calculating disk size in MB, amoung other interesting possibilities.
ok mickey@ dlg@ deraadt@ millert@ marco@
Diffstat (limited to 'sys/scsi/scsi_tape.h')
0 files changed, 0 insertions, 0 deletions