Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2000 02:22:09 -0800 (PST)
From:      Bruce Evans <bde@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/isa wd.c src/sys/kern subr_diskmbr.c
Message-ID:  <200001281022.CAA57957@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         2000/01/28 02:22:08 PST

  Modified files:
    sys/i386/isa         wd.c 
    sys/kern             subr_diskmbr.c 
  Log:
  Don't permit generation of non-physical disk addresses.
  
  subr_diskmbr.c:
  Don't "helpfully" enlarge our idea of the disk size to cover all the
  primary slices.  Instead, truncate or discard slices that don't seem
  to be on the disk.  The enlargement was a hack for disks that don't
  report their size (e.g., MFM disks).  It is just wrong in general.
  
  wd.c:
  In CHS mode, limit the disk size so that cylinder numbers >= 65536
  cannot occur.  This normally only affects disks larger than 33.8GB.
  CHS mode accesses to addresses above the limit are now properly broken
  (an error is returned instead of garbage for reads and disk corruption
  for writes).
  
  PR:		15611
  Reviewed by:	readers of freebsd-bugs did not respond to a request
              	for review
  
  Revision  Changes    Path
  1.218     +9 -1      src/sys/i386/isa/wd.c
  1.45      +60 -21    src/sys/kern/subr_diskmbr.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001281022.CAA57957>