aboutsummaryrefslogtreecommitdiffstats
path: root/super-ddf.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-22mdadm: Fix native --detail --exportMariusz Tkaczyk1-5/+5
2024-03-22mdadm: set swapuuid in all handlersMariusz Tkaczyk1-0/+1
2024-02-09Revert "mdadm: remove container_enough logic"Mariusz Tkaczyk1-0/+1
2023-10-26mdadm: remove container_enough logicPawel Piatkowski1-1/+0
2023-10-26mdadm/ddf: Abort when raid disk is smaller in getinfo_super_ddfXiao Ni1-2/+4
2023-09-01Add secure gethostname() wrapperBlazej Kucman1-2/+1
2023-05-08mdadm: define DEV_MD_DIRMariusz Tkaczyk1-1/+1
2023-03-08super-ddf.c: fix memleak in get_vd_num_of_subarray()Wu Guanghao1-2/+7
2023-01-04super-ddf: Remove update_super_ddf.Mateusz Kusiak1-70/+0
2022-09-29mdadm: replace container level checking with inlineKinga Tanska1-3/+3
2022-08-07DDF: Fix NULL pointer dereference in validate_geometry_ddf()Logan Gunthorpe1-3/+3
2022-08-07DDF: Cleanup validate_geometry_ddf_container()Logan Gunthorpe1-49/+39
2022-06-14Fix possible NULL ptr dereferences and memory leaksMateusz Grzonka1-2/+7
2022-04-04mdadm: add map_num_s()Mariusz Tkaczyk1-3/+3
2021-11-24Correct checking if file descriptors are validMateusz Grzonka1-1/+1
2021-10-08Fix buffer size warning for strcpyNigel Croxon1-3/+5
2021-10-08Refactor parse_num and use it to parse optarg.Mateusz Grzonka1-9/+8
2021-07-16Use dev_open in validate geometry containerBlazej Kucman1-1/+1
2021-05-26Manage: Call validate_geometry when adding drive to external containerMariusz Tkaczyk1-4/+5
2021-03-08imsm: add verbose flag to compare_superMariusz Tkaczyk1-1/+2
2020-02-24imsm: pass subarray id to kill_subarray functionBlazej Kucman1-1/+1
2019-12-02imsm: return correct uuid for volume in detailBlazej Kucman1-2/+3
2019-02-11Fix spelling typos.Dimitri John Ledkov1-1/+1
2018-05-31super-ddf: Fix gcc-8.1 overflow warningsJes Sorensen1-2/+3
2017-05-16mdadm: Fixup != broken formattingJes Sorensen1-4/+4
2017-05-16mdadm: Fix '==' broken formattingJes Sorensen1-8/+8
2017-05-16mdadm: Fixup more broken logical operator formattingJes Sorensen1-8/+7
2017-05-16mdadm: Fixup a large number of bad formatting of logical operatorsJes Sorensen1-17/+16
2017-05-16super-ddf: sysfs_read() takes a pointer as device name argumentJes Sorensen1-1/+1
2017-05-16mdadm: Uninitialized variable rdevJames Puthukattukaran1-1/+1
2017-05-05mdadm/util: unify stat checking blkdev into functionZhilong Liu1-6/+4
2017-04-11Retire mdassembleJes Sorensen1-30/+0
2017-03-29Detail: show consistency policyArtur Paszkiewicz1-3/+3
2017-03-29Generic support for --consistency-policy and PPLArtur Paszkiewicz1-3/+3
2016-03-10ddf: use 64bit 'size', not 32bit 'info->size' for create.NeilBrown1-2/+2
2015-05-13DDF: _write_super_to_disk: fix anchor header typeMartin Wilck1-0/+1
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-18/+9
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-100/+78
2014-08-05DDF: cast print arguments in super-ddf.cGuy Menanteau1-2/+4
2014-07-10DDF: validate metadata_update size before using it.NeilBrown1-2/+8
2014-07-10mdmon: allow prepare_update to report failure.NeilBrown1-3/+5
2014-06-05Make sure "make everything" builds again.NeilBrown1-1/+3
2014-05-22DDF: remove "BVD xx is missing".NeilBrown1-1/+1
2014-05-22mdadm: Do not reimplment offsetofCristian Rodríguez1-4/+1
2014-05-21DDF: remove some pointless code in validate_geometryNeilBrown1-9/+1
2014-05-21DDF: remove a FIXME comment that doesn't seem to mean anything.NeilBrown1-1/+0
2014-05-21DDF: remove 'FIXME' comment that doesn't need fixing.NeilBrown1-2/+3
2014-05-21DDF: ensure dl->devname is freed when processing a 'delete device' update.NeilBrown1-3/+3
2014-05-21DDF: remove old comment about looking for spares.NeilBrown1-1/+0
2014-05-21DDF: remove an old incorrect FIXME comment.NeilBrown1-1/+3
2014-05-21DDF: add data-offset information to --examine output.NeilBrown1-0/+1
2014-05-21DDF: split up ddf_process_updateNeilBrown1-264/+297
2014-05-21DDF: add support of --data-offset when creating array.NeilBrown1-12/+10
2014-05-21DDF: factor out common code for search through extents.NeilBrown1-90/+62
2014-05-21DDF: allow for unused slots when creating map list for getinfo_super_ddf.NeilBrown1-4/+8
2014-05-21DDF: DDF_Missing devices should not be reported as 'working' by getinfo_super...NeilBrown1-1/+2
2014-05-21DDF: remove old and wrong comment about settinig raid_disk.NeilBrown1-1/+1
2014-05-21DDF: provide simple detail_super() implementation.NeilBrown1-6/+8
2014-05-21DDF: support more RAID10 levels.NeilBrown1-3/+31
2014-05-21DDF: explain why spare_refs are ignored.NeilBrown1-1/+4
2014-05-21DDF: use array_size from metadata.NeilBrown1-1/+1
2014-05-21DDF: set utime for container from timestamp is superblock.NeilBrown1-2/+2
2014-05-21DDF: don't assume the anchor is fully up-to-date.NeilBrown1-1/+1
2014-05-21DDF: update timestamp/seqnum for virtual disks when config changes.NeilBrown1-20/+26
2014-05-21DDF: update timestamp in DDF header.NeilBrown1-0/+1
2014-05-21DDF: avoid ref outside array in getinfo_super_ddf_bvdNeilBrown1-4/+4
2014-05-21DDF: examine_pds to also list devices that aren't in the metadata.NeilBrown1-0/+20
2014-05-21DDF: fix usage of ->used_pdesNeilBrown1-7/+14
2014-05-21DDF: more guards against pdnum being negative.NeilBrown1-3/+3
2014-04-02DDF: Don't fail compare_super_ddf due to re-configure changes.NeilBrown1-33/+11
2014-04-02DDF: fix possible mdmon crash when updating metadata.NeilBrown1-1/+1
2014-04-02DDF: guard against ->pdnum being negative.NeilBrown1-6/+16
2014-04-01DDF: mark missing-on-assembly device properly.NeilBrown1-3/+28
2014-04-01DDF: Fix assorted typos and do some reformatting.NeilBrown1-142/+148
2014-03-26DDF: when first activating an array, record any missing devices.NeilBrown1-0/+28
2014-03-26DDF: report seq counter as events.NeilBrown1-7/+4
2014-01-20DDF: fix detection of failed devices during assembly.NeilBrown1-4/+14
2014-01-20DDF - really ignore DDF metadata on partitions.NeilBrown1-1/+1
2013-10-16DDF: add_to_super_ddf: be careful with workspace_lbamwilck@arcor.de1-1/+26
2013-10-16DDF: compare_super_ddf: fix sequence number checkmwilck@arcor.de1-4/+4
2013-09-12DDF: brief_examine_subarrays_ddf: print array namemwilck@arcor.de1-1/+5
2013-09-12DDF: factor out array name generationmwilck@arcor.de1-12/+13
2013-09-12DDF: allow for possibility that there is no secondary copy of metadata.NeilBrown1-2/+7
2013-09-10Move ARRAY_SIZE macro to common include file.NeilBrown1-2/+1
2013-09-10DDF: handle fake RAIDs with changing subarray UUIDsmwilck@arcor.de1-5/+50
2013-08-28DDF: increase default value for safe_mode_delay to 4000msmwilck@arcor.de1-2/+6
2013-08-28DDF: container_content_ddf: set safe_mode_delay > 0mwilck@arcor.de1-0/+1
2013-08-28DDF: export_examine_super_ddf: print MD_DEVICESmwilck@arcor.de1-0/+2
2013-08-28DDF: ddf_activate_spare: fix gcc -O2 uninitialized warningNeilBrown1-1/+1
2013-08-08DDF: ddf_open_new: check device status for new subarraymwilck@arcor.de1-1/+28
2013-08-07DDF: Write new conf entries with a single write.NeilBrown1-41/+26
2013-08-06DDF: get_extents: don't allocate space on failed disksmwilck@arcor.de1-0/+4
2013-08-05DDF: fix removal of failed devices.NeilBrown1-4/+11
2013-08-05DDF: fix writing metadata updates.NeilBrown1-1/+2
2013-08-05DDF: no need for GET_LAYOUT any moremwilck@arcor.de1-7/+1
2013-08-01DDF: differentiate between new metadata and metadata updates.NeilBrown1-10/+12
2013-08-01DDF: use some #defines instead of bare constants.NeilBrown1-4/+4
2013-07-31DDF: ddf_set_disk: add some debug messagesMartin Wilck1-4/+13
2013-07-31DDF: load_ddf_header: more error loggingMartin Wilck1-3/+9
2013-07-31DDF: ddf_process_update: log offsets for conf changesMartin Wilck1-1/+18
2013-07-31DDF: log disk status changes more nicelyMartin Wilck1-4/+11
2013-07-31DDF: ddf_activate_spare: bugfix for 62ff3c40Martin Wilck1-7/+7
2013-07-30Manage: remove call to validate_geometry.NeilBrown1-3/+3
2013-07-30DDF: ddf_activate_spare: fix metadata update for SVDsmwilck@arcor.de1-9/+32
2013-07-30DDF: ddf_activate_spare: only activate good drivesmwilck@arcor.de1-0/+7
2013-07-30DDF: ddf_activate_spare: Add RAID10 codemwilck@arcor.de1-1/+54
2013-07-30DDF: find_vdcr: fix minor bug in debug messagemwilck@arcor.de1-2/+2
2013-07-23super-ddf: allow mdassemble to compile.NeilBrown1-18/+23
2013-07-23DDF: convert big-endian __u16 to be16 typemwilck@arcor.de1-162/+195
2013-07-23DDF: convert big-endian __u64 to be64 typemwilck@arcor.de1-56/+56
2013-07-23DDF: convert big endian to be32 typemwilck@arcor.de1-171/+175
2013-07-23DDF: add endian-safe typedefsmwilck@arcor.de1-0/+36
2013-07-22DDF: getinfo_super_ddf_bvd: fix offset calculation for SVDsmwilck@arcor.de1-2/+2
2013-07-22DDF: kill_subarray_ddf: fix case without mdmon runningmwilck@arcor.de1-1/+4
2013-07-22DDF: err_bad_md_layout: fix return valuemwilck@arcor.de1-1/+1
2013-07-22DDF: factor out writing super block to single diskmwilck@arcor.de1-59/+53
2013-07-22DDF: make "null_aligned" a static buffermwilck@arcor.de1-12/+11
2013-07-22DDF: increase seq number in ddf_set_updates_pendingmwilck@arcor.de1-3/+9
2013-07-10DDF load headers: if primary is invalid, don't check fields.NeilBrown1-4/+4
2013-07-10DDF: ddf_process_update: Fix updates for SVDsmwilck@arcor.de1-28/+60
2013-07-10DDF: ddf_process_update: some more debug messagesmwilck@arcor.de1-5/+6
2013-07-10DDF: guid_str: more readable outputmwilck@arcor.de1-2/+7
2013-07-10DDF: ddf_process_update: add debug messages fore adding VDsmwilck@arcor.de1-0/+9
2013-07-10DDF: add debug message in add_super_ddf_bvdmwilck@arcor.de1-0/+4
2013-07-10DDF: fix endianness of refnum in debug messagesmwilck@arcor.de1-4/+6
2013-07-10DDF: getinfo_super_ddf_bvd: fix raid_disk calculationmwilck@arcor.de1-1/+2
2013-07-10DDF: getinfo_super_ddf_bvd: identify disk by refnummwilck@arcor.de1-1/+1
2013-07-10DDF: implement kill_subarraymwilck@arcor.de1-7/+99
2013-07-10DDF: write_init_super_ddf: don't zero superblocks for subarraysmwilck@arcor.de1-2/+3
2013-07-08DDF: ddf_process_update: Fix vlist treatment for SVDsmwilck@arcor.de1-22/+26
2013-07-08DDF: ddf_process_update: handle update of conf records for SVDmwilck@arcor.de1-1/+16
2013-07-08DDF: ddf_set_array_state: more meaningful outputmwilck@arcor.de1-1/+3
2013-07-08DDF: guid_str: convenience function to print GUID for debuggingmwilck@arcor.de1-0/+14
2013-07-08DDF: getinfo_super_ddf_bvd: lba_offset calculation for RAID10mwilck@arcor.de1-0/+10
2013-07-08DDF: add_to_super_ddf_bvd: use get_svd_state()mwilck@arcor.de1-22/+6
2013-07-08DDF: add_to_super_ddf: RAID10 changesmwilck@arcor.de1-4/+9
2013-07-08DDF: add_to_super_ddf: Use same amount of workspace as other disksmwilck@arcor.de1-4/+29
2013-07-08DDF: add_to_super_ddf: allow empty slots in phys disk tablemwilck@arcor.de1-6/+23
2013-07-08DDF: get_extents: support secondary RAID levelmwilck@arcor.de1-16/+14
2013-07-08DDF: use LBA_OFFSET macro instead of lba_offset fieldmwilck@arcor.de1-22/+12
2013-07-08DDF: validate_geometry_ddf: support RAID10mwilck@arcor.de1-2/+2
2013-07-08DDF: init_super_ddf_bvd: initialize other bvdsmwilck@arcor.de1-1/+6
2013-07-08DDF: Simplify allocation of "other BVDs"mwilck@arcor.de1-33/+53
2013-07-08DDF: layout_md2ddf: new md->DDF layout conversionmwilck@arcor.de1-82/+117
2013-07-08DDF: layout_ddf2md: new DDF->md RAID layout conversionmwilck@arcor.de1-79/+100
2013-07-08DDF: allow empty slots in virt disk tablemwilck@arcor.de1-43/+57
2013-07-08DDF: get_svd_state: Status logic for secondary RAID levelmwilck@arcor.de1-4/+33
2013-07-08DDF: ddf_set_disk: move status logic to separate functionmwilck@arcor.de1-41/+53
2013-07-08DDF: find_vdcr: account for secondary RAID levelmwilck@arcor.de1-13/+87
2013-07-08DDF: ddf_open_new: implement minimal consistency checkmwilck@arcor.de1-2/+8
2013-07-08DDF: Implement store_super_ddfmwilck@arcor.de1-6/+35
2013-07-08DDF: handle "open flag" according to specmwilck@arcor.de1-8/+18
2013-07-08DDF: load_ddf_headers: use secondary header as fallbackmwilck@arcor.de1-4/+9
2013-07-08DDF: check_secondary: fix treatment of missing BVDsmwilck@arcor.de1-4/+2
2013-07-08DDF (cleanup): use a common macro for failed searchesmwilck@arcor.de1-3/+2
2013-05-21Change some "fprintf(stderr,"s to pr_err.NeilBrown1-1/+1
2013-05-16Add --dump / --restore functionality.NeilBrown1-0/+63
2013-05-16intel,ddf: don't require partitions when ignore_hw_compat is set.NeilBrown1-1/+1
2013-04-24DDF: fix bug in compare_super_ddfmwilck@arcor.de1-1/+1
2013-04-23DDF: add code to debug state changesmwilck@arcor.de1-13/+36
2013-04-23DDF: brief_detail_super_ddf: print correct UUID for subarraysmwilck@arcor.de1-12/+54
2013-04-23DDF: __write_init_super_ddf: just use seq number of active headermwilck@arcor.de1-6/+1
2013-04-23DDF: __write_ddf_structure: Fix wrong reference to ddf->primarymwilck@arcor.de1-1/+1
2013-03-04DDF: compare_super_ddf: merge local info of other superblockmwilck@arcor.de1-2/+100
2013-03-04DDF: add sanity checks in compare_super_ddfmwilck@arcor.de1-0/+42
2013-03-04DDF: __write_init_super_ddf: use correct VD confmwilck@arcor.de1-7/+24
2013-03-04DDF: container_content_ddf: handle RAID layout for RAID10mwilck@arcor.de1-13/+66
2013-03-04DDF: container_content_ddf: check for secondary RAIDmwilck@arcor.de1-0/+73
2013-03-04DDF: container_content_ddf: change array disk search loopmwilck@arcor.de1-12/+21
2013-03-04DDF: load_ddf_local: store VD conf for other BVDsmwilck@arcor.de1-1/+41
2013-03-04DDF: added other_bvd to struct vclmwilck@arcor.de1-0/+10
2013-03-04DDF: increase seq number when writing meta datamwilck@arcor.de1-1/+10
2013-03-04DDF: use existing locations for primary and secondary DDF structuremwilck@arcor.de1-3/+25
2013-03-04DDF: cleanly save the secondary DDF structuremwilck@arcor.de1-59/+80
2013-02-21Discard devnum in favour of devnmNeilBrown1-8/+6
2012-10-10Replace a lot of leading spaces with tabs.NeilBrown1-2/+2
2012-10-04Allow data-offset to be specified per-device for createNeilBrown1-1/+2
2012-10-04Add data_offset arg to ->init_super and use it in super1.cNeilBrown1-4/+10
2012-10-04Add data_offset arg to ->validate_geometry.NeilBrown1-2/+10
2012-10-04Add data_offset arg to ->avail_sizeNeilBrown1-2/+3
2012-08-15ddf: hack to fix container recognition.NeilBrown1-0/+1
2012-08-15ddf: allow a non-spare to be used to recovery a missing device.NeilBrown1-0/+4
2012-08-15ddf: fix multiple white-space issues.NeilBrown1-69/+61
2012-07-09Convert 'quiet' to 'not verbose' in various places.NeilBrown1-1/+1
2012-07-09Remove scattered checks for malloc success.NeilBrown1-31/+13
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-64/+52
2012-03-21__write_init_super_ddf(): Use posix_memalign() instead of static aligned bufferJes Sorensen1-8/+11
2012-01-12Work around gcc-4.7's strict aliasing checksJes Sorensen1-8/+14
2011-12-23ddf: fix auto-allocation problem.NeilBrown1-1/+1
2011-10-05Add recovery blocked field to mdinfoAdam Kwolek1-0/+2
2011-06-15ddf: fix up getinfo_super_bvdNeilBrown1-4/+8
2011-06-09Fix some fall-out from recent memset-zero for getinfo_superNeilBrown1-3/+1
2011-06-08getinfo_super now clears the 'info' structure before filling it in.NeilBrown1-0/+2
2011-03-22ddf: fix up detection of failed/missing devices.NeilBrown1-5/+15
2011-03-15Merge branch 'master' into devel-3.2NeilBrown1-7/+66
2011-03-15ddf: implement remove_from_superNeilBrown1-2/+56
2011-03-15DDF Allow a RAID1 to be 'partially optimal'.NeilBrown1-0/+2
2011-03-15ddf: remove failed devices that are no longer in use.NeilBrown1-0/+42
2011-03-15ddf: set Rebuilding flag when adding devices to a degraded arrayNeilBrown1-2/+15
2011-03-15ddf: use correct loop variable in activate_spareNeilBrown1-4/+5