aboutsummaryrefslogtreecommitdiffstats
path: root/Incremental.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-22mdadm: fix grow segfault for IMSMMariusz Tkaczyk1-0/+1
2024-03-11Monitor, Incremental: use device policiesMariusz Tkaczyk1-1/+1
2024-03-11mdadm: drop get_required_spare_criteria()Mariusz Tkaczyk1-23/+54
2024-03-11mdadm: Add functions for spare criteria verificationMariusz Tkaczyk1-1/+1
2024-02-09Revert "mdadm: remove container_enough logic"Mariusz Tkaczyk1-0/+9
2024-01-24Replace "none" with macroMateusz Kusiak1-1/+1
2024-01-24Define sysfs max buffer sizeMateusz Kusiak1-1/+1
2023-10-26mdadm: remove container_enough logicPawel Piatkowski1-11/+0
2023-10-26Incremental: remove obsoleted calls to udisksColy Li1-51/+13
2023-05-08mdadm: define is_devname_ignore()Mariusz Tkaczyk1-4/+2
2023-05-08mdadm: define DEV_MD_DIRMariusz Tkaczyk1-2/+2
2023-04-10Fix null pointer for incremental in mdadmmiaoguanqin1-0/+3
2023-01-04incremental, manage: do not verify if remove is safeKinga Tanska1-1/+1
2023-01-04Manage&Incremental: code refactor, string to enumMateusz Kusiak1-4/+4
2022-09-29mdadm: replace container level checking with inlineKinga Tanska1-2/+2
2022-06-14Incremental: Fix possible memory and resource leaksMateusz Grzonka1-9/+23
2021-11-24Correct checking if file descriptors are validMateusz Grzonka1-2/+2
2021-11-24Incremental: Close unclosed mdfd in IncrementalScan()Mateusz Grzonka1-5/+6
2021-03-08imsm: add verbose flag to compare_superMariusz Tkaczyk1-1/+1
2020-12-20Incremental: Remove redundant spare movement logicMariusz Tkaczyk1-62/+0
2020-11-25mdadm: Unify forks behaviourMariusz Tkaczyk1-0/+1
2019-07-10mdadm: load default sysfs attributes after assemblationMariusz Dabrowski1-0/+1
2018-12-06policy: support devices with multiple paths.NeilBrown1-1/+4
2018-08-03Incremental: remove external arrays and devices correctlyMariusz Tkaczyk1-26/+52
2018-06-11Free map to avoid resource leak issuesGuoqing Jiang1-0/+4
2017-11-01Incremental: Use ->validate_geometry instead of ->avail_sizeNeilBrown1-6/+9
2017-09-01mdadm: set journal_clean after scanning all disksSong Liu1-2/+6
2017-06-05Get failed disk count from array stateTomasz Majchrzak1-10/+4
2017-05-09Add sector size as spare selection criterionAlexey Obitotskiy1-2/+2
2017-05-09Allow more spare selection criteriaAlexey Obitotskiy1-7/+11
2017-05-05IncrementalScan: Use md_array_active() instead of md_get_array_info()Jes Sorensen1-2/+1
2017-05-05container_members_max_degradation: Switch to using syfs for disk infoJes Sorensen1-14/+14
2017-05-05Incremental: return is not a functionJes Sorensen1-1/+1
2017-05-05mdadm/util: unify stat checking blkdev into functionZhilong Liu1-17/+4
2017-05-05mdadm/util: unify fstat checking blkdev into functionZhilong Liu1-21/+12
2017-05-02Incremental: Use md_array_active() to determine state of arrayJes Sorensen1-2/+1
2017-05-02Create: tell udev md device is not ready when first created.NeilBrown1-2/+2
2017-04-25Incremental: Cleanup some if() statement spaghettiJes Sorensen1-29/+21
2017-04-25Incremental: Use md_array_active() where applicableJes Sorensen1-3/+2
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-2/+10
2017-03-29Incremental: Remove redundant call for GET_ARRAY_INFOJes Sorensen1-8/+6
2017-03-29util: Introduce md_get_array_info()Jes Sorensen1-6/+5
2017-03-29super1: PPL supportArtur Paszkiewicz1-0/+3
2016-11-29Introduce enum flag_mode for setting and clearing flags.NeilBrown1-2/+2
2016-11-28Add failfast support.NeilBrown1-0/+1
2016-08-09Incremental: don't try to load_container() for a subarrayArtur Paszkiewicz1-1/+5
2016-03-08Incremental: Remove unnecesary NULL pointer checks when calling sysfs_free()Jes Sorensen1-6/+3
2015-12-21Merge branch 'fix-unlikely-potential-overflows' of https://github.com/sjvs/mdadmNeilBrown1-4/+4
2015-12-16mdadm: let cluster raid could also add disk within incremental modeGuoqing Jiang1-0/+4
2015-12-03avoid confusion with parameter 'devname' with same name, ensure buffer is lar...Bas van Schaik1-3/+3
2015-12-03ensure buffer is large enough for two ints and some extrasBas van Schaik1-1/+1
2015-10-22mdadm: refactor write journal code in Assemble and IncrementalSong Liu1-18/+7
2015-10-19Check write journal in incrementalSong Liu1-4/+27
2015-09-28Fix --incremental handling on cluster array.Goldwyn Rodrigues1-5/+6
2015-08-03Merge branch 'mdadm-3.3.x'NeilBrown1-1/+1
2015-08-03Assemble: really don't assemble IMSM array without OROM.NeilBrown1-1/+1
2015-08-03Assemble: don't assemble IMSM array without OROM.NeilBrown1-5/+4
2015-07-29Assemble: don't assemble IMSM array without OROM.NeilBrown1-5/+4
2015-07-27Merge branch 'cluster'NeilBrown1-0/+5
2015-07-02mdstat: discard 'dev' field, just use 'devnm'NeilBrown1-6/+6
2015-06-17Skip clustered devices in incrementalGuoqing Jiang1-0/+5
2015-03-04IncRemove: Set "auto-read" only after successful excl open.Pawel Baldysiak1-6/+10
2015-03-04IncrementalScan(): Make sure 'st' is valid before dereferencing itJes Sorensen1-1/+1
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-29/+14
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-2/+2
2015-02-12Change way of printing name of a processPawel Baldysiak1-2/+2
2014-11-05Incremental: don't be distracted by partition table when calling try_spare.NeilBrown1-2/+2
2013-12-05Assemble/Incremental: don't hold O_EXCL on mddev after assembly.NeilBrown1-3/+7
2013-12-03Incremental: improve support for "DEVICE" based restriction in mdadm.confNeilBrown1-2/+16
2013-11-28Incremental: add --export handling.NeilBrown1-8/+56
2013-11-28Incremental: don't abort container if one member explicitly disabled.NeilBrown1-1/+1
2013-11-28Incremental: remove test that can never succeed.NeilBrown1-5/+0
2013-09-13Make -IRs and --run work properly for containers.NeilBrown1-8/+45
2013-09-03Release mdadm-3.3mdadm-3.3NeilBrown1-1/+1
2013-08-26Change "mdadm --run" to use the same code as "mdadm --IRs".NeilBrown1-2/+6
2013-06-19Manage: split Manage_runstop into Manage_run and Manage_stopNeilBrown1-2/+1
2013-06-17Assemble/Incr: Don't include spares with too-high event count.NeilBrown1-0/+8
2013-05-29Incremental: allow --quiet to silence from errors from "-If"NeilBrown1-3/+5
2013-05-21Change some "fprintf(stderr,"s to pr_err.NeilBrown1-4/+3
2013-05-14Incremental: remove partitions when assembling.NeilBrown1-0/+2
2013-05-13Incrmental: tell udevs to unmount when array looks to have disappeared.NeilBrown1-1/+22
2013-03-05Enhance incremental removal.NeilBrown1-7/+30
2013-02-21Discard devnum in favour of devnmNeilBrown1-29/+28
2012-11-20Incremental: allow recently removed device to be added as a spare.NeilBrown1-2/+14
2012-11-20IMSM - allow assembling any imsm array even without OROM.NeilBrown1-0/+3
2012-10-24Incremental: support replacement devices.NeilBrown1-2/+4
2012-10-10Fix up interactions between --assemble and --incrementalNeilBrown1-1/+17
2012-10-04New RESHAPE_NO_BACKUP flag to track when backup action is needed.NeilBrown1-0/+11
2012-10-04Add data_offset arg to ->avail_sizeNeilBrown1-1/+5
2012-08-13Minor cosmetic fixes in various files.NeilBrown1-10/+9
2012-07-09Change Incremental and related functions to take struct contextNeilBrown1-55/+43
2012-07-09Assemble: allow arrays to be assembled read-only.NeilBrown1-5/+8
2012-07-09Remove scattered checks for malloc success.NeilBrown1-7/+3
2012-07-09Remove re_add flag in favour of new disposition.NeilBrown1-1/+0
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-105/+82
2012-03-22Incremental: fix adding devices with --incrementalNeilBrown1-4/+4
2012-02-22avoid double-free upon "old buggy kernel" sysfs_read failureJim Meyering1-1/+0
2012-02-07Remove avail_disks arg from 'enough'.NeilBrown1-1/+1
2012-01-12fix: container creation with --incremental used.Lukasz Dorau1-2/+1
2011-12-23Assemble: make some plurals conditional.NeilBrown1-2/+3
2011-12-23Incremental: make sure container name appears in /devNeilBrown1-0/+1
2011-11-03array_try_spare(): open_dev() returns -1 on error, not zeroJes Sorensen1-1/+1
2011-11-02IncrementalScan(): Fix memory leakJes Sorensen1-0/+1
2011-11-02Incremental(): Check return value of dev_open() before trying to use itJes Sorensen1-0/+6
2011-11-01Incremental: Fix a merge error in recent patchNeilBrown1-6/+1
2011-11-01partition_try_spare() use closedir() to release DIR * returned by opendir()Jes Sorensen1-0/+2
2011-11-01Fix memory leak of 'st3' in array_try_spare()Jes Sorensen1-1/+3
2011-11-01Remove duplicated code: search_mdstat and conf_matchNeilBrown1-80/+2
2011-10-31kill-subarray: fix, IMSM cannot kill-subarray with unsupported metadataLabun, Marcin1-9/+23
2011-10-22Incremental() lock error handlingJes Sorensen1-13/+14
2011-10-22array_try_spare(): missing map_unlock()Jes Sorensen1-0/+1
2011-10-22Don't tell sysfs to launch the container as we are doing it ourselvesJes Sorensen1-1/+0
2011-10-22Remove race for starting container devices.Jes Sorensen1-15/+17
2011-10-03Do not continue reshape during initrd phaseAdam Kwolek1-6/+10
2011-10-03fix: correct unlocking of map fileLukasz Dorau1-0/+3
2011-09-08Discourage large devices from being added to 0.90 arrays.NeilBrown1-4/+4
2011-09-07FIX: Prevent using null list pointerNeilBrown1-1/+1
2011-06-17Fix some compiler warnings.Luca Berra1-1/+1
2011-06-15Incr: fix breakage in count_active.NeilBrown1-1/+2
2011-06-08getinfo_super now clears the 'info' structure before filling it in.NeilBrown1-3/+0
2011-03-28Release 3.2.1mdadm-3.2.1NeilBrown1-1/+1
2011-03-18FIX: ping_monitor() usage causes memory leaksAdam Kwolek1-6/+4
2011-03-08Run Grow_restart/Grow_continue when assembling the content of a container.NeilBrown1-1/+1
2011-03-02Continue reshape after assembling arrayAdam Kwolek1-0/+1
2011-02-18FIX: Seg Fault in incremental if BBM log detectedKrzysztof Wojcik1-1/+3
2011-02-01Various compile fixes.NeilBrown1-3/+6
2011-02-01Allow domain_test to report that no domains were found.NeilBrown1-3/+3
2011-02-01Incr: don't exclude 'active' devices from auto inclusion in a container.NeilBrown1-12/+7
2011-01-05Incremental: move suitable spares to container when subarrays started.Anna Czarnowska1-0/+50
2010-12-26Consider target only for spare-same-domainPrzemyslaw Czarnowski1-1/+2
2010-12-26Validate size of potential spare disk for external metadata (with containers)Przemyslaw Czarnowski1-1/+20
2010-12-26Skip domain check for spare-same-slotPrzemyslaw Czarnowski1-9/+10
2010-12-26Added test for array degradation for spare-same-slotPrzemyslaw Czarnowski1-1/+3
2010-12-26external: get number of failed disks for containerPrzemyslaw Czarnowski1-1/+32
2010-12-26FIX: Bad block verification during assembling arrayKrzysztof Wojcik1-0/+6
2010-12-21fix: incremental for bare disks returns invalid valuePrzemyslaw Czarnowski1-2/+2
2010-12-21fix: adding spare via incremental do not trigger recoveryPrzemyslaw Czarnowski1-0/+9
2010-12-09Allow --update=devicesize with --re-addNeilBrown1-4/+5
2010-12-07fix: incremental on invalid container causes segfaultHawrylewicz Czarnowski, Przemyslaw1-1/+1
2010-11-29Incremental - avoid including wayward devices.NeilBrown1-18/+62
2010-11-25Incr: reduce the number of times we load data from sysfs.NeilBrown1-13/+24
2010-11-22Add action=spare-same-slot policy.NeilBrown1-18/+78
2010-11-22incr/spare: recheck allowed action for each metadata.NeilBrown1-0/+10
2010-11-22Incr/spare: make sure failure to identify metadata if handled gracefully.NeilBrown1-0/+7
2010-11-22Incr: fix up return value in try_spareNeilBrown1-2/+2
2010-11-22Factor out is_bare test.NeilBrown1-19/+29
2010-11-22extension of IncrementalRemove to store location (path-id) of removed devicePrzemyslaw Czarnowski1-0/+9
2010-11-22Teach IncrementalRemove about containers.NeilBrown1-1/+19
2010-11-22added --path <path_id> to give the information on the 'path-id' of removed de...Przemyslaw Czarnowski1-1/+7
2010-11-22Add must_be_container helper.NeilBrown1-4/+1
2010-11-22Improve type names for mddev_devNeilBrown1-2/+2
2010-11-22Improve mddev_ident type definitions.NeilBrown1-8/+8
2010-11-22Use load_container in Incremental assembly.NeilBrown1-32/+76
2010-11-22Incremental: Factor out search of mdstatNeilBrown1-65/+83
2010-11-22Make Incremental_container staticNeilBrown1-2/+6
2010-11-22Add subarray arg to container_content.NeilBrown1-1/+1
2010-11-22Incremental - fix small bug in count_active.NeilBrown1-0/+1
2010-11-22get_info_super: report which other devices are thought to be working/failed.NeilBrown1-8/+8
2010-09-06Convert 'auto' config line to policy statementsNeilBrown1-1/+1
2010-09-06Add support for auto-partitioning base devices.NeilBrown1-1/+139
2010-09-06First steps to supporting auto-spare-add to groups of partitioned devices.NeilBrown1-35/+89
2010-09-06Add mbr pseudo metadata handler.NeilBrown1-1/+3
2010-09-06Allow --incremental to add a device as a spare if policy allows.NeilBrown1-0/+176
2010-09-06Use action policy to keep recently-disconnected devices in the array.NeilBrown1-8/+33
2010-09-06Introduce single-exit pattern for IncrementalNeilBrown1-45/+47
2010-08-12Allow --incremental to add spares to an array.NeilBrown1-7/+8
2010-08-10Incremental: return success in 'container not enough' caseDan Williams1-1/+1
2010-07-22Add warnings if we ever fail to get a lock on the mapfile.Doug Ledford1-2/+6
2010-07-22Merge branch 'master' of git://github.com/djbw/mdadmNeilBrown1-1/+10
2010-07-19Incremental: restore assembly for inactive containers, block activeDan Williams1-1/+10
2010-07-06fix: IncrementalRemove leaves open handlePrzemyslaw Czarnowski1-1/+4
2010-07-06Merge branch 'master' of git://github.com/djbw/mdadmNeilBrown1-0/+5
2010-07-06Add --test option to --re-add and similarNeilBrown1-2/+2
2010-07-06Don't let incremental add devices to active arrays.NeilBrown1-0/+16
2010-06-30Add -fail support to --incrementalNeilBrown1-0/+39
2010-06-16Always assume SKIP_GONE_DEVS behaviour and kill the flagDan Williams1-0/+5
2010-05-26Revert "Incremental: honor --no-degraded to delay assembly"Dan Williams1-4/+1
2010-05-26Incremental: honor an 'enough' flag from external handlersDan Williams1-0/+9
2010-03-03config: add 'homehost' option to 'AUTO' line.NeilBrown1-13/+17
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-1/+1
2009-05-11Incr: use devname_matches to when looking in mdadm.conf for bitmap fileNeilBrown1-1/+1
2009-05-11Incremental: fix uninitialised variable.NeilBrown1-2/+2
2009-05-11Incr: cope better with possibility that mp->path might be NULLNeilBrown1-17/+17
2009-05-11Be more consistent about keeping the host: prefix on array names.NeilBrown1-5/+7
2009-05-11Allow homehost to be largely ignored when assembling arrays.NeilBrown1-3/+8
2009-05-11Assemble/Incr : minor tidy up of setting 'trustworthy'.NeilBrown1-0/+2
2009-05-11conf/assemble: new config line "auto".NeilBrown1-0/+9
2009-05-11config: support "ARRAY <ignore> ..." lines in mdadm.confNeilBrown1-1/+19
2009-05-11assemble: support arrays created with --homehost=anyNeilBrown1-2/+3
2009-04-07Incremental - avoid NULL dereference.NeilBrown1-25/+27
2009-04-07Incremental: be more relaxed about member arrays not completely assembling.NeilBrown1-7/+10
2009-04-07wait_for improvement.NeilBrown1-3/+3
2009-03-10Incremental/container: don't create when we should just be opening.NeilBrown1-7/+10
2009-03-10Incremental: fix some handling of trustworthy.NeilBrown1-12/+14
2009-02-24Incremental: honor --no-degraded to delay assemblyDan Williams1-1/+4
2009-02-24Incremental: fix 'name_to_use' in the container caseDan Williams1-2/+9
2008-12-18Merge branch 'master' into devel-3.0NeilBrown1-53/+0
2008-12-18map: rebuild map if it doesn't exist.NeilBrown1-47/+0
2008-11-07Assemble: close mdfd before returning from assemble_container_contentNeilBrown1-1/+0
2008-11-04Wait for name to appear after create/assemble etc.NeilBrown1-0/+2