Bug 182960 - sys-fs/mdadm: Adding udev-rules to create symlinks /dev/disk/by-*/* for RAID-device and filesystem on it
Bug#: 182960 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: zzam@gentoo.org
Component: Ebuilds
URL: 
Summary: sys-fs/mdadm: Adding udev-rules to create symlinks /dev/disk/by-*/* for RAID-device and filesystem on it
Keywords:  
Status Whiteboard: 
Opened: 2007-06-23 08:56 0000
Description:   Opened: 2007-06-23 08:56 0000
Please add the attached udev rules file to mdadm-ebuild. It uses the new
--export option so will only work with versions starting ~2.6.2. 
suse calls the file 64-md-raid.rules (and so it is called in udev tarball).

It will generate these symlinks in /dev:

/dev/disk/by-id/md-name-NAME
/dev/disk/by-id/md-uuid-UUID
(if NAME/UUID of raid device are set)

and:
/dev/disk/by-uuid/UUID
/dev/disk/by-label/LABEL
(if filesystem on raid device has UUID/LABEL set).

------- Comment #1 From Matthias Schwarzott 2007-06-23 08:56:37 0000 -------
Created an attachment (id=122875) [details]
64-md-raid.rules

------- Comment #2 From SpanKY 2007-06-23 15:20:38 0000 -------
shouldnt we get this merged into mdadm mainline ?
http://cgi.cse.unsw.edu.au/~neilb/mdadm

------- Comment #3 From Matthias Schwarzott 2007-06-27 10:20:59 0000 -------
+1

udev-tarball contains this file, but I think merging it into mdadm sources
could be good.

------- Comment #4 From Robin Johnson 2007-10-03 09:17:51 0000 -------
going into mdadm-2.6.3-r2.