Neil Brown <neilb@xxxxxxx> writes: >> So if the minor number is more than 511, the “fd” is assigned to -1, >> if it is in the range of 0 to 511 It is working fine. > > Hmmm... you are right. > Probably due to this: > > blk_register_region(MKDEV(MD_MAJOR, 0), 512, THIS_MODULE, > md_probe, NULL, NULL); > > Try changing the "512" to "1<<MINORBITS". Actually don't change that. That is deliberate. add "CREATE named=yes" to /etc/mdadm.conf, then create arrays with names like /dev/md/whatever-you-like and you can create as many as you like. The arrays are create by effectively doing echo md_whatever-you-like > /sys/module/md_mod/parameters/new_array NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html