git: fdisk - Use heads = 255 on file images

看板DFBSD_commit作者時間16年前 (2009/09/15 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1AhkTJpD (DFBSD_commit)