summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| | * removed mdadm-startall wrapper scriptMichael Tokarev2014-09-27
| | |
| | * mention closing of #731884 by 3.3.2Michael Tokarev2014-09-27
| | |
| | * remove local rebuilding-raid.html and RAID5_versus_RAID10.txt docsMichael Tokarev2014-09-27
| | |
| | * remove reference to old mdctl packageMichael Tokarev2014-09-27
| | |
| | * reformat mdadm-raid initscript a bitMichael Tokarev2014-09-27
| | |
| | * remove support of makedevMichael Tokarev2014-09-27
| | |
| | * remove references to very old (pre-wheeze) breaks/replaces/dependsMichael Tokarev2014-09-27
| | |
| | * remove references to old (2.x and 1.x) mdadm versions in po files tooMichael Tokarev2014-09-27
| | |
| | * remove references to old (2.x and 1.x) mdadm versionsMichael Tokarev2014-09-27
| | |
| | * use install -D in d/rules consistently and remove dirs from d/mdadm.dirsMichael Tokarev2014-09-20
| | |
| | * create /etc/modprobe.d/mdadm.confMichael Tokarev2014-09-20
| | |
| | * denote md init errors in initramfs from fatal to warning (#733574)Michael Tokarev2014-09-20
| | |
| | * copy 64-md-raid-assembly.rules to initramfs too (#678691)Michael Tokarev2014-09-20
| | |
| | * introduce 3.3.2 upstream releaseMichael Tokarev2014-09-20
| | |
| | * Merge tag 'mdadm-3.3.2' into debianMichael Tokarev2014-09-20
| | |\ | | | | | | | | | | | | | | | | | | | | Release mdadm-3.3.2 Minor bugfix/stability release.
| | | * Release mdadm-3.3.2NeilBrown2014-08-21
| | | | | | | | | | | | | | | | | | | | | | | | Minor bugfix/stability release. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Fix parallel make problem.Samuli Suominen2014-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When make is called with, for example, "make -j9 install install-system" i.e. both install and install-systemd targets at the same line and with high -j value, then the same install.tmp file was used, and udev rules ends up in systemd service files, or otherway around. For more information, see: http://www.spinics.net/lists/raid/msg46782.html http://bugs.gentoo.org/show_bug.cgi?id=517218 Signed-off-by: NeilBrown <neilb@suse.de>
| | | * super1: make sure 'room' includes 'bbl_size' when creating array.NeilBrown2014-08-21
| | | | | | | | | | | | | | | | | | | | | | | | Because we then go ahead and subtrace bbl_size from room. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * super1: don't allow adding a bitmap if there is no space.NeilBrown2014-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the data is too close to the superblock there may be no space for a bitmap. If that happens, fail the adding of the bitmap rather than corrupt data. Reported-by: Lars Wijtemans <rhelbugzilla@lars.wijtemans.nl> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=922944
| | | * Monitor: Stop monitoring devices that have disappeared.NeilBrown2014-08-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we are only monitoring a device because we found it in /proc/mdstat, and it has been gone for 5 checks, forget about it completely. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * mdadm: document some more magic environment variables.NeilBrown2014-08-14
| | | | | | | | | | | | | | | | | | | | | | | | Others are mostly for developers. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Manage: fix removal of non-existent devices.NeilBrown2014-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "--remove detached" and others stopped working a while back when I refactored some code. For 'remove' and 'fail', the device may not exist so if it is "MM:mm", (e.g. added by "detached"), just parse out the numbers. Reported-by: Killian De Volder <killian.de.volder@megasoft.be> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * util: split get_maj_min() out from dev_open()NeilBrown2014-08-11
| | | | | | | | | | | | | | | | | | | | | | | | This allows other code to parse "8:3" style device names. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Manage: simplify `rdev` handling in Manage_subdevs.NeilBrown2014-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only use 'struct stat stb' to get the 'rdev', and sometimes we don't even use 'stat'. So make 'rdev' a stand-alone variable, and only declare stb' when we actually need it. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * config: new option to suppress adding bad block lists.NeilBrown2014-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CREATE bbl=no in mdadm.conf will cause any devices added to an array to not have a bad block list. By default they do for 1.x metadata. This is useful if you are suspicious of the bad-block-list implementation. Reported-by: Ethan Wilson <ethan.wilson@shiftmail.org> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * md.4: replace "bad block log" with "bad block list"NeilBrown2014-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Elsewhere we use the term "list", and it is more accurate. Logs are usually append-only. This list isn't. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * mdmon: don't include super0 and super1 in mdmonNeilBrown2014-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | They are no needed, and future patch will add a dependency yo super1 which mdmon doesn't have. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * super: make sure to ignore disk state flags that we don't understand.NeilBrown2014-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This make it easier to add new flags that some super-types don't understand. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Detail: Avoid dereferencing some NULL pointers.NeilBrown2014-08-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dm devices which only have a single underlying md device will respond to md ioctls as though they were that md device. This can confuse mdadm and lead it to violating its segments. So add tests for NULL where appropriate. You might not get exactly the right answer when you "mdadm -D" a dm device, but at least it won't crash now. Reported-by: Willy Weisz <Willy.Weisz@univie.ac.at> Resolves: https://bugzilla.novell.com/show_bug.cgi?id=887821 Signed-off-by: NeilBrown <neilb@suse.de>
| | | * DDF: cast print arguments in super-ddf.cGuy Menanteau2014-08-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mdadm fails to build on ppc64 and ppc64le architectures. === super-ddf.c: In function '_set_config_size': super-ddf.c:2849:4: error: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=] pr_err("%s: %x:%x: workspace size 0x%llx too big, ignoring\n", ^ super-ddf.c:2855:2: error: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=] dprintf("%s: %x:%x config_size %llx, DDF structure is %llx blocks\n", ^ cc1: all warnings being treated as errors <builtin>: recipe for target 'super-ddf.o' failed === Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1125883 Signed-off-by: <menantea@linux.vnet.ibm.com> Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Assemble: Only fail auto-assemble in face of mdadm.conf conflicts.NeilBrown2014-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should never auto-assemble things that conflict with mdadm.conf However explicit assembly requests should be allowed. Reported-by: olovopb Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1070245 Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Grow: improve error message is "--grow -n2" used on Linear arrays.NeilBrown2014-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linear arrays don't respond to setting raid-disks, only to adding a device. Reported-by: mulhern Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1122146 Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Grow: fix that preventing resize of array to 32bit size.NeilBrown2014-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the request --size to --grow an array to is 32bits (i.e. msb in bit 32) then mdadm make wrong choice and uses ioctl instead of setting component_size via sysfs and the change is ignored. This is fixed by using correct casts. Reported-and-tested-by: Killian De Volder <killian.de.volder@megasoft.be> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * IMSM: move "validate_container_imsm" to be included in mdassemblePawel Baldysiak2014-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 0c21b485e4beb7bcfe631412a231f7c1ea1067bc added new function in imsm superswitch. This function should be included in mdassemble. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Grow: Do not try to restart if reshape is runningPawel Baldysiak2014-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Grow process did not check if reshape is already started when deciding about restarting. Sync_action should be checked in this case, and if reshape is running - restart flag should not be set. Otherwise, Grow process will fail to write data to sysfs, and reshape will not be continued. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * IMSM: validate metadata_update size before using it.NeilBrown2014-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every case in prepare_update check that the size message size is sufficient, so process_update doesn't need to check anything. Reported-by: Vincent Berg <vberg@ioactive.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * DDF: validate metadata_update size before using it.NeilBrown2014-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | process_update already checks update->len, for all but the 'magic', prepare_update doesn't at all. So add tests to prepare_update that we don't exceed the buffer. This will consequently protect process_update from looking for a 'magic' which isn't there. Reported-by: Vincent Berg <vberg@ioactive.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * mdmon: allow prepare_update to report failure.NeilBrown2014-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If 'prepare_update' fails for some reason there is little point continuing on to 'process_update'. For now only malloc failures are caught, but other failures will be considered in future. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * IMSM: Add warning message when assemble spanned containerPawel Baldysiak2014-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to several changes in code assemble with disks spanned between different controllers can be obtained in some cases. After IMSM container will be assembled, check HBA of disks, and print proper warning if mismatch is detected. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * mdmon: ensure Unix domain socket is created with safe permissions.NeilBrown2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the unlikely case that mdmon is started with an overly permissive umask, we don't want to risk giving away world acccess. All other "mkdir" and "O_CREAT" calls in mdmon and mdadm set a suitably restrictive permission mask. 'bind' don't take an explicit mask so it needs an implicit one. Reported-by: Vincent Berg <vberg@ioactive.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * md.4: Make tables narrow enough to fit.NeilBrown2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If we use "Dev" instead of "Device" on the wide tables, they fit better. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * revised the documentation of RAID10 layoutsChristoph Anton Mitterer2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Completely revised the documentation of the RAID10 layouts, with examples for n2,f2,o2 with and odd and an even number of underlying devices. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Makefile: use "man -l" to format man pages.NeilBrown2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formatting a man page is more than just "nroff -man". In particular, that doesn't invoke "tbl" when needed. So use "man -l" which performs correct formatting on a given file. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * mdadm.8: Fix typo in setting font.NeilBrown2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | \fP returns to previous font, not \fp. Signed-off-by: NeilBrown <neilb@suse.de>
| | | * mdadm.8: Fix typo in "no-bbl".NeilBrown2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | The '\' comes before the '-', not after! Signed-off-by: NeilBrown <neilb@suse.de>
| | | * IMSM: use strcpy rather than pointless strncpy.NeilBrown2014-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As strncpy doesn't guarantee to nul-terminate, some static analysers get upset that it is followed by a 'strncat'. So just use a 'strcpy' - strlen(disk_by_path) is constant and definitely less than PATH_MAX. Link: https://github.com/neilbrown/mdadm/issues/4 Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Grow: fix removal of line in wrong casePawel Baldysiak2014-06-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 18d9bcfa33939cee345d4d7735bc6081bcc409c8 removed wrong line (in case RAID0->RAID4). This patch corrects this mistake (line should be removed in case RAID4->RAID4). Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Makefile: install mdadm-grow-continue@.serviceNeilBrown2014-06-10
| | | | | | | | | | | | | | | | | | | | | | | | Forgot to add this to install-systemd target Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Release mdadm-3.3.1NeilBrown2014-06-05
| | | | | | | | | | | | | | | | Signed-off-by: NeilBrown <neilb@suse.de>
| | | * Make sure "make everything" builds again.NeilBrown2014-06-05
| | | | | | | | | | | | | | | | Signed-off-by: NeilBrown <neilb@suse.de>