[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185574: : di-utils-generic: mapdevfs do not support software RAID devices (/dev/md/0)



Package: di-utils-generic
Version: 0.18

The mapvdevfs program do not support software RAID devices.  On devfs,
these are named /dev/md/0 to /dev/md/255, while on "normal" /dev/ they
are named /dev/md0 to /dev/md255.  The major number is 9:

  % ls -l /dev/md/0
  brw-------    1 root     root       9,   0 Jan  1  1970 /dev/md/0

I tried to use this patch to add support for this, but it fails on the
first device, producing '/dev/md' instead of '/dev/md0'.  It works for
the second device, producing '/dev/md1'.  I suspect the logic must be
extended to handle devices where zero as the minor number should be
included in the device name.

Index: mapdevfs.c
===================================================================
RCS file: /cvs/debian-boot/debian-installer/utils/mapdevfs.c,v
retrieving revision 1.6
diff -u -3 -p -u -r1.6 mapdevfs.c
--- mapdevfs.c  20 Mar 2003 09:05:59 -0000      1.6
+++ mapdevfs.c  20 Mar 2003 09:16:15 -0000
@@ -54,6 +54,7 @@ struct diskentry diskentries[] = {
     {33,   0, "hde"},
     {22,  64, "hdd"},
     {22,   0, "hdc"},
+    { 9,   0, "md"},
     { 8, 240, "sdp"},
     { 8, 224, "sdo"},
     { 8, 208, "sdn"},



Reply to: