summaryrefslogtreecommitdiffstats
path: root/Manage.c
AgeCommit message (Expand)AuthorFilesLines
2021-05-26Manage: Call validate_geometry when adding drive to external containerMariusz Tkaczyk1-0/+7
2020-04-27Manage, imsm: Write metadata before addTkaczyk Mariusz1-5/+1
2019-11-27Fix up a few formatting issuesJes Sorensen1-4/+9
2019-11-27Remove last traces of HOT_ADD_DISKJes Sorensen1-2/+0
2019-11-27Manage: Remove the legacy code for md driver prior to 0.90.03Xiao Yang1-12/+0
2017-09-29Manage_subdevs(): Use a dev_tJes Sorensen1-1/+1
2017-08-16Error messages should end with a newline character.NeilBrown1-1/+1
2017-08-02mdadm/r5cache: allow adding journal to array without journalSong Liu1-6/+0
2017-05-16mdadm: Fixup more broken logical operator formattingJes Sorensen1-2/+2
2017-05-16mdadm: Fixup a large number of bad formatting of logical operatorsJes Sorensen1-16/+13
2017-05-11retire the APIs that driver no longer supportsZhilong Liu1-4/+0
2017-05-05mdadm/util: unify stat checking blkdev into functionZhilong Liu1-10/+1
2017-05-05mdadm/util: unify fstat checking blkdev into functionZhilong Liu1-1/+1
2017-05-02Manage: Manage_ro(): Use md_array_active()Jes Sorensen1-4/+2
2017-04-20sysfs: Parse array_state in sysfs_read()Jes Sorensen1-1/+1
2017-04-11Retire mdassembleJes Sorensen1-9/+1
2017-04-05Manage: Remove all references to md_get_version()Jes Sorensen1-19/+1
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-2/+5
2017-03-29util: Introduce md_get_disk_info()Jes Sorensen1-10/+9
2017-03-29util: Introduce md_get_array_info()Jes Sorensen1-7/+6
2017-03-28Add 'force' flag to *hot_remove_disk().NeilBrown1-5/+5
2017-03-28Introduce sys_hot_remove_disk()NeilBrown1-5/+1
2017-03-28Retry HOT_REMOVE_DISK a few times.NeilBrown1-2/+2
2016-11-29Introduce enum flag_mode for setting and clearing flags.NeilBrown1-16/+16
2016-11-28Add failfast support.NeilBrown1-1/+19
2016-07-21Remove: container should wait for an array to release a driveTomasz Majchrzak1-13/+28
2016-03-22Manage: Manage_subdevs(): Remove unnecessary NULL initializationJes Sorensen1-1/+1
2016-03-22Manage: Manage_add(): Avoid NULL initialization of dev_stJes Sorensen1-13/+12
2016-03-22Manage: Manage_add(): Fix memory leakJes Sorensen1-0/+3
2016-03-10Fix regression during add devicesHannes Reinecke1-1/+1
2016-03-09Manage: Manage_subdevs() fix file descriptor leakJes Sorensen1-2/+3
2016-03-08Manage: Manage_add(): Fix potential NULL pointer dereferenceJes Sorensen1-0/+4
2016-03-08Manage: Remove unnecessary NULL pointer checksJes Sorensen1-6/+3
2016-02-17Manage.c: Only issue change events for kernels older than 2.6.28Jes Sorensen1-8/+11
2015-12-22in --add assign raid_disk of 0 to journalSong Liu1-1/+1
2015-12-16recreate journal in mdadmSong Liu1-3/+39
2015-10-08re-add: make re-add try to write sysfs node firstGuoqing Jiang1-0/+13
2015-09-28mdadm: make cluster raid also could support re-addGuoqing Jiang1-0/+9
2015-07-29mdadm: fix wrong condition for go to abortGuoqing Jiang1-1/+1
2015-07-27Merge branch 'cluster'NeilBrown1-3/+34
2015-07-06Manage/stop: don't stop during initial critical section.NeilBrown1-4/+19
2015-07-06Manage/stop: improve some comments.NeilBrown1-4/+19
2015-07-06Manage/stop: guard against 'completed' being too large.NeilBrown1-1/+5
2015-07-02Manage: fix no-op test in Manage_stop.NeilBrown1-1/+1
2015-07-02mdstat: discard 'dev' field, just use 'devnm'NeilBrown1-1/+1
2015-06-17Add a new clustered diskGuoqing Jiang1-3/+34
2015-05-13Manage: when re-adding, do check avail size if ->sb cannot be found.NeilBrown1-1/+2
2015-05-06Manage: fix test for 'is array failed'.NeilBrown1-1/+1
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-52/+23
2014-08-11Manage: fix removal of non-existent devices.NeilBrown1-1/+7
2014-08-11Manage: simplify `rdev` handling in Manage_subdevs.NeilBrown1-10/+10
2013-12-05Two small fixes related to enough()NeilBrown1-1/+1
2013-10-31Add support for --add-spareNeilBrown1-2/+5
2013-09-13Make -IRs and --run work properly for containers.NeilBrown1-2/+2
2013-09-10Manage.c: fix small memory leakLukasz Dorau1-0/+1
2013-09-03Release mdadm-3.3mdadm-3.3NeilBrown1-1/+1
2013-08-26Change "mdadm --run" to use the same code as "mdadm --IRs".NeilBrown1-10/+6
2013-08-14Fix bug with adding to 0.90 arrayNeilBrown1-1/+1
2013-07-30Manage: remove call to validate_geometry.NeilBrown1-4/+2
2013-07-24Manage: fix typo in error for "--with" handlingNeilBrown1-1/+1
2013-07-10Stop: fix up synchronising end of reshape to good boundary.NeilBrown1-5/+17
2013-07-02Stop: improve synchronising of reshape with whole stripes.NeilBrown1-10/+30
2013-07-01Manage: check alignment when stopping an array undergoing reshape.NeilBrown1-1/+86
2013-06-19Remove lots of unnecessary white space.NeilBrown1-4/+4
2013-06-19Manage: split Manage_runstop into Manage_run and Manage_stopNeilBrown1-164/+169
2013-05-21Change some fprintf(stderrs to cont_err()NeilBrown1-1/+1
2013-05-13Remove open-coded use_udev().NeilBrown1-4/+1
2013-05-13Manage: support --fail set-X and --remove set-XNeilBrown1-0/+63
2013-04-22Manage_runstop: call flush_mdmon if O_EXCL fails on stopping mdmon array.NeilBrown1-5/+24
2013-03-05Ensure mddev_dev struct always zeroed on allocation.NeilBrown1-14/+14
2013-03-05Enhance incremental removal.NeilBrown1-2/+8
2013-02-21Discard devnum in favour of devnmNeilBrown1-37/+36
2012-11-28Manage: Add support for --re-add faultyNeilBrown1-4/+13
2012-11-28Fix "--remove faulty" and similar commands.NeilBrown1-24/+23
2012-10-24Manage: improve error message when given a non-block device.NeilBrown1-13/+16
2012-10-23Add support for --replace and --withNeilBrown1-0/+147
2012-10-04Allow data-offset to be specified per-device for createNeilBrown1-2/+2
2012-10-04Add data_offset arg to ->validate_geometry.NeilBrown1-1/+1
2012-10-04Add data_offset arg to ->avail_sizeNeilBrown1-1/+1
2012-09-24Manage: fix checks for removal from a container.NeilBrown1-15/+23
2012-08-15Manage: zero metadata before adding to 'external' array.NeilBrown1-0/+1
2012-08-14Manage.c: fix make everything compilation errorLukasz Dorau1-1/+1
2012-08-13Manage_subdevs: factor out Manage_deleteNeilBrown1-105/+115
2012-08-13Manage_subdevs: split most of 'add' handling into Manage_add.NeilBrown1-340/+330
2012-08-13Manage: split out attempt_re_add.NeilBrown1-91/+112
2012-08-13Manage_subdev: give 'st' a better name and narrower focus.NeilBrown1-27/+20
2012-08-13Manage: minor cosmetic fixes.NeilBrown1-60/+47
2012-07-09Manage: simplify device searches in Manage_subdevsNeilBrown1-113/+133
2012-07-09Convert 'quiet' to 'not verbose' in various places.NeilBrown1-34/+35
2012-07-09Remove scattered checks for malloc success.NeilBrown1-4/+3
2012-07-09Remove re_add flag in favour of new disposition.NeilBrown1-6/+5
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-109/+95
2012-04-18Relax restrictions on when --add is permitted.NeilBrown1-9/+26
2012-04-18Raid limit of 1024 when scanning for devices.NeilBrown1-2/+2
2012-04-04Fix typo: wan -> wantNeilBrown1-1/+1
2012-03-22Manage: freeze recovery while adding multiple devices.NeilBrown1-0/+13
2012-03-22Manage: replace 'return 1' with 'goto abort'.NeilBrown1-36/+39
2012-03-07Manage: allow --re-add to failed array.NeilBrown1-3/+13
2011-11-03Manage_ro(): Check pointer rather than dereferencing itJes Sorensen1-1/+1
2011-11-02Manage_runstop(): Avoid memory leakJes Sorensen1-9/+13
2011-11-02Managa_ro(): free() mdi before exitingJes Sorensen1-6/+16
2011-11-02Manage_subdevs(): avoid leaking superJes Sorensen1-0/+10
2011-11-02remove_devices(): readlink returns -1 on errorJes Sorensen1-1/+1
2011-09-19Fix readding of a readwrite drive into a writemostly arrayDoug Ledford1-2/+15
2011-09-08Discourage large devices from being added to 0.90 arrays.NeilBrown1-4/+25
2011-05-23Check all member devices in enough_fdNeilBrown1-2/+6
2011-05-10Manage: minor fix to add/re-add handling.NeilBrown1-7/+7
2011-03-24Merge branch 'master' into devel-3.2NeilBrown1-1/+1
2011-03-23--stop: separate 'is busy' test for 'did it stop properly'.NeilBrown1-2/+36
2011-03-20FIX: Add spare throws exception (v2)Adam Kwolek1-4/+4
2011-03-18Retry writing 'inactive' state during stopping arrayKrzysztof Wojcik1-7/+18
2011-03-18FIX: ping_monitor() usage causes memory leaksAdam Kwolek1-1/+1
2011-03-18Manage: fix the mess I made in earlier patch.NeilBrown1-4/+6
2011-03-17--stop: separate 'is busy' test for 'did it stop properly'.NeilBrown1-2/+36
2011-03-15Merge branch 'master' into devel-3.2NeilBrown1-1/+11
2011-03-15Manage/external: for external metadata, add_to_super needs lock on container.NeilBrown1-5/+12
2011-03-10Manage: be more careful about --add attempts.NeilBrown1-9/+27
2011-02-21modified message on failure to read metadata in ManageCzarnowska, Anna1-1/+1
2011-02-15Fix regression with removing 'failed' and 'detached' devices.NeilBrown1-2/+2
2011-02-15Fix regression with removing 'failed' and 'detached' devices.NeilBrown1-2/+2
2011-01-31Call free_super before attempting to add a new deviceNeilBrown1-5/+9
2011-01-25Don't close fds in write_init_superNeilBrown1-2/+8
2011-01-06Add spares to raid0 in mdadmAdam Kwolek1-14/+7
2011-01-05move_spare function modified and moved to Manage.cAnna Czarnowska1-0/+44
2010-12-09Allow --update=devicesize with --re-addNeilBrown1-1/+20
2010-11-23Manage: allow manual control of external raid0 readonly flagDan Williams1-1/+2
2010-11-22Replace various load_super calls with load_containerNeilBrown1-1/+1
2010-11-22Improve type names for mddev_devNeilBrown1-3/+3
2010-11-22Improve mddev_ident type definitions.NeilBrown1-1/+1
2010-11-22Pass subarray arg explicitly to ->update_subarray.NeilBrown1-1/+1
2010-11-22super_by_fd: return subarray info explicitly.NeilBrown1-3/+4
2010-11-22open_subarray: pass subarray name as explicit arg.NeilBrown1-9/+1
2010-11-22get_info_super: report which other devices are thought to be working/failed.NeilBrown1-2/+2
2010-11-22Manage: be more careful about --add attempts.NeilBrown1-9/+27
2010-08-31Fix spare migration.NeilBrown1-0/+1
2010-08-31Don't remove md devices with standard names.NeilBrown1-23/+21
2010-08-05Compile with -Wextra by defaultNeilBrown1-6/+6
2010-07-22Two Minor bug fixes to incremental supportDoug Ledford1-4/+12
2010-07-06Merge branch 'master' of git://github.com/djbw/mdadmNeilBrown1-0/+53
2010-07-06Add --test option to --re-add and similarNeilBrown1-2/+7
2010-07-06Add support for "--re-add missing"NeilBrown1-11/+64
2010-06-30Avoid skipping devices where removing all faulty/detached devices.NeilBrown1-4/+19
2010-06-30Add -fail support to --incrementalNeilBrown1-2/+2
2010-06-30Support fail/remove using kernel nameNeilBrown1-20/+83
2010-06-22Rename subarray v2Dan Williams1-0/+53
2010-04-19Create: cleanup after failed create in duplicated array member caseDan Williams1-5/+3
2010-03-09Stop: done stop a container which still have members active.NeilBrown1-0/+21
2010-03-03Manage: fix regression on removing detached devices.NeilBrown1-7/+15
2009-12-30Merge branch 'master' of git://github.com/djbw/mdadmNeilBrown1-0/+1
2009-12-21Support external metadata recovery-resumeDan Williams1-1/+1
2009-12-21Teach sysfs_add_disk() callers to use ->recovery_start versus 'insync' parameterDan Williams1-1/+2
2009-12-08Don't attempt a re-add if the device is marked as faulty.NeilBrown1-1/+4
2009-11-17Don't silently map --re-add to --addNeilBrown1-0/+6
2009-10-22Merge branch 'master' into devel-3.1NeilBrown1-1/+3
2009-10-22Free some malloced memory that wasn't being freed.NeilBrown1-1/+3
2009-10-01Merge branch 'master' into devel-3.1NeilBrown1-10/+9
2009-07-14Remove Manage_reconfing in favour of Grow_reshapeNeilBrown1-18/+0
2009-06-02Merge branch 'master' into devel-3.0NeilBrown1-3/+7
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-7/+2
2009-05-12Monitor: support spare-group manipulation for 1.x metadata.NeilBrown1-2/+6
2009-05-11Merge branch 'master' into devel-3.0NeilBrown1-0/+5
2009-05-05re-add error checkNeilBrown1-0/+5
2009-04-14incremental_container: preserve 'in_sync' flag when adding to existing array.NeilBrown1-1/+1
2009-02-24Manage: permit '--remove detached' for containersDan Williams1-1/+8
2008-11-27Tidy error messages for add_to_super failure.NeilBrown1-2/+0
2008-11-27allow add_to_super to return errorsDan Williams1-2/+7
2008-11-08fix remove_devices()Dan Williams1-4/+6
2008-11-04Stop: drop any partitions that may be associated with an array when stopping it.NeilBrown1-1/+4
2008-11-04Manage: when stopping an array, delete all names from /dev.NeilBrown1-6/+59
2008-11-04Generate 'change' uevents when arrays change in non-obvious ways.NeilBrown1-2/+7
2008-10-27Merge branch 'master' into devel-3.0NeilBrown1-3/+5
2008-10-25Allow WRITEMOSTLY to be cleared on --readd using --readwrite.NeilBrown1-3/+5
2008-10-17Merge branch 'master' into devel-3.0NeilBrown1-7/+9
2008-10-13Manage: allow adding device that is just large enough to v1.x array.NeilBrown1-8/+9
2008-09-18Compile fixes, particularly moving more stuff under MDASSEMBLENeilBrown1-1/+4
2008-09-15ping_manager() to prevent 'add' before 'remove' completesDan Williams1-0/+17
2008-09-15Add ping_monitor() to mdadm --waitDan Williams1-6/+1
2008-08-19Allow an externally managed array to be marked readonlyNeilBrown1-0/+43
2008-08-19Factor out test for subarray version string.NeilBrown1-2/+2
2008-08-19mdadm: add device to a containerDan Williams1-7/+59
2008-08-07Merge branch 'master' into from-stableNeilBrown1-1/+6
2008-07-18Manage: sync with mdmon before stopping containers.NeilBrown1-0/+9
2008-07-18Manage: fixed some error message in --stopNeilBrown1-6/+11
2008-07-18Stop managed arrays more carefully.Neil Brown1-3/+37
2008-07-12Use O_DIRECT for all IO to devices.Neil Brown1-2/+2
2008-07-12Handle device removal from containerNeil Brown1-54/+59
2008-07-12Add subarray field to supertype.Neil Brown1-2/+2
2008-06-26Improve error message when mdadm fails to stop an array.Neil Brown1-1/+6
2008-05-15handle Manage_subdevs() for 'external' arraysDan Williams1-1/+62
2008-05-15Change write_init_super to be called only once.Neil Brown1-3/+6
2008-04-28Fix problems with array.size overflowing on large arrays.Neil Brown1-2/+11
2007-12-14Find super from fd on an array.Neil Brown1-4/+2
2007-12-14Drop the superblock arg from all metadata methods.Neil Brown1-24/+30
2007-12-14Add 'supertype' arg to almost all metadata methods.Neil Brown1-4/+4
2007-12-14Remove spaces/tabs from ends of lines.Neil Brown1-6/+6
2007-10-19Remove partitions from a device before adding it to an array.Neil Brown1-1/+1
2007-09-24Make "--write-mostly" effective when re-adding a device to an array.Neil Brown1-3/+5
2007-05-21Add --auto-detect for in-kernel autodetect.Neil Brown1-0/+13
2007-05-11Support failing and removed of detached and faulty devices.Neil Brown1-17/+91
2006-12-21Add new mode: --incrementalNeil Brown1-0/+14