git: fdisk - Use heads = 255 on file images
    Matthew Dillon 
    dillon at crater.dragonflybsd.org
       
    Mon Sep 14 17:59:46 PDT 2009
    
    
  
commit 8155d6763dd54122ebad3d46f4dcad0501fd7139
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Sep 14 17:54:11 2009 -0700
    fdisk - Use heads = 255 on file images
    
    When operating on a file image use max values for sectors and heads in
    order to match the case where the file might exceed the CHS limit.  By
    convention the CHS fields are set to all 1's in this case.
    
    If our sectors and heads are not set at max values then the all 1's case
    will result in a geometry that overflows the originally specified sectors
    and heads which can brick the BIOS.
Summary of changes:
 sbin/fdisk/fdisk.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8155d6763dd54122ebad3d46f4dcad0501fd7139
-- 
DragonFly BSD source repository
    
    
More information about the Commits
mailing list