
tables being written on disk: - when counting non-BSD partitions, use part[i], not part[0] - when using full disk for NetBSD, initialise all the fileds of the mbr entries (especially flags) - When converting to on-disk format, if start and size = 0, initialise c/h/s to 0 for both start and end. convert_mbr_chs() would make an entry 0/0/0, 0/0/1 which is not bogus, but not what we really want either.