summaryrefslogtreecommitdiffstats
path: root/Assemble.c
AgeCommit message (Expand)AuthorFilesLines
2021-08-02Assemble: skip devices that don't match uuid instead of aborting the assembly.Sudhakar Panneerselvam1-0/+5
2021-07-27Assemble: start dirty and degraded array.Mariusz Tkaczyk1-75/+101
2021-03-09Enable bitmap support for external metadataJakub Radtke1-0/+7
2021-03-08imsm: add verbose flag to compare_superMariusz Tkaczyk1-1/+1
2020-06-05Block overwriting existing links while manual assemblyKinga Tanska1-0/+4
2020-05-14Assemble.c: respect force flag.Mariusz Tkaczyk1-13/+38
2020-04-27Assemble: print error message if mdadm fails assembling with --uuid optionGioh Kim1-1/+1
2019-12-02Assemble: add support for RAID0 layouts.NeilBrown1-0/+8
2019-07-10mdadm: load default sysfs attributes after assemblationMariusz Dabrowski1-3/+9
2019-02-28Assemble: Fix starting array with initial reshape checkpointPawel Baldysiak1-2/+16
2019-02-11Fix spelling typos.Dimitri John Ledkov1-1/+1
2018-12-06Assemble: mask FAILFAST and WRITEMOSTLY flags when finding the most recent de...Gioh Kim1-1/+4
2018-12-06Assemble: keep MD_DISK_FAILFAST and MD_DISK_WRITEMOSTLY flagGioh Kim1-0/+3
2018-09-27Assemble: set devices to NULL when load_devices can't load deviceGuoqing Jiang1-0/+5
2018-09-27Assemble: free resources in load_devicesGuoqing Jiang1-0/+3
2018-07-20Assemble: remove the protection when clustered raid do assembleGuoqing Jiang1-21/+0
2018-07-11Coverity: Resource leak: fix return without freeAnthony Youngman1-0/+2
2018-06-11Free map to avoid resource leak issuesGuoqing Jiang1-1/+1
2018-06-08Assemble.c Don't ignore faulty disk when array is auto assembled.Mariusz Tkaczyk1-0/+2
2018-03-08Assemble: cleanup the failure pathGuoqing Jiang1-40/+22
2018-03-08Assemble: provide protection when clustered raid do assembleGuoqing Jiang1-1/+31
2018-02-23mdadm: prevent out-of-date reshaping devices from force assembleBingJing Chang1-2/+20
2018-01-21Assemble: prevent segfault with faulty "best" devicesAndrea Righi1-2/+2
2017-05-16mdadm: Fixup != broken formattingJes Sorensen1-2/+2
2017-05-16mdadm: Fixup more broken logical operator formattingJes Sorensen1-5/+4
2017-05-16mdadm: Fixup a large number of bad formatting of logical operatorsJes Sorensen1-13/+10
2017-05-05mdadm/util: unify stat checking blkdev into functionZhilong Liu1-5/+2
2017-05-05mdadm/util: unify fstat checking blkdev into functionZhilong Liu1-12/+7
2017-05-02Create: tell udev md device is not ready when first created.NeilBrown1-1/+1
2017-04-12Assemble: Remove obsolete test for kernels older than 2.4Jes Sorensen1-7/+0
2017-04-12Assemble: Clean up start_array()Jes Sorensen1-39/+58
2017-04-11Retire mdassembleJes Sorensen1-18/+3
2017-04-05Assemble/Assemble: Get rid of last use of md_get_version()Jes Sorensen1-1/+1
2017-04-05Assemble/Assemble: Stop checking kernel md driver versionJes Sorensen1-2/+1
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-2/+10
2017-03-29Add 'ppl' and 'no-ppl' options for --update=Artur Paszkiewicz1-0/+6
2017-03-29super1: PPL supportArtur Paszkiewicz1-0/+3
2017-03-29imsm: PPL supportArtur Paszkiewicz1-0/+49
2016-08-15Introduce random_uuid() helper functionJes Sorensen1-12/+3
2016-03-22Assemble: No need for dummy NULL pointer when calling map_update()Jes Sorensen1-4/+1
2016-03-22Assemble: assemble_container_content(): Avoid superfluous NULL initializationJes Sorensen1-1/+1
2016-03-08Assemble: Remove unnecesary NULL pointer checks when calling sysfs_free()Jes Sorensen1-2/+1
2016-01-28Release mdadm-3.4mdadm-3.4NeilBrown1-1/+1
2016-01-28super1: allow reshape that hasn't really started to be reverted.NeilBrown1-1/+8
2015-12-09fix bug in assembleSong Liu1-1/+4
2015-10-22mdadm: refactor write journal code in Assemble and IncrementalSong Liu1-18/+6
2015-10-19Assemble array with write journalSong Liu1-11/+46
2015-08-05Assemble: correctly capture error from ->write_bitmapNeilBrown1-1/+1
2015-08-03Merge branch 'mdadm-3.3.x'NeilBrown1-1/+3
2015-08-03Assemble: really don't assemble IMSM array without OROM.NeilBrown1-1/+3
2015-08-03Assemble: don't assemble IMSM array without OROM.NeilBrown1-1/+1
2015-07-29Assemble: don't assemble IMSM array without OROM.NeilBrown1-1/+1
2015-07-27Merge branch 'cluster'NeilBrown1-1/+7
2015-07-24Assemble: extend --homehost='<ignore>' to allow --name= to ignore homehostNeilBrown1-6/+10
2015-07-22Assemble: improve tests for matching --name= request.NeilBrown1-7/+12
2015-07-17Assemble: really ensure stripe_cache is bit enough to handle new chunk sizeNeilBrown1-2/+2
2015-06-18Assemble: ensure stripe_cache is big enough to handle new chunk sizeNeilBrown1-1/+5
2015-06-17mdadm: change the num of cluster nodeGuoqing Jiang1-0/+3
2015-06-17mdadm: add the ability to change cluster nameGuoqing Jiang1-1/+4
2015-05-13Assemble: don't check for pre-existing array when updating uuid.NeilBrown1-1/+4
2015-04-08Assemble/force: make it possible to "force" a new device in a reshape.NeilBrown1-5/+30
2015-04-08Assemble: remove stray ':' from error message.NeilBrown1-1/+1
2015-04-08Revert "Assemble: support assembling of a RAID0 being reshaped."NeilBrown1-3/+1
2015-04-08Assemble: fix "no uptodate device" message.NeilBrown1-1/+1
2015-03-04Assemble: don't ignore the return value from stat.NeilBrown1-7/+6
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-30/+14
2014-07-29Assemble: Only fail auto-assemble in face of mdadm.conf conflicts.NeilBrown1-21/+26
2014-07-08IMSM: Add warning message when assemble spanned containerPawel Baldysiak1-0/+16
2014-06-05Incremental: remove old devices when assembling in container.NeilBrown1-4/+19
2014-05-22Grow: fix resent grow_continue breakage.NeilBrown1-2/+2
2014-05-15Grow: store a link to current backup file in /run/mdadm or similar.NeilBrown1-1/+3
2014-02-25Assemble: change load_devices to return most_recent 'st' value.NeilBrown1-1/+5
2014-02-25Assemble: re-arrange freeing of 'tst' in load_devices().NeilBrown1-8/+11
2014-02-25Assemble: allow load_devices to change the 'st' which is passed in.NeilBrown1-2/+8
2014-01-20Assemble: avoid infinite loop when auto-assembling partial container.NeilBrown1-0/+4
2013-12-05Assemble/Incremental: don't hold O_EXCL on mddev after assembly.NeilBrown1-0/+1
2013-11-28Incremental: add --export handling.NeilBrown1-5/+14
2013-11-28Restructure assemble_container_content and improve messages.NeilBrown1-77/+99
2013-10-22Assembe: fix bug in force_array - it wasn't forcing properly.NeilBrown1-3/+7
2013-09-13Make -IRs and --run work properly for containers.NeilBrown1-1/+1
2013-09-03Release mdadm-3.3mdadm-3.3NeilBrown1-1/+1
2013-09-02Assemble: don't ever consider a 'spare' to be the 'most recent'.NeilBrown1-5/+8
2013-07-10Don't set 'hold' option for mdstat_read if not needed.NeilBrown1-1/+1
2013-07-08Assemble: avoid a consistency check when --force is given.NeilBrown1-1/+1
2013-07-02Assemble: improve messages when restarting a reshape.NeilBrown1-0/+9
2013-07-02Assemble: ignore devices= if container= is present.NeilBrown1-22/+25
2013-07-02Assemble: write raid-disks should be less fatal.NeilBrown1-0/+1
2013-06-27Assemble: remove some stray tracing.NeilBrown1-2/+0
2013-06-19Add test for interaction of --assemble with --incrNeilBrown1-2/+5
2013-06-19Remove lots of unnecessary white space.NeilBrown1-2/+1
2013-06-19Assemble: when forcing a single-degraded RAID6 array, trigger a 'repair'.NeilBrown1-6/+23
2013-06-17Assemble/Incr: Don't include spares with too-high event count.NeilBrown1-5/+13
2013-05-30Make sure NOFILE resource limit is big enough.NeilBrown1-0/+1
2013-05-28Assemble: --update=metadata converts v0.90 to v1.0NeilBrown1-3/+10
2013-02-21Discard devnum in favour of devnmNeilBrown1-20/+20
2012-12-05Assemble: fix spelling: report_missmatch -> report_mismatchNeilBrown1-23/+23
2012-12-05Assemble: Don't auto-assemble arrays which conflict with mdadm.confNeilBrown1-0/+7
2012-11-22Assemble: ensure that <ignore>d arrays are not auto-assembled.NeilBrown1-1/+16
2012-11-20Assemble: fix call to wait_forNeilBrown1-2/+4
2012-11-20Assemble: Fix critical-section-recovery when assembling a growing array.NeilBrown1-3/+3
2012-11-20IMSM - allow assembling any imsm array even without OROM.NeilBrown1-0/+2
2012-10-24Assemble: add support for replacement devices.NeilBrown1-20/+33
2012-10-22Assemble.c - re-indent file.NeilBrown1-62/+62
2012-10-22Assemble: remove support for assembling arrays with ancient kernel.NeilBrown1-73/+49
2012-10-22Assemble: split out "start_array()" function.NeilBrown1-281/+282
2012-10-18Assemble: split out force_array()NeilBrown1-90/+105
2012-10-18Assemble: split out load_devices() functionality.NeilBrown1-202/+232
2012-10-18Assemble: split out select_devices function.NeilBrown1-151/+173
2012-10-10Fix up interactions between --assemble and --incrementalNeilBrown1-66/+153
2012-10-04New RESHAPE_NO_BACKUP flag to track when backup action is needed.NeilBrown1-1/+3
2012-07-09Assemble: don't leak memory with fdlist.NeilBrown1-0/+1
2012-07-09Change Incremental and related functions to take struct contextNeilBrown1-16/+12
2012-07-09Convert Assemble() to take a context rather than a list of options.NeilBrown1-62/+59
2012-07-09Assemble: allow arrays to be assembled read-only.NeilBrown1-2/+15
2012-07-09Remove scattered checks for malloc success.NeilBrown1-6/+5
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-132/+122
2012-05-15Don't consider disks with a valid recovery offset as candidates for bumping u...Alexander Lyakas1-0/+1
2012-04-17FIX: Assembled second array is in read only state during reshapeAdam Kwolek1-8/+21
2012-03-22Assemble: improve verbose logging when including old devices.NeilBrown1-2/+4
2012-03-07Assemble: support assembling of a RAID0 being reshaped.NeilBrown1-1/+3
2012-03-07Assemble: don't use O_EXCL until we have checked device content.NeilBrown1-1/+24
2012-02-09FIX: Array is not run when expansion disks are addedAdam Kwolek1-1/+1
2012-02-07Assemble: fix --force assemble during reshape.NeilBrown1-3/+11
2012-02-07Remove avail_disks arg from 'enough'.NeilBrown1-8/+8
2011-12-23Assemble: fix count in "assembled with .. but not started".NeilBrown1-4/+8
2011-12-23Assemble: make some plurals conditional.NeilBrown1-6/+8
2011-12-20Remove update_privateNeilBrown1-3/+0
2011-12-13Resolve some more warningsNeilBrown1-1/+3
2011-11-21fix: correct metadata's update communicationLukasz Dorau1-0/+3
2011-11-02Assemble(): don't dup_super() before we need it.Jes Sorensen1-1/+3
2011-11-02assemble_container_content(): fix memory leakJes Sorensen1-1/+4
2011-11-01Fix memory leakJes Sorensen1-0/+1
2011-10-31kill-subarray: fix, IMSM cannot kill-subarray with unsupported metadataLabun, Marcin1-8/+13
2011-10-07Always run Grow_continue() for started array.Adam Kwolek1-4/+13
2011-10-05Monitor reshaped arrayAdam Kwolek1-0/+6
2011-10-05Add recovery blocked field to mdinfoAdam Kwolek1-1/+1
2011-10-03Do not continue reshape during initrd phaseAdam Kwolek1-5/+7
2011-09-21Move restore backup code to functionAdam Kwolek1-37/+3
2011-09-21FIX: Memory leak during AssemblyAdam Kwolek1-0/+1
2011-06-17Don't index past the end of 'best' array in Assemble.NeilBrown1-1/+1
2011-06-08Add reshape restart support for external metadataAdam Kwolek1-4/+10
2011-06-08getinfo_super now clears the 'info' structure before filling it in.NeilBrown1-2/+0
2011-04-18FIX: Count correctly added devicesAdam Kwolek1-2/+3
2011-03-23Assemble: improve efficacy of -Af in assembling degraded dirty arrays.NeilBrown1-0/+5
2011-03-18FIX: ping_monitor() usage causes memory leaksAdam Kwolek1-1/+1
2011-03-10Remove incorrect use of open_devNeilBrown1-2/+7
2011-03-10FIX: Make expansion counter usableAdam Kwolek1-6/+7
2011-03-10FIX: Block reshaped array monitoringAdam Kwolek1-0/+3
2011-03-08Run Grow_restart/Grow_continue when assembling the content of a container.NeilBrown1-13/+38
2011-03-02Continue reshape after assembling arrayAdam Kwolek1-12/+20
2011-02-27FIX: disks added beyond array should be counted during reshapeAdam Kwolek1-1/+9
2011-02-01Various compile fixes.NeilBrown1-0/+2
2011-02-01Allow explicitly listed spared to be included by default.NeilBrown1-4/+9
2011-02-01Allow domain_test to report that no domains were found.NeilBrown1-1/+1
2011-02-01free_super after assembling a containerNeilBrown1-0/+1
2011-02-01Assemble: ignore unknown devices not listed on command line.NeilBrown1-1/+1
2011-02-01Assemble: allow to assemble container with uuid=0:0:0:0Czarnowska, Anna1-1/+4
2011-01-05Assemble: allow to assemble spares on their ownAnna Czarnowska1-7/+34
2011-01-05Assemble: we need to read policy to know array domainsAnna Czarnowska1-1/+4
2010-12-26Assemble imsm spares in matching domain onlyAnna Czarnowska1-1/+38
2010-12-26FIX: Bad block verification during assembling arrayKrzysztof Wojcik1-0/+7
2010-12-01Assemble: allow an array undergoing reshape to be started without backup fileNeilBrown1-3/+12
2010-12-01fix: assemble for external metadata generates segfault if invalid device foundHawrylewicz Czarnowski, Przemyslaw1-1/+2
2010-11-30Assemble: call remove_partitions later.NeilBrown1-4/+6
2010-11-23Assemble: fix assembly in the delta_disks > max_degraded caseDan Williams1-1/+3
2010-11-23Assemble: get content before testing it.NeilBrown1-0/+5
2010-11-22Assemble: use load_containerNeilBrown1-86/+110
2010-11-22Assemble: turn next_member goto loop into a for loop.NeilBrown1-21/+19
2010-11-22Assemble: simplify the handling of is_member_busy.NeilBrown1-14/+2
2010-11-22Assemble: remove the skip variable.NeilBrown1-4/+1
2010-11-22Assemble: merge 'member' test into ident_matches.NeilBrown1-22/+15
2010-11-22Assemble: change 'skip' label to a variable.NeilBrown1-16/+17
2010-11-22Remove content from mddev_devNeilBrown1-8/+7
2010-11-22Assemble: contract next_member loop.NeilBrown1-5/+4
2010-11-22Assemble: merge to large 'if' statements.NeilBrown1-15/+19
2010-11-22Improve type names for mddev_devNeilBrown1-3/+3
2010-11-22Improve mddev_ident type definitions.NeilBrown1-2/+2
2010-11-22Assemble: factor out ident_matchesNeilBrown1-34/+49
2010-11-22Assemble: small cleanup of error checking.NeilBrown1-33/+26
2010-11-22Add subarray arg to container_content.NeilBrown1-1/+1
2010-11-22Assemble - avoid including wayward devices.NeilBrown1-2/+23
2010-11-22Assemble: handle devices array better.NeilBrown1-3/+22
2010-11-22get_info_super: report which other devices are thought to be working/failed.NeilBrown1-6/+6
2010-11-22Report error in --update string is not recognised.NeilBrown1-9/+21
2010-09-06Convert 'auto' config line to policy statementsNeilBrown1-1/+8
2010-09-06Add mbr pseudo metadata handler.NeilBrown1-2/+8
2010-09-06Use action policy to keep recently-disconnected devices in the array.NeilBrown1-0/+23
2010-08-05Compile with -Wextra by defaultNeilBrown1-13/+13
2010-07-06Assemble: Fix honouring of 'auto' config lineNeilBrown1-0/+1
2010-03-10Assemble: fix some recently introduced bugs.NeilBrown1-10/+17
2010-03-03config: add 'homehost' option to 'AUTO' line.NeilBrown1-1/+2
2010-02-24Assemble: clean up properly if we cannot add the bitmap file.NeilBrown1-0/+4
2010-02-24Assemble: check inargv before complaining about stray arguments.NeilBrown1-1/+1
2010-02-04Assemble: fix --force assembly of v1.x arrays which are recovering.NeilBrown1-1/+3
2010-01-28Assemble: error-check ->load_superNeilBrown1-2/+16
2009-11-19Assemble: fix testing of 'verbose' flag.NeilBrown1-2/+2
2009-11-17Replace all relevant occurrences of -4 with LEVEL_MULTIPATHNeilBrown1-2/+2
2009-11-17Assemble: include ACTIVE but not in-sync devices as non-spares.NeilBrown1-1/+1
2009-10-22Merge branch 'master' into devel-3.1NeilBrown1-0/+27
2009-10-20Compile fixes for mdassembleNeilBrown1-0/+2