summaryrefslogtreecommitdiffstats
path: root/Grow.c
AgeCommit message (Expand)AuthorFilesLines
2021-04-06mdadm: fix growing containersNigel Croxon1-8/+11
2021-03-09Grow: Block reshape when external metadata and write-intent bitmapJakub Radtke1-9/+15
2021-03-03Grow: be careful of corrupt dev_roles listNeilBrown1-3/+12
2021-03-03mdadm: fix reshape from RAID5 to RAID6 with backup fileNigel Croxon1-2/+5
2020-11-25mdadm: Unify forks behaviourMariusz Tkaczyk1-45/+7
2020-06-18mdadm/Grow: prevent md's fd from being occupied during delayed timeallenpeng1-1/+1
2019-02-13Fix reshape for decreasing data offsetCorey Hickey1-2/+2
2019-02-11Fix spelling typos.Dimitri John Ledkov1-3/+3
2018-12-06Grow: report correct new chunk size.NeilBrown1-1/+1
2018-12-06Grow: avoid overflow in compute_backup_blocks()NeilBrown1-1/+2
2018-08-01Grow: Frozen array can't be idleMariusz Tkaczyk1-1/+2
2018-07-11Coverity: Resource leak: close fd before returnAnthony Youngman1-0/+1
2018-04-27mdadm/grow: correct size and chunk_size castingRoman Sobanski1-1/+1
2018-01-25Grow.c: Block any level migration with chunk size changeMariusz Tkaczyk1-0/+5
2017-11-28mdadm/grow: correct the s->size > 1 to make 'max' workZhilong Liu1-1/+1
2017-11-09To support clustered raid10Guoqing Jiang1-0/+6
2017-10-11mdadm/grow: adding a test to ensure resize was requiredZhilong Liu1-2/+2
2017-10-02Grow: Use all 80 charactersJes Sorensen1-220/+197
2017-10-02Grow: fix switching on PPL during recoveryPawel Baldysiak1-3/+0
2017-10-02mdadm/grow: Component size must be larger than chunk sizeZhilong Liu1-0/+6
2017-10-02Grow: stop previous reshape process firstTomasz Majchrzak1-2/+2
2017-08-16Error messages should end with a newline character.NeilBrown1-2/+2
2017-06-09Grow: don't allow to enable PPL when reshape is in progressTomasz Majchrzak1-0/+12
2017-06-09Grow: don't allow array geometry change with ppl enabledTomasz Majchrzak1-0/+7
2017-06-05Grow: set component size prior to array sizeTomasz Majchrzak1-0/+2
2017-05-16mdadm: Fixup != broken formattingJes Sorensen1-6/+7
2017-05-16mdadm: Fixup more broken logical operator formattingJes Sorensen1-7/+9
2017-05-16mdadm: Fixup a large number of bad formatting of logical operatorsJes Sorensen1-18/+16
2017-05-05mdadm/util: unify fstat checking blkdev into functionZhilong Liu1-6/+4
2017-05-03change back 0644 permission for Grow.cZhilong Liu1-0/+0
2017-05-02Grow: Grow_continue_command: Avoid aliasing array variableJes Sorensen1-3/+3
2017-04-20Grow_continue_command: ensure 'content' is properly initialised.NeilBrown1-0/+1
2017-04-05Grow: Stop bothering about md driver versions older than 0.90.00Jes Sorensen1-7/+0
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-6/+33
2017-03-30Grow: Do not shadow an existing variableJes Sorensen1-3/+3
2017-03-30Grow: Remove unnecessary optimizationJes Sorensen1-12/+0
2017-03-29util: Introduce md_set_array_info()Jes Sorensen1-9/+8
2017-03-29util: Introduce md_get_disk_info()Jes Sorensen1-7/+7
2017-03-29util: Introduce md_get_array_info()Jes Sorensen1-15/+16
2017-03-29Grow: Fixup a pile of cosmetic issuesJes Sorensen1-28/+32
2017-03-29Grow: support consistency policy changeArtur Paszkiewicz1-0/+172
2017-03-29super1: PPL supportArtur Paszkiewicz1-1/+14
2017-03-28Add 'force' flag to *hot_remove_disk().NeilBrown1-1/+1
2017-03-28Retry HOT_REMOVE_DISK a few times.NeilBrown1-8/+1
2016-11-17Increase buffer for sysfs disk stateTomasz Majchrzak1-2/+4
2016-10-19Allow level migration only for single-array containerMariusz Dabrowski1-0/+20
2016-06-16MDADM:Check mdinfo->reshape_active more times before calling Grow_continueXiao Ni1-30/+37
2016-06-03Use dev_t for devnm2devid and devid2devnmMike Lovell1-1/+1
2016-05-12Grow: Apply some more consistent formatting to Grow_addbitmap()Jes Sorensen1-20/+21
2016-05-12Grow: Simplify error paths in Grow_addbitmap()Jes Sorensen1-10/+10
2016-05-12mdadm: Make add_internal_bitmap() return 0 on successJes Sorensen1-1/+1
2016-05-12Grow: Handle failure to load superblock in Grow_addbitmap()Jes Sorensen1-1/+6
2016-05-12Grow: Grow_addbitmap() reduce indentationJes Sorensen1-18/+18
2016-03-24Change the option from NoUpdate to NodeNumUpdateGuoqing Jiang1-1/+1
2016-03-22Grow: goto release if Manage_subdevs failedGuoqing Jiang1-3/+5
2016-03-11Grow: analyse_change add notification about only 2-device can be convert from...Yi Zhang1-0/+3
2016-03-11Grow: close fd earlier to avoid "cannot get excl access" when stoppingPawel Baldysiak1-0/+4
2016-03-09Grow: Grow_addbitmap(): Add check to quiet down static code checkersJes Sorensen1-1/+8
2016-03-09Grow: Grow_continue_command() remove dead codeJes Sorensen1-6/+1
2016-02-22Grow: Add documentation to abort_reshape() for suspend_{lo,hi} settingJes Sorensen1-0/+8
2015-12-24Grow: close file descriptor earlier to avoid "still in use" when stoppingArtur Paszkiewicz1-0/+3
2015-12-22Check and remove bitmap first when reshape to raid0Xiao Ni1-0/+9
2015-12-16mdadm: output info more precisely when change bitmap to noneGuoqing Jiang1-2/+5
2015-12-16mdadm: Change timestamps to unsigned data type.Deepa Dinamani1-2/+2
2015-09-28Increment version for clustered bitmapsGoldwyn Rodrigues1-0/+3
2015-07-27Merge branch 'cluster'NeilBrown1-4/+8
2015-07-06Grow: remove stray tracing message.NeilBrown1-3/+1
2015-06-18Grow: fix typo in commentNeilBrown1-1/+1
2015-06-17mdadm: add the ability to change cluster nameGuoqing Jiang1-1/+1
2015-06-17Convert a bitmap=none device to clusteredGuoqing Jiang1-3/+7
2015-05-28Grow: fix a couple of typos.NeilBrown1-2/+2
2015-05-28Grow: fix problem with --grow --continueNeilBrown1-3/+4
2015-05-25Grow: another attempt to fix stop-during-reshape race.NeilBrown1-16/+18
2015-05-15Grow: be even more careful about handing a '0' completed value.NeilBrown1-1/+3
2015-05-15Grow: retry when writing 'reshape' to 'sync_action' is EBUSY.NeilBrown1-3/+8
2015-05-15Grow: be more careful if array is stopped during critical section.NeilBrown1-3/+10
2015-05-15Grow: add missing space in message.NeilBrown1-1/+1
2015-05-14Grow: only warn about incompatible metadata when no fallback available.NeilBrown1-1/+3
2015-03-26reshape: support raid5 grow on certain older kernels.NeilBrown1-2/+13
2015-02-25Grow.c: Fix classic readlink() buffer overflowJes Sorensen1-1/+1
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-123/+59
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-10/+9
2015-02-12Change way of printing name of a processPawel Baldysiak1-9/+9
2014-12-02Grow: Fix wrong 'goto' in set_new_data_offsetPawel Baldysiak1-1/+1
2014-10-29Grow: fix resize of array component size to > 32bitsJustin Maggard1-1/+1
2014-09-03Grow: Report when grow needs metadata updateAndy Smith1-1/+3
2014-07-29Grow: improve error message is "--grow -n2" used on Linear arrays.NeilBrown1-1/+6
2014-07-21Grow: fix that preventing resize of array to 32bit size.NeilBrown1-1/+1
2014-07-17Grow: Do not try to restart if reshape is runningPawel Baldysiak1-1/+4
2014-06-12Grow: fix removal of line in wrong casePawel Baldysiak1-1/+1
2014-06-05Make sure "make everything" builds again.NeilBrown1-1/+3
2014-06-02Grow: Do not fork via systemd if freeze_reshape is setBaldysiak, Pawel1-1/+1
2014-06-02Grow: Use 'forked' also for reshape_container in Grow_continueBaldysiak, Pawel1-1/+1
2014-06-02Do not set default 'before.layout' when reshaping from RAID4 to RAID4Baldysiak, Pawel1-1/+0
2014-05-22mdadm: Do not reimplment offsetofCristian Rodríguez1-4/+1
2014-05-22Grow: fix resent grow_continue breakage.NeilBrown1-3/+3
2014-05-20Reshape: use systemd to continue containers as well as native arrays.NeilBrown1-0/+4
2014-05-20Grow: split continue_via_systemd into a separate function.NeilBrown1-47/+48
2014-05-20Grow: add 'forked' option to reshape_container.NeilBrown1-7/+7
2014-05-15Grow: try to let "--grow --continue" from systemd complete a reshape.NeilBrown1-2/+58
2014-05-15Grow: store a link to current backup file in /run/mdadm or similar.NeilBrown1-2/+52
2014-01-20Grow: fix problems with prematurely aborting of reshapes.NeilBrown1-3/+13
2013-09-03Release mdadm-3.3mdadm-3.3NeilBrown1-1/+1
2013-08-28Grow: fix hang when growing a RAID5.NeilBrown1-0/+1
2013-08-01Grow: exit background thread cleanly on SIGTERM.NeilBrown1-2/+13
2013-07-31Avoid double close()Jes Sorensen1-0/+2
2013-07-24Grow: don't hold array open while waiting for reshape.NeilBrown1-2/+4
2013-07-11Grow: pass INVALID_SECTORS to reshape_array, not 0.NeilBrown1-2/+3
2013-07-10Grow: use mdstat_wait to wait for delayed reshape.NeilBrown1-3/+3
2013-07-04Grow: notice when --stop is synchronising a reshape and don't mess it up.NeilBrown1-3/+12
2013-07-04Grow: fix small bug when reshape interrupted.NeilBrown1-0/+1
2013-07-02Assemble: improve messages when restarting a reshape.NeilBrown1-2/+3
2013-07-01Manage: check alignment when stopping an array undergoing reshape.NeilBrown1-11/+0
2013-07-01New function: sysfs_waitNeilBrown1-20/+8
2013-06-27Grow: fix crash when restarting an array.NeilBrown1-0/+10
2013-06-27Grow: lack of head/tail space not fatal for RAID5 etc.NeilBrown1-3/+13
2013-06-27Grow: report better message when --grow --chunk cannot work.NeilBrown1-7/+16
2013-06-24Grow: chose default layout when converting from RAID0.NeilBrown1-0/+4
2013-06-24Grow: centralise level-change code.NeilBrown1-66/+112
2013-06-24Grow: remove excess drives when converting to RAID0.NeilBrown1-0/+39
2013-06-24Grow: clear new_layout when we change the level.NeilBrown1-0/+1
2013-06-24Grow: analyse_change needs to set new_size even if nothing much is happening.NeilBrown1-0/+1
2013-06-24Grow: fix two problems with new_data_offsetNeilBrown1-2/+4
2013-06-24Grow: Try hard to set new_offset.NeilBrown1-4/+15
2013-06-24Grow: Make sure new data-offset is well-alignedNeilBrown1-16/+51
2013-06-19Grow: a data_offset should not be tested against 0.NeilBrown1-1/+1
2013-06-19Remove lots of unnecessary white space.NeilBrown1-2/+0
2013-06-19Grow: fix up recent changes to set_new_data_offset.NeilBrown1-23/+21
2013-05-30Make sure NOFILE resource limit is big enough.NeilBrown1-0/+2
2013-05-28Grow_continue: handle RESHAPE_NO_BACKUP correctly.NeilBrown1-4/+8
2013-05-28Grow: allow for different sized devices when updating data_offset.NeilBrown1-16/+49
2013-05-28Assemble: allow --update=revert-reshapeNeilBrown1-1/+2
2013-05-22Grow: allow a reshape which only changes --data-offsetNeilBrown1-0/+4
2013-05-22Grow: E2BIG should be reporte differently if --data-offset was requested.NeilBrown1-0/+5
2013-05-22Grow: --backup-file and --data-offset are incompatible.NeilBrown1-3/+4
2013-05-22Grow: handle E2BIG from new_offset changes more gracefully.NeilBrown1-2/+5
2013-05-22Grow: allow --data-offset to be specified for raid4/5/6NeilBrown1-1/+2
2013-05-22Grow: allow metadata to indicate that changing data_offset not supported.NeilBrown1-0/+5
2013-05-22Grow: use new_data_offset instead of backups for raid4/5/6 reshape.NeilBrown1-0/+34
2013-05-22Grow: introduce min_offset_change to struct reshape.NeilBrown1-12/+14
2013-05-22Grow: have analyse_change zero the reshape structure first.NeilBrown1-12/+2
2013-05-21Grow.c: split impose_reshape out as a function.NeilBrown1-64/+82
2013-05-21Grow.c: split out update_cache_size() function.NeilBrown1-19/+27
2013-05-21Grow.c remove some pointless casts on 'data_offset'.NeilBrown1-4/+2
2013-05-21Change some fprintf(stderrs to cont_err()NeilBrown1-7/+6
2013-05-21Change some "fprintf(stderr,"s to pr_err.NeilBrown1-15/+14
2013-05-21Grow: set_new_data_offset should report if kernel is too old.NeilBrown1-1/+10
2013-05-21comment typoNeilBrown1-1/+1
2013-05-21Grow: just pass delta_disks instead of all of 'info'.NeilBrown1-4/+4
2013-05-21Grow: split out code for setting new_data_offsetNeilBrown1-50/+68
2013-05-21Grow: replace '1' with 'INVALID_SECTORS' where appropriate.NeilBrown1-7/+7
2013-02-21Discard devnum in favour of devnmNeilBrown1-83/+64
2013-02-21Grow: fix problem with reshaping RAID4 to RAID0.NeilBrown1-1/+5
2013-02-21Grow: disallow --size changes on RAID0 and Linear.NeilBrown1-0/+6
2012-11-22Grow: fix bug when multiple arrays present.NeilBrown1-1/+1
2012-11-20Grow.c: fix uninitialized variables compilation-time errorLukasz Dorau1-1/+2
2012-11-20Grow: fix reshape from RAID5 to RAID1.NeilBrown1-1/+3
2012-10-11Grow: fix a couple of typos with --assume-clean usageNeilBrown1-2/+2
2012-10-09Grow: allow --grow --continue to work for native metadata.NeilBrown1-4/+37
2012-10-04Grow/raid10: support reducing the devices in a RAID10.NeilBrown1-11/+78
2012-10-04Grow: add raid10 reshape.NeilBrown1-38/+318
2012-10-04Split 'GCD' out into a separate function.NeilBrown1-6/+12
2012-10-04Add --data-offset flag for Create and GrowNeilBrown1-0/+6
2012-10-03Grow: make warning about old metadata more explicit.NeilBrown1-3/+2
2012-10-03Grow - be careful about 'delayed' reshapes.NeilBrown1-0/+34
2012-09-20grow: fix typo : MAX_DISKS -> MAX_SIZENeilBrown1-1/+1
2012-08-13Grow.c: change size to be unsigned and use '0' in case of 'no change'Lukasz Dorau1-5/+5
2012-08-13Minor cosmetic fixes in various files.NeilBrown1-16/+27
2012-08-13Fix default size calculations that were recently broken.NeilBrown1-1/+3
2012-07-09Use new struct context and struct shape for Grow_addbitmapNeilBrown1-10/+10
2012-07-09Use new struct context and struct shape in Grow_reshapeNeilBrown1-70/+68
2012-07-09Change the values for "max size" from -1 to 1.NeilBrown1-11/+12
2012-07-09Convert 'quiet' to 'not verbose' in various places.NeilBrown1-20/+20
2012-07-09Remove scattered checks for malloc success.NeilBrown1-14/+7
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-206/+182
2012-05-15Grow: don't print message if unfreezing fails.NeilBrown1-2/+0
2012-05-15Grow: fix --layout=preserve to match man page.NeilBrown1-1/+29
2012-05-03Grow: failing the set the per-device size is not an error.NeilBrown1-1/+3
2012-04-30Introduce sysfs_set_num_signed() and use it to set bitmap/offsetJes Sorensen1-2/+2
2012-04-23fix: correct extending size of raid0 arrayLukasz Dorau1-1/+1
2012-04-17FIX: Size change is possible as standalone change onlyAdam Kwolek1-1/+1
2012-04-17FIX: Detect error and rollback metadataAdam Kwolek1-2/+11
2012-04-17FIX: Respect metadata size limitationsAdam Kwolek1-0/+21
2012-04-17FIX: Extend size of raid0 arrayAdam Kwolek1-0/+35
2012-04-17FIX: Support metadata changes rollbackAdam Kwolek1-6/+10
2012-04-17imsm: Execute size change for external metatdataAdam Kwolek1-31/+47
2012-03-22Grow: print useful error when converting RAID1->RAID5 will fail.NeilBrown1-0/+4
2012-03-22Remove possible crash during RAID6 -> RAID5 reshape.NeilBrown1-6/+22
2012-02-20FIX: Changes in '0' case for reshape position verificationAdam Kwolek1-2/+10
2012-02-09FIX: Do not try to (continue) reshape using inactive arrayAdam Kwolek1-0/+14
2012-02-09FIX: restart reshape when reshape process is stopped just between 2 reshapesAdam Kwolek1-0/+12
2012-02-09FIX: use md position to reshape restartAdam Kwolek1-26/+60
2012-02-09Flush mdmon before next reshape step during container operationAdam Kwolek1-2/+10
2012-01-30FIX: Typo error in fprint commandAdam Kwolek1-1/+1
2012-01-30FIX: mdmon check in reshape_container() can cause a problemAdam Kwolek1-6/+0
2012-01-30FIX: External metadata sometimes is not updatedAdam Kwolek1-0/+1
2011-12-23Grow/bitmap: support adding bitmap via sysfs.NeilBrown1-4/+20
2011-12-23Grow.c: fix lots of white-space issues.NeilBrown1-43/+41
2011-12-23Grow: fix reshape-array for shrinking reshapes.NeilBrown1-3/+5
2011-12-23Grow: fix start_reshape for shrinking arrays.NeilBrown1-4/+9