Commit Graph

72 Commits

Author SHA1 Message Date
NeilBrown
8844e29149 Merge branch 'master' in devel-3.0 2009-03-10 16:47:02 +11:00
NeilBrown
388953d27c Release mdadm-2.6.9 2009-03-10 16:38:37 +11:00
NeilBrown
6c40598f59 Merge branch 'master' into devel-3.0 2009-02-02 11:09:09 +11:00
Bernhard Reutner-Fischer
2df1f26911 mdadm fix compilation for uClibc
2008-12-08  Bernhard Reutner-Fischer  <rep.dot.nop@gmail.com>

	* Makefile (dadm.uclibc): Remove misspelled and unneeded rule.
	* md5.h: Include stdint.h for uClibc.
	* mdadm.h: uClibc defines __UCLIBC__. If uClibc has LFS off
	then use lseek instead of lseek64.

Signed-off-by:  Bernhard Reutner-Fischer  <rep.dot.nop@gmail.com>
2009-02-02 09:53:51 +11:00
Dan Williams
88c32bb1ec imsm: validate arrays being created against firmware capabilities
These checks are only enabled when platform support for imsm is found,
i.e. ahci driver is loaded and talking to an Intel(R) controller, and
the option rom header is located.

They can be turned off by setting the environment variable
IMSM_NO_PLATFORM to 1.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-12-08 16:59:18 -07:00
NeilBrown
25956fef10 Makefile: install udev file into $DESTDIR
Forgot the $DESTDIR in the install target :-(

Signed-off-by: NeilBrown <neilb@suse.de>
2008-11-07 14:46:50 +11:00
Dan Williams
f64165f757 config: add 'containers' as a DEVICE keyword
Add anything that looks like a container in /proc/mdstat to the devlist

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2008-11-04 20:50:39 +11:00
NeilBrown
757a5d74ff Add udev rules file for mdadm.
This is based on the rules from openSUSE 11.1-rc3.
2008-11-04 20:50:39 +11:00
NeilBrown
0febf9a94d Makefile: Include bitmap.o in mdmon
A recent change causes mdmon to appear to need 'bitmap_sectors', which
is in bitmap.o.

Signed-off-by: NeilBrown <neilb@suse.de>
2008-10-27 09:57:30 +11:00
Dan Williams
883a6142e6 mdmon: wait after trying to kill
Now that mdmon handles sigterm if another monitor wants to take over it
should wait until all managed arrays are clean.  So make WaitClean()
available to mdmon and teach try_kill_monitor() to wait on each subarray
in the container.

...since we may be communicating with a dieing process, we need to
block SIGPIPE earlier.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-10-15 14:43:57 -07:00
Dan Williams
3d2c4fc7b6 trivial warn_unused_result squashing
Made the mistake of recompiling the F9 mdadm rpm which has a patch to
remove -Werror and add "-Wp,-D_FORTIFY_SOURCE -O2" which turns on lots
of errors:

config.c:568: warning: ignoring return value of asprintf
Assemble.c:411: warning: ignoring return value of asprintf
Assemble.c:413: warning: ignoring return value of asprintf
super0.c:549: warning: ignoring return value of posix_memalign
super0.c:742: warning: ignoring return value of posix_memalign
super0.c:812: warning: ignoring return value of posix_memalign
super1.c:692: warning: ignoring return value of posix_memalign
super1.c:1039: warning: ignoring return value of posix_memalign
super1.c:1155: warning: ignoring return value of posix_memalign
super-ddf.c:508: warning: ignoring return value of posix_memalign
super-ddf.c:645: warning: ignoring return value of posix_memalign
super-ddf.c:696: warning: ignoring return value of posix_memalign
super-ddf.c:715: warning: ignoring return value of posix_memalign
super-ddf.c:1476: warning: ignoring return value of posix_memalign
super-ddf.c:1603: warning: ignoring return value of posix_memalign
super-ddf.c:1614: warning: ignoring return value of posix_memalign
super-ddf.c:1842: warning: ignoring return value of posix_memalign
super-ddf.c:2013: warning: ignoring return value of posix_memalign
super-ddf.c:2140: warning: ignoring return value of write
super-ddf.c:2143: warning: ignoring return value of write
super-ddf.c:2147: warning: ignoring return value of write
super-ddf.c:2150: warning: ignoring return value of write
super-ddf.c:2162: warning: ignoring return value of write
super-ddf.c:2169: warning: ignoring return value of write
super-ddf.c:2172: warning: ignoring return value of write
super-ddf.c:2176: warning: ignoring return value of write
super-ddf.c:2181: warning: ignoring return value of write
super-ddf.c:2686: warning: ignoring return value of posix_memalign
super-ddf.c:2690: warning: ignoring return value of write
super-ddf.c:3070: warning: ignoring return value of posix_memalign
super-ddf.c:3254: warning: ignoring return value of posix_memalign
bitmap.c:128: warning: ignoring return value of posix_memalign
mdmon.c:94: warning: ignoring return value of write
mdmon.c:221: warning: ignoring return value of pipe
mdmon.c:327: warning: ignoring return value of write
mdmon.c:330: warning: ignoring return value of chdir
mdmon.c:335: warning: ignoring return value of dup
monitor.c:415: warning: rv may be used uninitialized in this function

...some of these like the write() ones are not so trivial so save those
fixes for the next patch.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-10-15 14:15:52 -07:00
NeilBrown
1cccd683f3 Disable compilation with diet-libc
We need posix_memalign (or something similar) which diet-libc does not
provide.
2008-09-18 14:33:37 +10:00
Dan Williams
d253482527 Makefile: Add mdmon header dependencies
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-09-15 20:58:41 -07:00
NeilBrown
37ea3936a6 Merge branch 'master' into from-stable
Conflicts:

	Create.c
	Manage.c
2008-08-07 14:12:25 +10:00
Doug Ledford
0bc38b5020 Add support for distribution specific build extensions
Signed-off-by: Doug Ledford <dledford@redhat.com>
2008-07-24 12:34:34 -04:00
Jacek Danecki
4ad866b132 install mdmon to the same location as mdadm
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-07-21 17:42:12 -07:00
Neil Brown
370ac380fd Merge branch 'master' into devel-3.0
Conflicts:

	Makefile
2008-06-19 16:38:37 +10:00
Neil Brown
7702a58b90 Include sysfs.c in mdassemble.auto
and tidy up Makefile a bit.
2008-05-19 12:07:47 +10:00
Neil Brown
7815fbfef2 "make everything" now also makes mdassemble.auto
This is
  make MDASSEMBLE_AUTO=1 mdassemble.static

so we now find compile bugs more easily.
2008-05-19 12:07:43 +10:00
Dan Williams
b109d92863 start fleshing out socket code, ping monitor to see if it is alive
From: Dan Williams <dan.j.williams@intel.com>

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:52 +10:00
Neil Brown
549e9569c6 Merge mdmon 2008-05-15 16:48:37 +10:00
Dan Williams
f7dd881f90 handle Manage_subdevs() for 'external' arrays
From: Dan Williams <dan.j.williams@intel.com>

1/ Block attempts to add/remove devices from container members
2/ Forward add/remove requests to containers

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:35 +10:00
Dan Williams
cdddbdbca0 imsm: initial Intel(R) Matrix Storage Manager support
From: Dan Williams <dan.j.williams@intel.com>

The following now work:
--examine
--examine --brief

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:22 +10:00
Dan Williams
a322f70c41 Initial DDF support code.
Create a ddf array by naming the device /dev/ddf* or
specifying metadata 'ddf'.

If ddf is specified with no level, assume a container (indeed,
anything else would be wrong).

**Need to use text_Version to set external metadata...

More ddf support

Load a ddf container.  Now
   --examine /dev/ddf
works.
super-ddf: fix compile warning

From: Dan Williams <dan.j.williams@intel.com>

super-ddf.c:723: format %lu expects type long unsigned int, but argument 3 has type unsigned int

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:14 +10:00
Neil Brown
11fcec12ef Add crc32 files.
For ddf.
2008-05-15 16:48:10 +10:00
Neil Brown
5624768a4c Compile with various -O flags for testing.
"make everything" now compiles with -O2 and -Os to increase coverage
for compiler generated warnings.
2007-05-22 09:46:36 +10:00
Neil Brown
f783ca4fa1 Don't include uclibc as part of 'everything'
As I cannot compile in on x86-64.
Also, small dietlibc fix
2007-02-22 14:59:31 +11:00
Neil Brown
8382f19bdc Add new mode: --incremental
--incremental allows arrays to be assembled one device at a time.
This is expected to be used with udev.
2006-12-21 17:10:52 +11:00
Luca Berra
435d4ebb2e Mdassemble improvements
From: Luca Berra <bluca@comedia.it>

- Fix a bug where mdassemble didn't close a filedescriptor and so couldn't assembele
  stacked arrays.
- Allow mdassemble, when run a second time, to mark all arrays as writable.
  This is useful if they are started read-only as is best at boot-time.
2006-10-16 15:26:53 +10:00
martin f. krafft
4e9b583928 Allow CONFFILE2 to be overridden during make invocation. 2006-06-02 20:53:02 +10:00
martin f krafft
77e521ce74 CPPFLAGS gets used automatically on implicit rules.
Take it out for cosmetic reasons to prevent duplicate -DDEBIAN.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-06-02 20:47:29 +10:00
Neil Brown
8268ed7403 Remove libssl dependancy and always use sha1.c code
Apparently there are license issues with openssl, so
just use sha1.c always.   This means we can get rid of
SHA1.c

Signed-off-by: Neil Brown <neilb@suse.de>
2006-06-02 06:12:19 +00:00
Neil Brown
c97be4db86 Improve compiling for static binaries.
Have "#ifdef STATIC" in config.c, and the 'rmconf' target
was a mess.
Instead, create 'pwgr.c' with stub routines for those unavailable
when statically compiled, and include that in STATICOBJ

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 04:09:21 +00:00
Neil Brown
3bb59d4044 Add uninstall target to Makefile
From: "Dirk Jagdmann" <jagdmann@gmail.com>

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 02:18:22 +00:00
Neil Brown
ff7754ede3 New install-* targets for installing differently compiled mdadms
e.g. install-static to install the statically compiled version, etc.

From: "Dirk Jagdmann" <jagdmann@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 02:18:22 +00:00
Neil Brown
1377730fc4 Makefile improvements for static linking.
From: "Dirk Jagdmann" <jagdmann@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 02:18:22 +00:00
Neil Brown
b56c363090 add CFLAGS to mdassemble build and fix a couple of non-returning functions
pass CFLAGS to mdassemble build, enabling -Wall -Werror showed some
issues also fixed by the patch.

From: Luca Berra <bluca@vodka.it>
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 02:06:32 +00:00
Neil Brown
d1f1011b94 Make sure everything compiles...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 04:28:33 +00:00
Neil Brown
05697ec1e2 Make homehost information appear in superblock.
When an array is created, if the homehost is know,
the superblock gets it, either in the uuid, (via sha1)
or in the name field.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 06:56:06 +00:00
Neil Brown
5bbb48424b Allow default creation info to to be stored in mdadm.conf
Default owner, group, mode and 'auto' flag can be given in a 'CREATE' line.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 06:02:41 +00:00
Neil Brown
39c5a90983 Release 2.4-pre1
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-20 03:50:25 +00:00
Neil Brown
e86c9dd6d8 Initial reshape support
Needs work for other levels etc.

Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-13 05:51:32 +00:00
Neil Brown
1e0d770c0f Release some compile fixes.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-06 04:18:12 +00:00
Neil Brown
f3c7fda661 Release 2.2
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-09 04:55:02 +00:00
Neil Brown
0ff1a18562 Guides on how to use mdadm with initramfs
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:56:42 +00:00
Neil Brown
c06487ce20 Improve option parsing
stuff

====Do Not Remove====
Status: ok
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:54:33 +00:00
Neil Brown
8431b2b286 Getting ready for 2.0 release...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 02:26:37 +00:00
Neil Brown
c9fae71049 Support cross-compiling in Makefile
Thanks to "Anthony Russello" <russello@iomega.com>

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-18 04:28:10 +00:00
Neil Brown
c7654afc29 Fix compiling of mdassemble
(again).

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:49:05 +00:00
Neil Brown
ccf44f3272 Add man page for mdassemble
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:42:25 +00:00