8808fe53de
- Add in 64-md-raid.rules to compensate for it no longer being in udev (bz581905) - Remove mdadm.static as its no longer used in initrd creation
12 lines
556 B
Diff
12 lines
556 B
Diff
--- mdadm-3.1.3-git07202010/Grow.c.read 2010-07-20 12:18:12.000000000 -0400
|
|
+++ mdadm-3.1.3-git07202010/Grow.c 2010-07-20 12:55:26.816805170 -0400
|
|
@@ -1820,7 +1820,7 @@ int Grow_restart(struct supertype *st, s
|
|
}
|
|
/* There should be a duplicate backup superblock 4k before here */
|
|
if (lseek64(fd, -4096, 1) < 0 ||
|
|
- read(fd, &bsb2, 4096) != 4096)
|
|
+ read(fd, &bsb2, sizeof(bsb2)) != sizeof(bsb2))
|
|
goto second_fail; /* Cannot find leading superblock */
|
|
if (bsb.magic[15] == '1')
|
|
bsbsize = offsetof(struct mdp_backup_super, pad1);
|