>>>> I think it is where I should start: write a FreeDOS utility to create and 
>>>> manipulae a GPT. 

>>>I disagree, you can use Linux or Windows to create GPT 
>>>FAT partitions for DOS. So you would want to start by 
>>>DOS being able to use them ;-) 



>> I guess you are right , but I expect the two (kernel to use GPT, and GPT 
>> disk utility)
>> to shrare much code.
> 100% right in the sense that probably all kernel GPT code also appears
> in GPT disk utility.



> 100% wrong in the sense that the kernel GPT code is ~100 lines, maybe
> less.


> the 'utility' to create this is some sort of FDISK. a bit more
> complicated. easy a couple of 1000's lines of code.

> and a bit useless as it can - for now - be replaced by linux/windows
> tools.

what I forgot to mention: GPT detection in the kernel is inherently
safe: whatever bug might hidden in your code, the worst that may
happen is the kernel not booting, or not detecting a partition.

modifying a GPT partition is inherently unsafe, it risks real user data,
so hidden bugs are much more costly.

riskaware users will probably avoid using your GPTDISK tool until
others have have succesful tested it (who again are waiting for others).

Tom



_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to