Jiri,
one more thing. I'd like to discuss this:
It think if you read a label with libmbr, then make no changes and
write it,
you should not get any changes on your disk. I don't think this is the
case.
As an example, you will loose any partition flags besides 0x80. I think
you
need to be really careful when messing with the label, which could be
created by other OSes and you don't have to understand all their
features
and constraints.
OK, will fix that.
I said I would fix it, since I found parted has some flags. But I tried
applying almost all flags to MBR partition and none of them made any
difference regarding the status byte. What I mean is this:
http://www.gnu.org/software/parted/manual/html_chapter/parted_2.html#SEC28
None of those flags apart from 'boot' change the status field. And I
couldn't find any other source that would say there are any other flags in
use.
I get your point of saving previous data, but I just want to know if you
have any more info on this. I could incorporate that into the library.
By the way, to save the status byte I will need at least another byte in
the mbr_part_t structure. Just FYI.
Dominik
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel