Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/scsipi sd(4): increase maximum sector size to ...
details: https://anonhg.NetBSD.org/src-all/rev/0ae9746fe65b
branches: trunk
changeset: 939669:0ae9746fe65b
user: Jonathan A. Kollasch <jakllsch%NetBSD.org@localhost>
date: Sat Sep 26 09:45:54 2020 -0500
description:
sd(4): increase maximum sector size to MAXPHYS
diffstat:
sys/dev/scsipi/sd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e826d943dd09 -r 0ae9746fe65b sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c Fri Sep 25 08:42:57 2020 -0500
+++ b/sys/dev/scsipi/sd.c Sat Sep 26 09:45:54 2020 -0500
@@ -1310,7 +1310,7 @@
sd_validate_blksize(struct scsipi_periph *periph, int len)
{
- if (len >= 256 && powerof2(len) && len <= 4096) {
+ if (len >= 256 && powerof2(len) && len <= MAXPHYS) {
return 1;
}
Home |
Main Index |
Thread Index |
Old Index