# Re: \[PATCH 0/1\] RFC: Use /dev/md/X as default name

- From: Jes Sorensen \<hidden\>
- Date: 2015-03-04 15:57:07 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2015/03/6629147
- Thread: https://ratatoskr.run/linux-raid/2015/03/6629147/t.md

```text
NeilBrown [ref] writes:
> On Mon, 02 Mar 2015 11:32:16 -0500 Jes Sorensen [ref]
>> Neil,
>> 
>> Finally had time to go back and look at this - I don't quite understand
>> your request here.
>> 
>> As far as I can see, the above code isn't run at all during device
>> creation, so I don't get how modifying it as you suggest will make
>> /dev/md/111 appear if I create /dev/md111?
>> 
>> Cheers,
>> Jes
>
> Wheels within wheels of deception and indirection....
>
> mdadm doesn't create the devices directly, udev does that.
>
> IMPORT{program}="BINDIR/mdadm --detail --export $devnode"
> ENV{DEVTYPE}=="disk", ENV{MD_DEVNAME}=="?*", SYMLINK+="md/$env{MD_DEVNAME}"
>
>
> So the symlink from /dev/md gets created iff "mdadm --detail --export"
> reports an MD_DEVNAME.
>
> Hence the change suggested.
>
> mdadm *can* create the devices itself, but only if udev isn't running, or
> mdamd has been explicitly told to ignore udev.  Normally that doesn't happen.

Ahhh, I didn't see anything happening on my system, but it may be the
RHEL/Fedora udev rules file is missing something. I'll have to take a
closer look there!

Thanks!
Jes
```
