sync with vbox source (Partition.c)