Fdisk formatting of disk having bs=1K fails

2011-04-08 Thread Hans Petter Selasky
Hi, It appears that src/sbin/fdisk.c can only read the MBR of disks having a blocksize different than 512 bytes. When writing a new MBR, the below check fails. Can someone having knowledge into fdisk, fix this issue and MFC to 8- stable? Also I'm curious about the #ifdef __ia64__ . if

Re: Fdisk formatting of disk having bs=1K fails

2011-04-08 Thread Marcel Moolenaar
On Apr 8, 2011, at 12:34 PM, Hans Petter Selasky wrote: Hi, It appears that src/sbin/fdisk.c can only read the MBR of disks having a blocksize different than 512 bytes. When writing a new MBR, the below check fails. Can someone having knowledge into fdisk, fix this issue and MFC to 8-