summaryrefslogtreecommitdiffstats
path: root/mdadm.c
AgeCommit message (Expand)AuthorFilesLines
2021-08-02Add monitor delay parameter to mdadm.confoshchirs1-4/+2
2021-05-06Prevent user from using --stop with ambiguous argsNorbert Szulc1-0/+5
2021-03-09Add "bitmap" to allowed command-line valuesJakub Radtke1-1/+3
2020-10-14Super1: allow RAID0 layout setting to be removed.NeilBrown1-2/+3
2020-08-07Specify nodes number when updating cluster nodesXiao Ni1-0/+5
2020-01-21imsm: fill working_disks according to metadata.Blazej Kucman1-3/+6
2019-12-02Assemble: add support for RAID0 layouts.NeilBrown1-0/+4
2019-12-02Create: add support for RAID0 layouts.NeilBrown1-0/+8
2019-08-12mdadm: add --no-devices to avoid component devices detail informationColy Li1-0/+4
2018-09-27mdadm.c: Fix error handling for --zero-superblockMariusz Tkaczyk1-1/+1
2018-06-11Free map to avoid resource leak issuesGuoqing Jiang1-0/+2
2018-03-08mdadm: improve the dlm locking mechanism for clustered raidGuoqing Jiang1-0/+20
2018-01-21mdadm: allow clustered raid10 to be created with default layoutGuoqing Jiang1-1/+1
2017-11-21Monitor/msg: Don't print error message if mdmon doesn't runMariusz Tkaczyk1-2/+2
2017-11-09To support clustered raid10Guoqing Jiang1-2/+7
2017-10-02Close mdfd before returning main functionXiao Ni1-0/+2
2017-08-16Don't use exit(ERANGE)NeilBrown1-1/+1
2017-05-16mdadm: Fixup a large number of bad formatting of logical operatorsJes Sorensen1-2/+1
2017-04-24Don't use UnSet with consistency_policyArtur Paszkiewicz1-6/+6
2017-04-11mdadm.c:fix compile warning "mdfd is uninitialized"Zhilong Liu1-1/+1
2017-04-06mdadm: Fail for kernels older than 2.6.15Jes Sorensen1-0/+5
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-3/+8
2017-03-30mdadm.c: fix compile error "switch condition has boolean value"Gioh Kim1-8/+6
2017-03-29mdadm: Fixup a number of whitespace inconsistency casesJes Sorensen1-26/+25
2017-03-29mdadm: Clean up some ugly multiple actions on single lineJes Sorensen1-10/+20
2017-03-29Grow: support consistency policy changeArtur Paszkiewicz1-0/+3
2017-03-29Add 'ppl' and 'no-ppl' options for --update=Artur Paszkiewicz1-1/+5
2017-03-29Generic support for --consistency-policy and PPLArtur Paszkiewicz1-3/+52
2017-03-27mdadm:it doesn't make sense to set --bitmap twiceZhilong Liu1-0/+4
2017-03-07mdadm:add checking clustered bitmap in assemble modeZhilong Liu1-2/+4
2017-03-06mdadm:check the nodes when operate clustered arrayZhilong Liu1-2/+2
2017-03-06mdadm:fix typo in commentZhilong Liu1-1/+1
2017-01-29Fix oddity where mdadm did not recognise a relative pathWol1-6/+6
2016-11-29Introduce enum flag_mode for setting and clearing flags.NeilBrown1-6/+6
2016-11-28Add failfast support.NeilBrown1-0/+11
2016-08-02mdadm:add 'clustered' in typo prompt when specify wrong param for bitmapZhilong Liu1-1/+1
2016-03-29mdadm:Add '--nodes' option in GROW modezhilong1-0/+1
2016-03-22mdadm: Cleanup conditionalsJes Sorensen1-51/+52
2015-12-21Add --update=force-no-bbl.NeilBrown1-2/+5
2015-12-16recreate journal in mdadmSong Liu1-0/+8
2015-10-21Make cmap_* also has same policy as dlm_*Guoqing Jiang1-2/+3
2015-10-21Safeguard against writing to an active device of another nodeGuoqing Jiang1-0/+2
2015-10-19Enable create array with write journal (--write-journal DEVICE).Song Liu1-0/+23
2015-10-01Merge branch 'fix' of git://github.com/ldzhong/mdadmNeilBrown1-2/+0
2015-09-28Increment version for clustered bitmapsGoldwyn Rodrigues1-2/+3
2015-08-26mdadm: remove duplicate logic when c.delay is 0Lidong Zhong1-2/+0
2015-08-05main: remove use of uninitialized 'rv'.NeilBrown1-2/+2
2015-07-27Merge branch 'cluster'NeilBrown1-3/+61
2015-07-24Assemble: extend --homehost='<ignore>' to allow --name= to ignore homehostNeilBrown1-1/+1
2015-07-02mdstat: discard 'dev' field, just use 'devnm'NeilBrown1-2/+2
2015-06-17mdadm: change the num of cluster nodeGuoqing Jiang1-1/+4
2015-06-17mdadm: add the ability to change cluster nameGuoqing Jiang1-1/+4
2015-06-17Add a new clustered diskGuoqing Jiang1-0/+4
2015-06-17Set home-cluster while creating an arrayGuoqing Jiang1-0/+17
2015-06-17Add nodes option while creating mdGuoqing Jiang1-1/+32
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-63/+31
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-3/+1
2015-02-12Change way of printing name of a processPawel Baldysiak1-3/+4
2014-08-27--update: add 'bbl' and 'no-bbl' to the list of known updates.NeilBrown1-1/+3
2014-05-22MISC: add --action option to set or abort check/repair.NeilBrown1-0/+43
2013-12-03Incremental: improve support for "DEVICE" based restriction in mdadm.confNeilBrown1-8/+8
2013-10-31Add support for --add-spareNeilBrown1-0/+4
2013-09-15Give error if --incremental --scan also has a device name given.NeilBrown1-0/+5
2013-09-13Make -IRs and --run work properly for containers.NeilBrown1-3/+4
2013-09-03Release mdadm-3.3mdadm-3.3NeilBrown1-1/+1
2013-08-26Change "mdadm --run" to use the same code as "mdadm --IRs".NeilBrown1-1/+1
2013-08-01Don't lie to systemd about mdadm's status.NeilBrown1-7/+0
2013-06-24Grow: allow "--add" with "--grow --level=??"NeilBrown1-1/+1
2013-06-24test/00names: use appropriate mdadm.confNeilBrown1-0/+1
2013-06-19Remove lots of unnecessary white space.NeilBrown1-4/+1
2013-06-19Manage: allow "--stop" on kernel names.NeilBrown1-1/+7
2013-06-19Manage: split Manage_runstop into Manage_run and Manage_stopNeilBrown1-5/+7
2013-05-28Assemble: allow --update=revert-reshapeNeilBrown1-1/+3
2013-05-28Assemble: --update=metadata converts v0.90 to v1.0NeilBrown1-1/+3
2013-05-22Grow: allow a reshape which only changes --data-offsetNeilBrown1-1/+2
2013-05-22Grow: --backup-file and --data-offset are incompatible.NeilBrown1-0/+5
2013-05-21Change some fprintf(stderrs to cont_err()NeilBrown1-1/+1
2013-05-21Change some "fprintf(stderr,"s to pr_err.NeilBrown1-2/+2
2013-05-16Add --dump / --restore functionality.NeilBrown1-2/+24
2013-05-13misc_scan: don't trust the mapping file too much for device names.NeilBrown1-2/+4
2013-03-05Create: default to bitmap=internal for large arrays.NeilBrown1-6/+0
2013-02-21Discard devnum in favour of devnmNeilBrown1-4/+4
2013-02-05Remove --offroot argument and default to always setting argv[0] to @Jes Sorensen1-7/+8
2012-12-05MISC: Add --examine-badblocks optionNeilBrown1-0/+4
2012-10-23Add support for --replace and --withNeilBrown1-0/+14
2012-10-04Allow data-offset to be specified per-device for createNeilBrown1-1/+5
2012-10-04Add --data-offset flag for Create and GrowNeilBrown1-2/+19
2012-10-04Allow parse_size to return 0.NeilBrown1-4/+8
2012-10-04imsm: Allow to specify controller for --detail-platform.Maciej Naruszewicz1-2/+11
2012-10-03Allow --update to add or remove space for a bad block list.NeilBrown1-2/+8
2012-10-02imsm: Add --export option for --detail-platformMaciej Naruszewicz1-1/+1
2012-07-09Use new struct context and struct shape for Grow_addbitmapNeilBrown1-2/+1
2012-07-09Use new struct context and struct shape in Grow_reshapeNeilBrown1-4/+2
2012-07-09Use new 'struct shape' to pass args to CreateNeilBrown1-5/+3
2012-07-09Use new 'struct shape' to pass args to BuildNeilBrown1-4/+1
2012-07-09Create new 'struct shape' to pass around array details.NeilBrown1-90/+84
2012-07-09change array_size to be unsigned and use the new MAX_SIZENeilBrown1-6/+6
2012-07-09Change the values for "max size" from -1 to 1.NeilBrown1-7/+7
2012-07-09Change Incremental and related functions to take struct contextNeilBrown1-4/+1
2012-07-09Change Monitor to take a struct contextNeilBrown1-3/+5
2012-07-09Change Detail and misc_scan to take a struct contextNeilBrown1-14/+6
2012-07-09change Examine to take a struct contextNeilBrown1-3/+1
2012-07-09Examine: split 'verbose' out from 'brief'.NeilBrown1-3/+5
2012-07-09Change Create to take a struct contextNeilBrown1-4/+4
2012-07-09Change Build to take a struct contextNeilBrown1-1/+1
2012-07-09Change misc_list to take struct contextNeilBrown1-25/+18
2012-07-09Convert Assemble() to take a context rather than a list of options.NeilBrown1-49/+15
2012-07-09Discard 'quiet' context variable.NeilBrown1-18/+18
2012-07-09Convert 'quiet' to 'not verbose' in various places.NeilBrown1-25/+25
2012-07-09Create 'struct context' for ad hoc context option.NeilBrown1-168/+152
2012-07-09Create parse_num() function.NeilBrown1-12/+10
2012-07-09Create: support --readonly flag.NeilBrown1-1/+2
2012-07-09Assemble: allow arrays to be assembled read-only.NeilBrown1-0/+6
2012-07-09Remove scattered checks for malloc success.NeilBrown1-10/+2
2012-07-09Remove re_add flag in favour of new disposition.NeilBrown1-7/+2
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-132/+124
2012-07-09Help: use an array to choose which help matches which mode.NeilBrown1-11/+4
2012-07-09main: extract more functions.NeilBrown1-162/+206
2012-07-09main: split scan_assemble into a separate functionNeilBrown1-92/+117
2012-07-09mdadm.c: various minor clean-upsNeilBrown1-20/+30
2012-07-09Use explicit non-char opt for --zero-superNeilBrown1-3/+3
2012-04-18Add --prefer option for --detail and --monitorNeilBrown1-3/+12
2012-04-04parse_size: distinguish between 0 and error.NeilBrown1-3/+2
2012-01-30Spawn mdmon with --offroot if mdadm was launched with --offrootJes Sorensen1-0/+1
2012-01-30Add --offroot argument to mdadmJes Sorensen1-0/+9
2011-12-23allow --monitor to be run by non-privileged use.NeilBrown1-1/+2
2011-11-07fix: Allowed to assemble 2 volumes with the same names from config file.Lukasz Orlowski1-0/+7
2011-11-03mdadm: Rearrange option parsing for KillSubarray and UpdateSubarrayJes Sorensen1-12/+22
2011-10-22Hold the map lock while performing Assemble to avoid races with udevJes Sorensen1-0/+6
2011-10-03Add continue option to grow commandAdam Kwolek1-1/+11
2011-10-03Do not continue reshape during initrd phaseAdam Kwolek1-9/+24
2011-09-19Monitor: --oneshot must imply --no-sharingNeilBrown1-0/+1
2011-09-08Discourage large devices from being added to 0.90 arrays.NeilBrown1-1/+2
2011-05-16Grow: accept --assume-clean with --grow --sizeNeilBrown1-1/+2
2011-05-10Create: allow chunksize to be non-power-of-2.NeilBrown1-2/+2
2011-05-10Give suitable error for mdadm /dev/md0 --stopNeilBrown1-0/+6
2011-05-10config: restore the possibility of a NULL homehostNeilBrown1-1/+5
2011-04-27Finally remove auto-home-hostNeilBrown1-35/+0
2011-03-15Fix regression when using 'grow' to add a bitmap.NeilBrown1-1/+1
2011-03-10Grow: support reshape of RAID0 arrays.NeilBrown1-7/+12
2011-01-27Dynamic hot-plug udev rules for policiesLabun, Marcin1-0/+18
2010-12-09Allow --update=devicesize with --re-addNeilBrown1-6/+34
2010-12-09Grow: warn if growing an array will make it degraded.NeilBrown1-1/+2
2010-12-01Create/grow: improve checks on number of devices.NeilBrown1-14/+0
2010-12-01Assemble: allow an array undergoing reshape to be started without backup fileNeilBrown1-11/+22
2010-11-30Assemble: add --update=no-bitmapNeilBrown1-1/+4
2010-11-30Allow K,M,G suffix on chunk sizes as well as device/array sizes.NeilBrown1-9/+12
2010-11-25Improve opt parsing, and distinguish long from short.NeilBrown1-24/+72
2010-11-23fix a get_linux_version() comparison typoDan Williams1-1/+1
2010-11-22mdadm: added --no-sharing option for Monitor modeAnna Czarnowska1-2/+6
2010-11-22added --path <path_id> to give the information on the 'path-id' of removed de...Przemyslaw Czarnowski1-6/+11
2010-11-22Remove content from mddev_devNeilBrown1-2/+0
2010-11-22Improve type names for mddev_devNeilBrown1-5/+5
2010-11-22Improve mddev_ident type definitions.NeilBrown1-4/+4
2010-08-12Incremental: accept '--no-degraded' as a deprecated optionDan Williams1-0/+2
2010-07-06Merge branch 'master' of git://github.com/djbw/mdadmNeilBrown1-2/+45
2010-07-06Add --test option to --re-add and similarNeilBrown1-1/+4
2010-07-01Merge branch 'fixes' into for-neilDan Williams1-1/+0
2010-06-30Add -fail support to --incrementalNeilBrown1-0/+12
2010-06-22Rename subarray v2Dan Williams1-3/+38
2010-06-15Kill subarray v2Dan Williams1-0/+8
2010-05-26Revert "Incremental: honor --no-degraded to delay assembly"Dan Williams1-1/+0
2010-02-24Assemble: Handle assembling from config file which is out of order.NeilBrown1-15/+33
2010-02-01Add test for "are we running as root".NeilBrown1-0/+6
2010-01-29Kill: fix when zeroing busy devices.Artur Wojcik1-1/+1
2010-01-29Tidy up some argument parsing, particularly for -bNeilBrown1-7/+6
2009-11-24Various fixes for --killNeilBrown1-1/+10
2009-11-06Grow: do not allow size changes with other changes.NeilBrown1-0/+9
2009-10-22Merge branch 'master' into devel-3.1NeilBrown1-3/+20
2009-10-19Detail: list containers before members.NeilBrown1-0/+8
2009-10-19Monitor: add option to specify rebuild incrementsZdenek Behan1-1/+10
2009-10-13mdmon: preserve socket over chrootDan Williams1-2/+2
2009-10-01Merge branch 'master' into devel-3.1NeilBrown1-8/+17
2009-08-11Handle extra 'grow' variations.NeilBrown1-12/+16
2009-07-14Grow: --size improvements.NeilBrown1-2/+4
2009-07-14Grow: pass layout as a string rather than a number.NeilBrown1-7/+18
2009-07-14Remove Manage_reconfing in favour of Grow_reshapeNeilBrown1-3/+1
2009-07-14main: factor out code to parse layout for raid10 and faulty.NeilBrown1-22/+5
2009-07-13Grow: support --array-size changesNeilBrown1-1/+42
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-7/+2
2009-06-02Monitor: reduce default poll interval if mdstat is pollable.NeilBrown1-0/+7
2009-06-02mdadm.8: Man page updatesNeilBrown1-1/+8
2009-05-11Merge branch 'master' into devel-3.0NeilBrown1-2/+3
2009-05-11mapfile: allow the path name to the device to be empty.NeilBrown1-1/+2
2009-05-11Allow homehost to be largely ignored when assembling arrays.NeilBrown1-9/+25
2009-05-11config: support "ARRAY <ignore> ..." lines in mdadm.confNeilBrown1-0/+3
2009-04-21mdadm: allow build to use --sizePaul Clements1-2/+4
2009-04-06Detail: use meaningful names with --scan.NeilBrown1-2/+9
2009-03-09Support new raid6 layouts needed for DDFNeilBrown1-1/+8
2009-02-24Incremental: honor --no-degraded to delay assemblyDan Williams1-0/+1
2009-01-08Merge branch 'master' into scratch-3.0NeilBrown1-0/+2
2009-01-08Free mdstat data structures properly.NeilBrown1-0/+2
2008-12-08introduce --detail-platform to display platform raid capabilitiesDan Williams1-0/+4
2008-12-01Allow --config in --incremental mode.NeilBrown1-0/+1
2008-11-27Support --wait-clean --scanDan Williams1-4/+12
2008-11-20Assemble: don't auto-assemble if any arrays are listed in mdadm.confNeilBrown1-2/+2
2008-11-04Assemble: allow members of containers to be assembled and auto-assembled.NeilBrown1-0/+3
2008-11-04Always set 'homehost' if not specified.NeilBrown1-1/+1
2008-11-04config: Don't require an array to have a device name.NeilBrown1-10/+0
2008-11-04Delay creation of array devices for assemble/build/createNeilBrown1-42/+61