[PATCH v4 10/21] pmem: Dynamically allocate partition numbers