Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib Restrict "out of CHS range" check to...
details: https://anonhg.NetBSD.org/src/rev/1da447941df0
branches: trunk
changeset: 472682:1da447941df0
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue May 04 17:14:55 1999 +0000
description:
Restrict "out of CHS range" check to harddisks.
diffstat:
sys/arch/i386/stand/lib/biosdisk_ll.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9b0b877525c5 -r 1da447941df0 sys/arch/i386/stand/lib/biosdisk_ll.c
--- a/sys/arch/i386/stand/lib/biosdisk_ll.c Tue May 04 17:14:54 1999 +0000
+++ b/sys/arch/i386/stand/lib/biosdisk_ll.c Tue May 04 17:14:55 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: biosdisk_ll.c,v 1.8 1999/04/28 23:24:42 fvdl Exp $ */
+/* $NetBSD: biosdisk_ll.c,v 1.9 1999/05/04 17:14:55 fvdl Exp $ */
/*
* Copyright (c) 1996
@@ -120,7 +120,7 @@
int64_t sec;
} ext;
- if ((dblk + num) >= d->chs_sectors) {
+ if ((d->dev & 0x80) && (dblk + num) >= d->chs_sectors) {
if (!(d->flags & BIOSDISK_EXT13))
return -1;
ext.size = sizeof(ext);
Home |
Main Index |
Thread Index |
Old Index