- * The preferred location for the map file is /var/run/mdadm.map.
- * However /var/run may not exist or be writable in early boot. And if
- * no-one has created /var/run/mdadm, we still want to survive.
- * So possible locations are:
- * /var/run/mdadm/map /var/run/mdadm.map /dev/.mdadm.map
- * the last, because udev requires a writable /dev very early.
- * We read from the first one that exists and write to the first
- * one that we can.
+ * The best place for the mapfile is /run/mdadm/map. Distros and users
+ * which have not switched to /run yet can choose a different location
+ * at compile time via MAP_DIR and MAP_FILE.