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

« back to all changes in this revision

Viewing changes to Grow.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:
867
867
{
868
868
        int i, j;
869
869
        int old_disks;
870
 
        int err = 0;
871
870
        unsigned long long *offsets;
872
871
 
873
872
        if (info->delta_disks < 0)
960
959
                                    fd, __le64_to_cpu(bsb.devstart)*512,
961
960
                                    0, __le64_to_cpu(bsb.length)*512)) {
962
961
                        /* didn't succeed, so giveup */
963
 
                        return -1;
 
962
                        return 1;
964
963
                }
965
964
 
966
965
                /* Ok, so the data is restored. Let's update those superblocks. */
979
978
                /* And we are done! */
980
979
                return 0;
981
980
        }
982
 
        return err;
 
981
        return 1;
983
982
}