DragonFly commits List (threaded) for 2009-09
DragonFly BSD
DragonFly commits List (threaded) for 2009-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: fdisk - Use heads = 255 on file images


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Sep 2009 17:58:57 -0700 (PDT)

commit 8155d6763dd54122ebad3d46f4dcad0501fd7139
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]