If by any chance *someone* would have to edit mdadm for the assignment number 2, here is the git repository :
The function Create in Create.c take cares of creating a new array, the mapping_t pers structure in maps.c take care of mapping “RAID level names” to level numbers. Those numbers are defined in mdadm.h. Of course those numbers should match what’s defined in the kernel in linux/raid/md_u.h…
To compile mdadm, just type “make”.