ADDPART_FLAG_READONLY
state->parts[slot].flags |= ADDPART_FLAG_READONLY;
if (flags & ADDPART_FLAG_READONLY)