summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* mdmon: satisfy glibc tls abi requirements with pthreadsDan Williams2010-07-061-3/+11
| | | | | | | | | | | | | Setting up a proper tls descriptor is required to conform to the abi [1]. Until it can be implemented in mdmon use pthreads instead of clone(2) to let glibc handle the details. The old behaviour can be had by un-defining USE_PTHREADS. Note, the "O2" builds need LDFLAGS now to pick up the '-pthread' option. [1]: http://people.redhat.com/drepper/tls.pdf Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* mdmon: prevent allocations due to late bindingDan Williams2010-07-011-1/+2
| | | | | | | | | | | | | | | | Current versions of glibc do not provide a useable interface to clone(2) as it inflicts hidden dependencies on setting up a glibc specific tls descriptor. The dynamic linker trips this dependency and causes mdmon to intermittently fail to load. Resolving all dynamic linking prior to starting the monitor thread appears to mitigate the issue but there is no guarantee that another tls dependency will bite us later. However, while the debate continues with the glibc maintainers it seems prudent to keep this change. It ensures that we do not get into a situation where the monitor thread needs to make a late allocation to resolve a symbol. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Compile-time switch to enable 0.9 metadata as defaultmartin f. krafft2010-05-311-2/+11
| | | | | | | | | | | | | | | | | | | | | | This commit introduces DEFAULT_OLD_METADATA as a preprocessor definition. If defined, it causes mdadm to assume metadata version 0.9 as default. If not defined, version 1.x (currently 1.2) is used as default. The man page mdadm.8 is also modified to reflect the chosen default. The selftests will not work if the old default is chosen. This patch was requested by Debian so they could distribute a current mdadm together with boot loaders that only understand 0.90 metadata for md-raid. Preferred usage is simply make DEFAULT_OLD_METADATA=yes Signed-off-by: martin f. krafft <madduck@debian.org> Signed-off-by: NeilBrown <neilb@suse.de>
* Fixup default definitions of VAR_RUN and ALT_RUNDan Williams2010-04-151-2/+2
| | | | | | | | | I suspect commit c132678b wanted VAR_RUN and ALT_RUN to be suffixed by '/mdadm' to match the defaults in mdadm.h. Cc: Luca Berra <bluca@comedia.it> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* mapfile: if we putting the mapfile in a custom location via ALT_RUN, allowDoug Ledford2010-03-241-1/+2
| | | | | | a custom filename too. Signed-off-by: Doug Ledford <dledford@redhat.com>
* Release mdadm-3.1.2NeilBrown2010-03-101-2/+2
|
* allow redefinition of VAR_RUNLuca Berra2010-03-031-1/+3
| | | | | | | having mdmon socket under var is painful at shutdown time Signed-off-by: Luca Berra <bluca@comedia.it> Signed-off-by: NeilBrown <neilb@suse.de>
* Add _FORTIFY_SOURCE to mdadm.O2 build.NeilBrown2010-03-031-2/+9
| | | | | | | | | | When building mdadm.O2, set _FORTIFY_SOURCE to get more warnings, and also build mdmon.O2 to find warnings in that code too. Then fix the warnings. Suggested-by: Luca Berra <bluca@comedia.it> Signed-off-by: NeilBrown <neilb@suse.de>
* mdmon: allow pid to be stored in different directory.NeilBrown2010-02-041-1/+7
| | | | | | | | /var/run probably doesn't persist from early boot. So if necessary, store in in /lib/init/rw or somewhere else that does persist. Signed-off-by: NeilBrown <neilb@suse.de>
* Move WaitClean from Monitor.c to sysfs.cNeilBrown2009-06-021-1/+1
| | | | | | That way mdmon doesn't need to include Monitor.o Signed-off-by: NeilBrown <neilb@suse.de>
* mdadm.8: Man page updatesNeilBrown2009-06-021-3/+7
| | | | General review and update of mdadm.8
* Merge branch 'master' into devel-3.0NeilBrown2009-05-111-3/+3
|\ | | | | | | | | | | | | | | Conflicts: Build.c mdadm.c mdadm.h super1.c
| * Makefile: use $(CC) more consistently.NeilBrown2009-04-291-3/+3
| | | | | | | | | | Explicitly calling 'gcc' in some rules makes it hard to test with other compilers.
* | Makefile: build 'mdmon' for 'test'NeilBrown2009-04-011-1/+1
| | | | | | | | | | | | Else make test might not prepare everything for running tests.
* | Merge branch 'master' in devel-3.0NeilBrown2009-03-101-4/+7
|\|
| * Release mdadm-2.6.9NeilBrown2009-03-101-4/+7
| |
* | Merge branch 'master' into devel-3.0NeilBrown2009-02-021-3/+0
|\|
| * mdadm fix compilation for uClibcBernhard Reutner-Fischer2009-02-021-3/+0
| | | | | | | | | | | | | | | | | | | | | | 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>
* | imsm: validate arrays being created against firmware capabilitiesDan Williams2008-12-081-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Makefile: install udev file into $DESTDIRNeilBrown2008-11-071-1/+1
| | | | | | | | | | | | Forgot the $DESTDIR in the install target :-( Signed-off-by: NeilBrown <neilb@suse.de>
* | config: add 'containers' as a DEVICE keywordDan Williams2008-11-041-2/+2
| | | | | | | | | | | | | | 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>
* | Add udev rules file for mdadm.NeilBrown2008-11-041-1/+4
| | | | | | | | This is based on the rules from openSUSE 11.1-rc3.
* | Makefile: Include bitmap.o in mdmonNeilBrown2008-10-271-1/+1
| | | | | | | | | | | | | | A recent change causes mdmon to appear to need 'bitmap_sectors', which is in bitmap.o. Signed-off-by: NeilBrown <neilb@suse.de>
* | mdmon: wait after trying to killDan Williams2008-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | trivial warn_unused_result squashingDan Williams2008-10-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Disable compilation with diet-libcNeilBrown2008-09-181-1/+4
| | | | | | | | | | We need posix_memalign (or something similar) which diet-libc does not provide.
* | Makefile: Add mdmon header dependenciesDan Williams2008-09-151-1/+2
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Merge branch 'master' into from-stableNeilBrown2008-08-071-0/+6
|\| | | | | | | | | | | | | Conflicts: Create.c Manage.c
| * Add support for distribution specific build extensionsDoug Ledford2008-07-241-0/+6
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | install mdmon to the same location as mdadmJacek Danecki2008-07-211-1/+2
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Merge branch 'master' into devel-3.0Neil Brown2008-06-191-3/+10
|\| | | | | | | | | | | Conflicts: Makefile
| * Include sysfs.c in mdassemble.autoNeil Brown2008-05-191-3/+5
| | | | | | | | and tidy up Makefile a bit.
| * "make everything" now also makes mdassemble.autoNeil Brown2008-05-191-2/+8
| | | | | | | | | | | | | | This is make MDASSEMBLE_AUTO=1 mdassemble.static so we now find compile bugs more easily.
* | start fleshing out socket code, ping monitor to see if it is aliveDan Williams2008-05-151-1/+2
| | | | | | | | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Merge mdmonNeil Brown2008-05-151-2/+11
| |
* | handle Manage_subdevs() for 'external' arraysDan Williams2008-05-151-2/+2
| | | | | | | | | | | | | | | | | | 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>
* | imsm: initial Intel(R) Matrix Storage Manager supportDan Williams2008-05-151-5/+5
| | | | | | | | | | | | | | | | | | | | 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>
* | Initial DDF support code.Dan Williams2008-05-151-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Add crc32 files.Neil Brown2008-05-151-2/+2
|/ | | | For ddf.
* Compile with various -O flags for testing.Neil Brown2007-05-221-2/+14
| | | | | "make everything" now compiles with -O2 and -Os to increase coverage for compiler generated warnings.
* Don't include uclibc as part of 'everything'Neil Brown2007-02-221-1/+2
| | | | | As I cannot compile in on x86-64. Also, small dietlibc fix
* Add new mode: --incrementalNeil Brown2006-12-211-2/+6
| | | | | --incremental allows arrays to be assembled one device at a time. This is expected to be used with udev.
* Mdassemble improvementsLuca Berra2006-10-161-1/+1
| | | | | | | | | 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.
* Allow CONFFILE2 to be overridden during make invocation.martin f. krafft2006-06-021-1/+3
|
* CPPFLAGS gets used automatically on implicit rules. martin f krafft2006-06-021-1/+1
| | | | | | Take it out for cosmetic reasons to prevent duplicate -DDEBIAN. Signed-off-by: Neil Brown <neilb@suse.de>
* Remove libssl dependancy and always use sha1.c codeNeil Brown2006-06-021-8/+5
| | | | | | | | 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>
* Improve compiling for static binaries.Neil Brown2006-05-291-13/+10
| | | | | | | | | 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>
* Add uninstall target to MakefileNeil Brown2006-05-291-0/+3
| | | | | | From: "Dirk Jagdmann" <jagdmann@gmail.com> Signed-off-by: Neil Brown <neilb@suse.de>
* New install-* targets for installing differently compiled mdadmsNeil Brown2006-05-291-1/+15
| | | | | | | 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>
* Makefile improvements for static linking.Neil Brown2006-05-291-3/+6
| | | | | From: "Dirk Jagdmann" <jagdmann@gmail.com> Signed-off-by: Neil Brown <neilb@suse.de>