AC_TYPE_PSINT
AC_TYPE_PSUNSIGNED
+AC_CHECK_TYPES(__u32,,,[#include <asm/types.h>])
AC_SIZEOF_POINTERS_AND_LONG
AC_MANUAL_FORMAT
-xfsprogs-2.8.x
+xfsprogs-2.8.13 (21 September 2006)
- Fix v2 directory checking with holes and unreadable blocks.
- Fix a memory leak in dir2 checking.
-
+ - Update libdisk/md support to work out the stripe width
+ based on (# raid-disks - # parity disks) which
+ doesn't include any spare disks (which we mistakenly did before).
+ Thanks to Shailendra Tripathi's suggestions.
+ - Get the kernel int types of __u32 and friends from <asm/types.h>
+ if we can, otherwise define them ourselves.
+
xfsprogs-2.8.12 (29 August 2006)
- Multi-thread modifications to xfs_repair.
- Updated Polish translation, thanks to Jakub Bogusz.
#include <unistd.h>
#include <sys/types.h>
+#undef HAVE___U32
+#ifdef HAVE___U32
+#include <asm/types.h>
+#else
typedef unsigned char __u8;
typedef signed char __s8;
typedef unsigned short __u16;
typedef signed int __s32;
typedef unsigned long long int __u64;
typedef signed long long int __s64;
+#endif
typedef __u16 __be16;
typedef __u32 __be32;
*/
switch (md.level) {
case 6:
- md.nr_disks--;
+ md.raid_disks--;
/* fallthrough */
case 5:
case 4:
- md.nr_disks--;
+ md.raid_disks--;
/* fallthrough */
case 1:
case 0:
/* Update sizes */
*sunit = md.chunk_size >> 9;
- *swidth = *sunit * md.nr_disks;
+ *swidth = *sunit * md.raid_disks;
*sectalign = (md.level == 4 || md.level == 5 || md.level == 6);
return 1;