summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.5.1mdadm-2.5.1Neil Brown2006-06-168-6/+48
|
* Update Changelog for 2.5.1Neil Brown2006-06-161-1/+17
|
* Fix offsetof macro for 64bit hostsNeil Brown2006-06-162-1/+1
|
* Fix memory leak in monitor modeNeil Brown2006-06-162-0/+13
| | | | | | | When rescanning /dev, we didn't free the old list. Also don't search for device with a number of 0,0 Signed-off-by: Neil Brown <neilb@suse.de>
* Fix up some internalbitmap testsNeil Brown2006-06-163-1/+4
|
* 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>
* Avoid misdetection of overlapping partitions...Neil Brown2006-06-021-0/+19
| | | | | | | | | | | | | | | | As version-0.90 superblock don't record the superblock offset, it is possible for overlapping partitions, or a partition that starts on a 64K boundary in the whole device to result in mis-detection - one partition or device might be detected where the other was intended. To avoid this awkward possibility, we reject assembly attempts which seem to have two devices that are different but have the same version-0.90 superblock. To avoid this problem altogether, switch to version-1 metadata. Signed-off-by: Neil Brown <neilb@suse.de>
* Remove libssl dependancy and always use sha1.c codeNeil Brown2006-06-023-47/+27
| | | | | | | | 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>
* Get --stop to honour --quietNeil Brown2006-06-022-5/+7
| | | | | | | And as a side effect, if --quiet isn't given, stopped devices are reported. Signed-off-by: Neil Brown <neilb@suse.de>
* Yet another include file that someone doesn't like....Neil Brown2006-06-021-1/+17
| | | | | | | It seems byteswap.h isn't universally accepted, so we do it by hand... Signed-off-by: Neil Brown <neilb@suse.de>
* Allow default metadata to be specified in mdadm.confNeil Brown2006-06-024-1/+40
| | | | | | | CREATE metadata=1 in mdadm.conf will cause version-1 superblocks to be the default. Signed-off-by: Neil Brown <neilb@suse.de>
* Don't try to create a new device when using --manage or --growNeil Brown2006-06-021-1/+1
| | | | | | ... as that's just silly! Signed-off-by: Neil Brown <neilb@suse.de>
* Finally (I hope) get byteorder stuff portable.Neil Brown2006-06-021-7/+18
| | | | | | | /usr/include/endian.h and /usr/include/byteswap.h together can give us almost what we need... Signed-off-by: Neil Brown <neilb@suse.de>
* Fix typo in mail message from --monitorNeil Brown2006-06-021-1/+1
| | | | | | From: martin f krafft <madduck@madduck.net> Signed-off-by: Neil Brown <neilb@suse.de>
* Fix error code from examine properly..Neil Brown2006-06-021-5/+6
| | | | | | The last one was wrong :-( Signed-off-by: Neil Brown <neilb@suse.de>
* Improve compiling for static binaries.Neil Brown2006-05-293-17/+27
| | | | | | | | | 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>
* Make add_dev for uclibc return something.Neil Brown2006-05-291-0/+1
| | | | | | As it is now 'int', it needs to. 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>
* check return status of all write/fwrite functions as required by glibc 2.4Neil Brown2006-05-297-12/+25
| | | | | | | | | | | | From: Luca Berra <bluca@vodka.it> glibc 2.4 is pedantic on ignoring return values from fprintf, fwrite and write, so now we check the rval and actually do something with it. in the Grow.c case i only print a warning, since i don't think we can do anything in case we fail invalidating those superblocks (is should never happen, but then...) Signed-off-by: Neil Brown <neilb@suse.de>
* Uclibc has deprecated 'random' so use 'rand' instead.Neil Brown2006-05-291-0/+3
| | | | | | | | | | | glibc says of rand Do not use this function in applications intended to be portable when good randomness is needed. Go figure... Signed-off-by: Neil Brown <neilb@suse.de>
* add CFLAGS to mdassemble build and fix a couple of non-returning functionsNeil Brown2006-05-294-9/+8
| | | | | | | | 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>
* This is to avoid gcc warnings when building with strict-aliasing optimizationNeil Brown2006-05-291-4/+4
| | | | | | | | | fix for another srict-aliasing problem, you can typecast a reference to a void pointer to anything, you cannot typecast a reference to a struct. From: Luca Berra <bluca@vodka.it> Signed-off-by: Neil Brown <neilb@suse.de>
* snprintf size should be at most the size of the bufferNeil Brown2006-05-291-1/+1
| | | | | From: Luca Berra <bluca@vodka.it> Signed-off-by: Neil Brown <neilb@suse.de>
* Release 2.5mdadm-2.5Neil Brown2006-05-2614-11/+203
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Make sure everything compiles...Neil Brown2006-05-264-7/+14
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Support --auto-update-homehostNeil Brown2006-05-264-3/+60
| | | | | | | | | This can be used to bootstrape homehost tagging. If no arrays are found that are tagged, we look for any array and tag it. Signed-off-by: Neil Brown <neilb@suse.de>
* Set default name for v1 array based on device name.Neil Brown2006-05-261-0/+11
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Support auto-assembling of stacked devicesNeil Brown2006-05-263-12/+40
| | | | | | and assorted bugfixes. Signed-off-by: Neil Brown <neilb@suse.de>
* Never remove device nodes of active devices.Neil Brown2006-05-261-1/+3
| | | | | | This is just too risky. Signed-off-by: Neil Brown <neilb@suse.de>
* Improve names reported by --examine --briefNeil Brown2006-05-262-4/+20
| | | | | | | Instead of depending (too much) on what is in /dev, we make names based on the content of the superblock. Signed-off-by: Neil Brown <neilb@suse.de>
* Choose better devnumbers and tidy up some issues with finding names.Neil Brown2006-05-265-3/+18
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Initial implementation of auto-assemblyNeil Brown2006-05-263-35/+117
| | | | | | This basically works, but needs various improvements and some tests. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow autoassembly to choose it's own name for the array.Neil Brown2006-05-232-20/+33
| | | | | | | | | This cannot be used yet, but it is working towards auto-assembly. When auto-assembling an array, we make a name in /dev/md/ giving a number (from the peferred minor) or name (from set-name). Signed-off-by: Neil Brown <neilb@suse.de>
* When assembly arrays using incomplete detail, prefer arrays built for this host.Neil Brown2006-05-234-5/+59
| | | | | | | | i.e. if assembling with --name or --super-minor, then if we find two different arrays with the same apparent identity, and one was built for 'this' host, then prefer that one instead of giving up in disgust. Signed-off-by: Neil Brown <neilb@suse.de>
* Reorganise Assemble code somewhat.Neil Brown2006-05-232-7/+31
| | | | | | | | | | | We make sure all devices can are consistent before doing any --update This saves us from updating some but not all of an array, and then aborting. It also means we can backtrack on out decisions, which we might want to do later. Signed-off-by: Neil Brown <neilb@suse.de>
* Make sure name matching for array assembly understand the possibility of a ↵Neil Brown2006-05-232-2/+26
| | | | | | | | | homehost This "--assemble --name=foo" on host 'bar' will assemble an array named 'foo' or 'bar:foo'. Signed-off-by: Neil Brown <neilb@suse.de>
* Support --update=homehost to allow updating of homehost information.Neil Brown2006-05-234-0/+29
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Allow --update=name to update the name during assembly.Neil Brown2006-05-234-1/+24
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Make sure homehost is set correctly when --update=uuidNeil Brown2006-05-237-19/+36
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --examine as appropriateNeil Brown2006-05-195-12/+27
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --detail where appropriate.Neil Brown2006-05-195-11/+23
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Make homehost information appear in superblock.Neil Brown2006-05-1911-14/+721
| | | | | | | | 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>
* Allow homehost to be set on command line or in config fileNeil Brown2006-05-194-19/+66
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Improve code for recognising config lines.Neil Brown2006-05-191-12/+19
| | | | | | No more magic numbers. Signed-off-by: Neil Brown <neilb@suse.de>
* Just updaqte copyright dates and email addressNeil Brown2006-05-1920-21/+20
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* New flag --no-degradedNeil Brown2006-05-195-30/+63
| | | | | | | | | Use to avoid starting arrays if there are fewer devices available than last time the array was started. This is only needed with --scan, as with --scan, that behaviour is the default. Signed-off-by: Neil Brown <neilb@suse.de>
* Add a copy of /proc/mdstat to the mail message send by mdadm --monitor.Neil Brown2006-05-192-0/+13
| | | | Signed-off-by: Neil Brown <neilb@suse.de>