Re: [PATCH 1/6] New udev rule for using mdadm for isw_raid_member

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

 



Hans de Goede wrote:

If you want to get mdadm isw support testable in F-11 that would be a good
idea yes.

Here is the patch:

diff --git a/super-intel.c b/super-intel.c
index b47371e..904b0e4 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -742,6 +742,19 @@ static void brief_examine_super_imsm(struct supertype *st)
       }
}

+static void export_examine_super_imsm(struct supertype *st)
+{
+       struct mdinfo info;
+       char nbuf[64];
+
+       getinfo_super_imsm(st, &info);
+       fname_from_uuid(st, &info, nbuf, ':');
+ + printf("MD_LEVEL=container\n");
+    printf("MD_UUID=%s\n", nbuf+5);
+    printf("MD_DEVICES=%u\n", ((struct intel_super*) st->sb)->anchor->num_disks);
+}
+
static void detail_super_imsm(struct supertype *st, char *homehost)
{
       struct mdinfo info;
@@ -4418,6 +4431,7 @@ struct superswitch super_imsm = {
#ifndef        MDASSEMBLE
       .examine_super  = examine_super_imsm,
       .brief_examine_super = brief_examine_super_imsm,
+       .export_examine_super = export_examine_super_imsm,
       .detail_super   = detail_super_imsm,
       .brief_detail_super = brief_detail_super_imsm,
       .write_init_super = write_init_super_imsm,

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux