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/57015d61529b
branches: trunk
changeset: 939758:57015d61529b
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 5f3302cb1f7c -r 57015d61529b 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