Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
- Allow --force with --grow so '-Gfn1' works (on raid1)
- Replace sprintf calls with snprintf (to quiet diet-libc)
- Add man page for mdassemble
+ - Fix compilation with tinyc
Changes Prior to 1.11.0 release
- Fix embarassing bug which causes --add to always fail.
#define ModeMask 0x1f
#define ModeShift 5
+
+
+#ifdef __TINYC__
+#undef minor
+#undef major
+#undef makedev
+#define minor(x) ((x)&0xff)
+#define major(x) (((x)>>8)&0xff)
+#define makedev(M,m) (((M)<<8) | (m))
+#endif
+
-
struct superswitch *superlist[] = { &super0, &super1, NULL };
struct supertype *super_by_version(int vers, int minor)
free(st);
return NULL;
}
+
+#ifdef __TINYC__
+/* tinyc doesn't optimize this check in ioctl.h out ... */
+unsigned int __invalid_size_argument_for_IOC = 0;
+#endif
+