Clarify and fix the intent of the partition-type checking code.

Change-Id: I202dab4ee91208b632bc2086d1e5c387a4c29edd
5 files changed