svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

Hans Petter Selasky hps at selasky.org
Wed Aug 17 15:16:54 UTC 2016


On 08/17/16 17:05, Dag-Erling Smørgrav wrote:
> Hans Petter Selasky <hps at selasky.org> writes:
>> Not sure if it is an issue, but what will happen if a magic disk has a
>> size less than 4K and uses a block size of 512bytes and the disk
>> alignment gets rounded up to 4K. Will any of logic in this patch fail
>> or hang?
>
> What is a magic disk, and why would you want to install FreeBSD on a
> drive with less than 4096 bytes available?
>

Hi,

My intention is not to install FreeBSD on a 3K disk. My question is pure 
mathematical, if the bsdinstall will segfault, division by zero or 
anything like that, if one should try to install FreeBSD on a 3K disk, 
because you round up the size of the disk to be bigger than it actually is.

Should there be a check for too small disks in there?

--HPS


More information about the svn-src-head mailing list