Adding logic to RAID creation and volume attachments to ensure mdadm properly allocates the device number.