~ubuntu-branches/ubuntu/karmic/mdadm/karmic

« back to all changes in this revision

Viewing changes to Detail.c

  • Committer: Package Import Robot
  • Author(s): Scott James Remnant
  • Date: 2007-12-12 22:35:09 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20071212223509-10l2hitpp068jr53
Tags: 2.6.3+200709292116+4450e59-3ubuntu1
* Merge from debian unstable, remaining changes:
 * md activation:
  - We now have a single udev rule for both the real system and the
    initramfs, since doing things differently there will only result in bugs
    and confusion.
  - This rule runs "mdadm --assemble --scan --no-degraded", automatically
    activating any non-degraded device as their components are detected.
  - Drop the mdadm-raid init script, since this does the same thing.
  - Also drop mdadm-startall which uses the mdadm-raid init script, and its
    associated sgml file (thus dropping the build-dep on docbook-to-man)
  - Simplify the configuration, since we always autostart all devices so do
    not need to specify any required root devices, etc.
  - Drop the deprecated mdrun entirely.
  - Since udev autostarts arrays, much of the initramfs script can be
    dropped.
 * Install a new udev rule at 65 which runs vol_id on clean raid arrays.
   This will cause lvm, etc. to be run (since there is vol_id information
   present for the enclosed filesystem).
 * Depend on initramfs-tools, specifically a version that doesn't ship
   the mdrun script.  This way we can clean out a lot of the upgrade handling
   from the initramfs hook.
 * Just get initramfs to load the modules for us

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
                printf("MD_DEVICES=%d\n", array.raid_disks);
138
138
                printf("MD_METADATA=%d.%d\n", array.major_version,
139
139
                       array.minor_version);
140
 
                st->ss->export_super(super);
 
140
                if (super)
 
141
                        st->ss->export_super(super);
141
142
                goto out;
142
143
        }
143
144
 
377
378
 
378
379
        if (brief > 1 && devices) printf("\n   devices=%s", devices);
379
380
        if (brief) printf("\n");
380
 
out:
381
381
        if (test &&
382
382
            !enough(array.level, array.raid_disks, array.layout,
383
383
                    1, avail, avail_disks))
384
384
                rv = 2;
385
385
 
 
386
out:
386
387
        close(fd);
387
388
        return rv;
388
389
}