r344 - mdadm/trunk/debian/patches
madduck at users.alioth.debian.org
madduck at users.alioth.debian.org
Tue May 22 09:30:58 UTC 2007
Author: madduck
Date: 2007-05-22 09:30:58 +0000 (Tue, 22 May 2007)
New Revision: 344
Modified:
mdadm/trunk/debian/patches/99-init-avail-FIX.dpatch
Log:
replace 99-init-avail-FIX patch with upstream patch
Modified: mdadm/trunk/debian/patches/99-init-avail-FIX.dpatch
===================================================================
--- mdadm/trunk/debian/patches/99-init-avail-FIX.dpatch 2007-05-22 09:30:41 UTC (rev 343)
+++ mdadm/trunk/debian/patches/99-init-avail-FIX.dpatch 2007-05-22 09:30:58 UTC (rev 344)
@@ -8,12 +8,17 @@
diff -urNad mdadm-2.6.2~/Detail.c mdadm-2.6.2/Detail.c
--- mdadm-2.6.2~/Detail.c 2007-05-21 06:25:50.000000000 +0200
+++ mdadm-2.6.2/Detail.c 2007-05-21 14:41:40.000000000 +0200
-@@ -59,7 +59,7 @@
- void *super = NULL;
- int rv = test ? 4 : 1;
- int avail_disks = 0;
-- char *avail;
-+ char *avail = NULL;
-
- if (fd < 0) {
- fprintf(stderr, Name ": cannot open %s: %s\n",
+@@ -377,12 +377,12 @@ This is pretty boring
+
+ if (brief > 1 && devices) printf("\n devices=%s", devices);
+ if (brief) printf("\n");
+-out:
+ if (test &&
+ !enough(array.level, array.raid_disks, array.layout,
+ 1, avail, avail_disks))
+ rv = 2;
+
++out:
+ close(fd);
+ return rv;
+ }
More information about the pkg-mdadm-commits
mailing list