summaryrefslogtreecommitdiffstats
path: root/super1.c
AgeCommit message (Expand)AuthorFilesLines
2021-07-16mdadm/super1: It needs to specify int32 for bitmap_offsetXiao Ni1-1/+1
2021-03-08imsm: add verbose flag to compare_superMariusz Tkaczyk1-1/+2
2021-03-03super1.c: avoid useless sync when bitmap switches from clustered to noneZhao Heming1-0/+2
2021-03-03super1: fix Floating point exceptionZhao Heming1-1/+4
2021-03-03Grow: be careful of corrupt dev_roles listNeilBrown1-10/+38
2021-03-03mdadm/bitmap: locate bitmap calcuate bitmap position wronglyXiao Ni1-3/+9
2020-10-14Super1: allow RAID0 layout setting to be removed.NeilBrown1-1/+5
2020-06-05Detect too-small device: error rather than underflow/crashDavid Favro1-5/+14
2019-12-02Assemble: add support for RAID0 layouts.NeilBrown1-1/+11
2019-12-02Create: add support for RAID0 layouts.NeilBrown1-1/+29
2019-12-02imsm: return correct uuid for volume in detailBlazej Kucman1-2/+2
2019-02-28add missing units to --examineCorey Hickey1-3/+3
2018-05-31super1: Fix cases triggering gcc-8.1 strncpy truncate warningJes Sorensen1-4/+18
2018-03-08mdadm: improve the dlm locking mechanism for clustered raidGuoqing Jiang1-42/+0
2017-10-02Zeroout whole ppl space during creation/force assemblePawel Baldysiak1-0/+5
2017-10-02super1: Add support for multiple-pplsPawel Baldysiak1-28/+37
2017-10-02mdadm: fixes some trivial typos in commentsZhilong Liu1-4/+4
2017-08-16super1: only set clustered flag when bitmap is presentNeilBrown1-2/+2
2017-07-27super1: Always round data offset to 1MPawel Baldysiak1-2/+1
2017-05-26super1: fix sb->max_dev when adding a new disk in linear arrayLidong Zhong1-1/+6
2017-04-11super1: Clean up various style abusesJes Sorensen1-140/+223
2017-04-11Retire mdassembleJes Sorensen1-18/+3
2017-03-29super1: replace hard-coded values with bit definitionsGioh Kim1-3/+4
2017-03-29Add 'ppl' and 'no-ppl' options for --update=Artur Paszkiewicz1-0/+49
2017-03-29super1: PPL supportArtur Paszkiewicz1-18/+132
2017-03-29Detail: show consistency policyArtur Paszkiewicz1-4/+5
2017-03-29Generic support for --consistency-policy and PPLArtur Paszkiewicz1-3/+3
2017-03-28super1: ignore failfast flag for setting device roleGioh Kim1-3/+5
2017-03-06mdadm:check the nodes when operate clustered arrayZhilong Liu1-8/+1
2016-11-28Add failfast support.NeilBrown1-0/+13
2016-11-17Add function for getting member drive sector sizePawel Baldysiak1-2/+1
2016-11-16super1: fix setting bad block log offset in write_init_super1()Artur Paszkiewicz1-24/+23
2016-11-16super1: make internal bitmap size calculations more consistentArtur Paszkiewicz1-16/+9
2016-10-19super1: make write_bitmap1 compatible with previous mdadm versionsGuoqing Jiang1-1/+9
2016-09-12mdadm: fix a buffer overflowSong Liu1-2/+2
2016-08-15Introduce random_uuid() helper functionJes Sorensen1-33/+6
2016-08-11super1: Avoid if and return on the same lineJes Sorensen1-1/+2
2016-05-12super1: add more checks for NodeNumUpdate optionGuoqing Jiang1-3/+19
2016-05-12mdadm: Make add_internal_bitmap() return 0 on successJes Sorensen1-5/+5
2016-05-09super1: make the check for NodeNumUpdate more accurateGuoqing Jiang1-1/+1
2016-05-09super1: don't update node nums if it is not more than 1Guoqing Jiang1-0/+5
2016-04-06super1: Clear memory allocated for superblock + bitmap before useJes Sorensen1-0/+2
2016-03-24Change the option from NoUpdate to NodeNumUpdateGuoqing Jiang1-1/+1
2016-03-09super1: Fix potential buffer overflows when copying cluster_nameJes Sorensen1-6/+12
2016-03-07Fix wrong bitmap output for cluster raidGuoqing Jiang1-6/+6
2016-02-01super1: Fix bblog_size accesses on big-ending machines.NeilBrown1-5/+5
2016-01-28Assorted fixed for a "make everything" buildNeilBrown1-2/+4
2016-01-28super1: allow reshape that hasn't really started to be reverted.NeilBrown1-1/+20
2016-01-28super1: fix calculation of space_beforeNeilBrown1-1/+1
2015-12-21Add --update=force-no-bbl.NeilBrown1-0/+5
2015-12-17mdadm: improve the safeguard for change cluster raid's sbGuoqing Jiang1-15/+18
2015-12-17mdadm: do not try to hold dlm lock in free_super1Guoqing Jiang1-11/+0
2015-12-16mdadm: do not display bitmap info if it is clearedGuoqing Jiang1-3/+9
2015-12-16mdadm: don't show cluster name once the bitmap is clearedGuoqing Jiang1-2/+2
2015-12-16recreate journal in mdadmSong Liu1-1/+2
2015-10-30add crc32c and use it for r5l checksumSong Liu1-7/+4
2015-10-22mdadm: refactor write journal code in Assemble and IncrementalSong Liu1-16/+3
2015-10-21Safeguard against writing to an active device of another nodeGuoqing Jiang1-0/+51
2015-10-19Assemble array with write journalSong Liu1-5/+32
2015-10-19Enable create array with write journal (--write-journal DEVICE).Song Liu1-1/+69
2015-10-19Show device as journal in --detail --examineSong Liu1-0/+9
2015-10-19add macros for MD_DISK_ROLE_(SPARE/FAULTY)Song Liu1-15/+15
2015-09-28super1: Do not create bad block log for clustered devices.NeilBrown1-1/+2
2015-09-28Increment version for clustered bitmapsGoldwyn Rodrigues1-0/+5
2015-07-29md-cluster: use %-64s to print cluster_nameGuoqing Jiang1-2/+2
2015-06-17Reuse calc_bitmap_size to reduce code sizeclusterGuoqing Jiang1-10/+2
2015-06-17mdadm: change the num of cluster nodeGuoqing Jiang1-0/+37
2015-06-17mdadm: add the ability to change cluster nameGuoqing Jiang1-2/+21
2015-06-17Skip clustered devices in incrementalGuoqing Jiang1-0/+2
2015-06-17Set home-cluster while creating an arrayGuoqing Jiang1-1/+4
2015-06-17Add nodes option while creating mdGuoqing Jiang1-0/+1
2015-06-17Create n bitmaps for clustered modeGuoqing Jiang1-19/+34
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-6/+3
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-5/+4
2014-11-03super1: remove some debugging printfs in update_super1NeilBrown1-4/+0
2014-08-21super1: make sure 'room' includes 'bbl_size' when creating array.NeilBrown1-2/+2
2014-08-15super1: don't allow adding a bitmap if there is no space.NeilBrown1-0/+4
2014-08-07config: new option to suppress adding bad block lists.NeilBrown1-0/+4
2014-08-07super: make sure to ignore disk state flags that we don't understand.NeilBrown1-1/+1
2014-05-22mdadm: Do not reimplment offsetofCristian Rodríguez1-3/+1
2013-08-14super1: fix setting of data_offset for 1.0 metadata.NeilBrown1-1/+2
2013-07-30super1: simplify setting of array size.NeilBrown1-110/+71
2013-07-30super1: separate to version of _avail_space1().NeilBrown1-28/+63
2013-07-30Manage: remove call to validate_geometry.NeilBrown1-1/+1
2013-07-24super0/1: fix typo in error messages.NeilBrown1-1/+1
2013-07-24super1: update data_size when performing "revert-reshape".NeilBrown1-3/+4
2013-07-02revert-reshape: only impose reshape_position tests on raid[456]NeilBrown1-8/+11
2013-06-27revert-reshape: make sure reshape_position is acceptable.NeilBrown1-3/+27
2013-06-24super1: fix space_{before,after} for RAID0NeilBrown1-1/+4
2013-06-19Add test for --update=metadata and fix bug it found.NeilBrown1-1/+4
2013-06-19Remove lots of unnecessary white space.NeilBrown1-10/+1
2013-05-28super1: set RESHAPE_NO_BACKUP based on new_offset.NeilBrown1-1/+2
2013-05-28Assemble: allow --update=revert-reshapeNeilBrown1-0/+29
2013-05-28Assemble: --update=metadata converts v0.90 to v1.0NeilBrown1-0/+54
2013-05-28super1: fix some casts of signed superblock fields.NeilBrown1-2/+2
2013-05-22Examine/super1 - report Unused space, before and after.NeilBrown1-0/+8
2013-05-22super1: don't put the bblog at the end of the free space.NeilBrown1-9/+16
2013-05-22Grow: allow metadata to indicate that changing data_offset not supported.NeilBrown1-0/+8
2013-05-21super1: improve calculation of space_before/space_afterNeilBrown1-11/+28
2013-05-21Examine/super1: don't report "New Offset" when feature not set.NeilBrown1-1/+2
2013-05-16Add --dump / --restore functionality.NeilBrown1-0/+138
2013-05-13Always test return value of posix_memalign.NeilBrown1-1/+4
2013-05-13mdassemble - fix new compile-time problems.NeilBrown1-1/+2
2013-02-21Discard devnum in favour of devnmNeilBrown1-1/+1
2013-02-10make --update=homehost work againNeilBrown1-10/+15
2013-02-05Avoid using BLKFLSBUF.NeilBrown1-3/+0
2012-12-05MISC: Add --examine-badblocks optionNeilBrown1-0/+54
2012-10-24Incremental: support replacement devices.NeilBrown1-0/+1
2012-10-24Assemble: add support for replacement devices.NeilBrown1-1/+6
2012-10-23Report replacement devices correctly with --detail and --examineNeilBrown1-4/+11
2012-10-10Replace a lot of leading spaces with tabs.NeilBrown1-1/+1
2012-10-04Allow data-offset to be specified per-device for createNeilBrown1-5/+4
2012-10-04super1: reserve at least 2 chunks for reshape headroom.NeilBrown1-5/+16
2012-10-04New RESHAPE_NO_BACKUP flag to track when backup action is needed.NeilBrown1-0/+2
2012-10-04Add space_before/space_after fields to mdinfoNeilBrown1-0/+37
2012-10-04super1: add new_offset field.NeilBrown1-3/+26
2012-10-04Add data_offset arg to ->init_super and use it in super1.cNeilBrown1-32/+46
2012-10-04Add data_offset arg to ->validate_geometry.NeilBrown1-1/+2
2012-10-04Add data_offset arg to ->avail_sizeNeilBrown1-4/+21
2012-10-04Handles spaces in array names better.NeilBrown1-5/+14
2012-10-03super1: ensure bitmap doesn't overlap bad block log.NeilBrown1-1/+25
2012-10-03Allow --update to add or remove space for a bad block list.NeilBrown1-0/+50
2012-10-03Bad block logNeilBrown1-5/+40
2012-10-02Add MD_ARRAY_SIZE for --examine --exportMaciej Naruszewicz1-0/+19
2012-07-09Convert 'quiet' to 'not verbose' in various places.NeilBrown1-1/+1
2012-07-09Remove scattered checks for malloc success.NeilBrown1-5/+3
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-20/+18
2012-05-29mdadm: Fix Segmentation fault.majianpeng1-1/+3
2012-05-15super1: fix choice of data_offset.NeilBrown1-15/+16
2012-04-30Fix sign extension of bitmap_offset in super1.cJes Sorensen1-2/+2
2012-04-04super1: leave more space in front of data by default.NeilBrown1-6/+21
2012-04-04Bitmap_offset is a signed numberNeilBrown1-2/+2
2012-03-22Examine: fix array size calculation for RAID10.NeilBrown1-6/+8
2012-03-21super1.c: use ROUND_UP/ROUND_UP_PTRJes Sorensen1-4/+3
2012-03-21Use struct align_fd to cache fd's block size for aligned reads/writesJes Sorensen1-21/+54
2012-03-21Use 4K buffer alignment for superblock allocationsJes Sorensen1-3/+3
2012-03-21match_metadata_desc1(): Use calloc instead of malloc+memsetJes Sorensen1-3/+3
2012-03-21init_super1() memset full buffer allocated for superblockJes Sorensen1-2/+1
2012-03-21Define and use SUPER1_SIZE for allocationsJes Sorensen1-10/+6
2012-03-21super1.c don't keep recalculating bitmap pointerJes Sorensen1-3/+2
2012-03-08super1: support superblocks up to 4K.NeilBrown1-27/+33
2012-02-23Print error message if failing to write super for 1.x metadataJes Sorensen1-9/+16
2012-02-16Use posix_memalign() for memory used to write bitmapsJes Sorensen1-2/+5
2012-02-07super1: make aread/awrite always use an aligned buffer.NeilBrown1-16/+23
2012-02-07getinfo_super1: Use MaxSector in place of sb->sizeAlexander Lyakas1-1/+1
2011-12-23Grow/bitmap: support adding bitmap via sysfs.NeilBrown1-16/+21
2011-12-23super1: use awrite when writing a new bitmap.NeilBrown1-2/+2
2011-12-23super1 - fix for bigendian machines.NeilBrown1-2/+2
2011-12-20super1: getinfo_super should set write-mostly flag.NeilBrown1-0/+2
2011-10-05Add recovery blocked field to mdinfoAdam Kwolek1-0/+2
2011-09-19Fix readding of a readwrite drive into a writemostly arrayDoug Ledford1-0/+5
2011-08-02super1: fix spacing for 'Flags' field in --examine.NeilBrown1-1/+1
2011-08-02--add incorrectly sets writemostlyScott Schaefer1-0/+2
2011-06-17Fix some type-aliasing issues.Luca Berra1-1/+3
2011-06-17Fix some compiler warnings.Luca Berra1-7/+2
2011-06-08getinfo_super now clears the 'info' structure before filling it in.NeilBrown1-0/+1
2011-05-10config: restore the possibility of a NULL homehostNeilBrown1-1/+1
2011-03-10Merge branch 'master' into devel-3.2NeilBrown1-0/+14
2011-03-10Assemble: add --update=no-bitmapNeilBrown1-2/+5
2011-03-09Fix chunksize defaulting.NeilBrown1-3/+3
2011-02-22set default chunk in validate_geometryCzarnowska, Anna1-1/+4
2011-02-21Teach --assemble --force to handle reshapes a little better.NeilBrown1-0/+14
2011-01-31super1: fix regression in write_init_super.NeilBrown1-8/+8
2011-01-25Don't close fds in write_init_superNeilBrown1-0/+7
2010-12-09Merge branch 'master' into devel-3.2NeilBrown1-3/+3
2010-11-30Assemble: add --update=no-bitmapNeilBrown1-2/+5
2010-11-22Create: user container_dev rather than subarray for some tests.NeilBrown1-0/+1
2010-11-22Remove subarray detection from load_super.NeilBrown1-3/+0
2010-11-22Add subarray arg to container_content.NeilBrown1-0/+13
2010-11-22get_info_super: report which other devices are thought to be working/failed.NeilBrown1-3/+10
2010-11-22Report error in --update string is not recognised.NeilBrown1-20/+12
2010-09-16Fix byte-order conversion in update_super1("assemble")NeilBrown1-3/+3
2010-08-05Compile with -Wextra by defaultNeilBrown1-12/+12
2010-07-22Don't report Used Dev Size for RAID0.NeilBrown1-1/+1
2010-05-31Compile-time switch to enable 0.9 metadata as defaultmartin f. krafft1-0/+2
2010-05-31Revert change to handling of -empty-string- metadata.NeilBrown1-2/+1
2010-03-03super1: encourage data alignment on 1Meg boundaryNeilBrown1-12/+40
2010-02-24Create: change default metadata type to 1.2NeilBrown1-1/+1
2010-02-24super1: put bitmap on a 4K boundary when possible.NeilBrown1-8/+7
2010-02-04Assemble: fix --force assembly of v1.x arrays which are recovering.NeilBrown1-0/+5
2009-12-21Introduce MaxSectorDan Williams1-3/+3
2009-11-24Various fixes for --killNeilBrown1-2/+2
2009-11-17Improve error messages when metadata handler does not support request.NeilBrown1-1/+4
2009-11-17Set default bitmap-chunksize for internal bitmaps to at least 64MegNeilBrown1-2/+7
2009-11-17Change default metadata from 0.90 to 1.1NeilBrown1-1/+4
2009-11-17Assemble: include ACTIVE but not in-sync devices as non-spares.NeilBrown1-1/+1
2009-10-16Handle negative delta_disks in super0 and super1.NeilBrown1-11/+12
2009-10-01Merge branch 'master' into devel-3.1NeilBrown1-7/+4
2009-08-13super1: remove fd leak when opening /dev/urandomNeilBrown1-0/+2
2009-07-14Examine/Detail: report raid6 layoutNeilBrown1-0/+8
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-7/+2
2009-05-11Merge branch 'master' into devel-3.0NeilBrown1-13/+9
2009-05-11super1 - fix brief examine.NeilBrown1-3/+3
2009-05-11Make --brief even briefer.NeilBrown1-5/+7
2009-05-11conf/assemble: new config line "auto".NeilBrown1-1/+1
2009-04-29Fix gcc-4.4 compiler warning.NeilBrown1-12/+7
2009-03-10Merge branch 'master' in devel-3.0NeilBrown1-0/+4
2009-03-09super1/examine: remove confusing information.NeilBrown1-4/+21
2009-03-09super1 - do metadata IO in sector_size units.NeilBrown1-7/+64
2009-03-09super1: make sure max_dev grows enough when adding a device to an array.NeilBrown1-0/+3