]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 25 Apr 2011 13:23:37 +0000 (15:23 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 25 Apr 2011 13:23:37 +0000 (15:23 +0200)
match the one used by mdadm.

ChangeLog
grub-core/disk/mdraid_linux.c

index cd791308cb39f81c0bd0bc1803c610bf0d943bd7..2de8578ff16b8836a0612dfbe99de24a7c05d31e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
+       match the one used by mdadm.
+
 2011-04-21  Colin Watson  <cjwatson@ubuntu.com>
 
        * po/README: Add instructions for creating po/LINGUAS.
index 691d100b893ea533882a03da502ba7ae7c8fb735..0e2d85009f2b4d3fc2546f35f0ff38c4c55a9f51 100644 (file)
@@ -221,10 +221,10 @@ grub_mdraid_detect (grub_disk_t disk, struct grub_raid_array *array,
       return grub_errno;
 
   uuid = (grub_uint32_t *) array->uuid;
-  uuid[0] = sb.set_uuid0;
-  uuid[1] = sb.set_uuid1;
-  uuid[2] = sb.set_uuid2;
-  uuid[3] = sb.set_uuid3;
+  uuid[0] = grub_swap_bytes32 (sb.set_uuid0);
+  uuid[1] = grub_swap_bytes32 (sb.set_uuid1);
+  uuid[2] = grub_swap_bytes32 (sb.set_uuid2);
+  uuid[3] = grub_swap_bytes32 (sb.set_uuid3);
 
   *start_sector = 0;