summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test: api subdirectory is needed in PATH by pytestdev-mcsontos-spec-pythonMarian Csontos2015-11-021-1/+1
|
* test: Run pytest with installed libsMarian Csontos2015-11-021-5/+11
|
* spec: Add python bindingsMarian Csontos2015-11-023-35/+117
|
* post-releaseAlasdair G Kergon2015-10-314-2/+8
|
* pre-releasev2_02_133Alasdair G Kergon2015-10-305-7/+7
|
* WHATS_NEW: reporting commands and -o-/-o+ extensionPeter Rajnoha2015-10-301-0/+2
|
* commands: update command help for -o|--options for reporting commandsPeter Rajnoha2015-10-301-7/+7
|
* man: pvs/vgs/lvs and -o+, -o-, -o#Peter Rajnoha2015-10-306-12/+27
|
* tests: add report-fields.sh testPeter Rajnoha2015-10-301-0/+91
|
* report: support "-o #field_name1,field_name2,..."Peter Rajnoha2015-10-301-5/+29
|
* report: recognize known prefix when processing "-o -field_name1,field_name2,..."Peter Rajnoha2015-10-301-4/+31
|
* report: add report_get_field_prefix functionPeter Rajnoha2015-10-302-0/+16
|
* report: support "-o -field_name1,field_name2,...."Peter Rajnoha2015-10-301-1/+23
|
* report: make report options defined by "-o" groupablePeter Rajnoha2015-10-302-16/+47
| | | | | | Also, besides making "-o" groupable, use string lists to store lists of options temporarily while processing all instances of the "-o" group.
* refactor: move code detecting report options to a separate functionPeter Rajnoha2015-10-301-19/+27
|
* str_list: add str_list_destroy functionPeter Rajnoha2015-10-302-0/+15
| | | | | | The str_list_destroy function may be called to cleanup memory when the list is not used anymore and the list itself was not allocated from the memory pool.
* str_list: add str_list_to_str and str_to_str_list functionsPeter Rajnoha2015-10-302-0/+89
| | | | | The str_list_to_str and str_to_str_list are helper functions to convert string list to a single string and vice versa.
* str_list: also allow memory allocation without memory poolPeter Rajnoha2015-10-301-2/+4
|
* New entries for pvs related fixes.David Teigland2015-10-301-0/+2
|
* metadata: format_text: also count with calculated mda size of 0Peter Rajnoha2015-10-301-6/+6
| | | | | | | | When checking minimum mda size, make sure the mda_size after alignment and calculation is more than 0 - if there's no place for an MDA at the end of the disk, the _text_pv_add_metadata_area does not try to add it there and it returns (because we already have the MDA at the start of the disk at least).
* tests: add test for minimum mda sizePeter Rajnoha2015-10-301-0/+9
|
* metadata: format_text: better check for metadata overlapPeter Rajnoha2015-10-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | Actually, we don't need extra condition as introduced in commit 00348c0a630a7e5578edf48052ec695b15de752f. We should fix the last condition: (mdac->rlocn.size >= mdah->size) ...which should be: (MDA_HEADER_SIZE + (rlocn ? rlocn->size : 0) + mdac->rlocn.size >= mdah->size)) Where the "mdac" is new metadata, the "rlocn" is old metadata. So the main problem with the previous condition was that it didn't count in MDA_HEADER_SIZE properly (and possible existing metadata - the "rlocn"). This could have caused the error state where metadata in ring buffer overlap to not be hit. Replace the new condition introduced in 00348c0a630a7e5578edf48052ec695b15de752f with the improved one for the condition that existed there already but it was just incomplete.
* WHATS_NEW: recent commitsPeter Rajnoha2015-10-291-1/+2
|
* metadata: format_text: check VG metadata do not overlap themselvesPeter Rajnoha2015-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | We're already checking whether old and new meta do not overlap in ring buffer (as we need to keep both old and new meta during vg_write up until vg_commit). We also need to check whether the new metadata do not overlap themselves in case we don't have old metadata yet (...because we're in vgcreate). This could happen if we're creating a VG so that the very first metadata written are long enough that it wraps themselves in metadata ring buffer. Although we limited the minimum metadata area size better with the previous commit ccb8da404d00288b7d49c7a28006ec5d4687bb55 which makes the initial VG metadata overlap in ring buffer to be less probable, the risk of hitting this overlap condition is still there if we still manage to generate big enough metadata somehow. For example, users can provide many and/or long VG tags during vgcreate so that the VG metadata is long enough to start to wrap in the ring buffer again...
* metadata: format_text: check metadata area size is at least MDA_SIZE_MINPeter Rajnoha2015-10-292-1/+7
|
* tests: update test for resizeZdenek Kabelac2015-10-291-22/+6
| | | | | | | | Drop already tested 'threshold & create' which is in lvextend-thin-full.sh Count with now match faster 'dmeventd' wakeup on watermark as it's now nearly instant after crossing threshold value.
* tests: replace invalid use of 'fail' with 'die'Ondrej Kozina2015-10-291-1/+1
|
* tests: let pass bigger readaheadZdenek Kabelac2015-10-291-3/+2
| | | | | | If the underlaying device has actually bigger read-ahead settings, let it pass. But anyway switch to 512 strip-size to get really high R-A sector count.
* tests: fix wrong line has been commentedZdenek Kabelac2015-10-291-3/+3
|
* tests: no point in using shouldZdenek Kabelac2015-10-291-5/+10
| | | | lvmetad does not support lvm1 - so expect failure.
* cleanup: error is not a WARNINGZdenek Kabelac2015-10-291-1/+1
| | | | | Drop 'WARNING' from error message. It's plain error message leading to command failure.
* cleanup: remove thin low_water_mark from metadataZdenek Kabelac2015-10-294-11/+0
| | | | | | | This option could never have been printed in lvm2 metadata, so it could be safely removed as it could have been set only as 0. These configurable setting is supported via metadata profile.
* cleanup: use same typeZdenek Kabelac2015-10-291-1/+1
|
* cleanup: easier error messagesZdenek Kabelac2015-10-291-4/+4
|
* thin: enable usage of kernel low_water_markZdenek Kabelac2015-10-292-1/+14
| | | | | | | | | | Now with correctly functioning dmeventd enable usage of low_water_mark for faster reaction on pool's threshold. When user select e.g. 80% as a threshold value, dmeventd doesn't need to wait 10 seconds till monitoring timer expires, but nearly instantly resizes thin-pool to fit bellow threshold.
* thin: dmeventd plugin check number of failuresZdenek Kabelac2015-10-292-3/+17
| | | | | | If plugin's lvm command execution fails too often (>10 times), there is no point to torture system more then necessary, just log and drop monitoring in this case.
* revert: 3d03e504cda6307f692c5879f6850b2e27af7d71: message about VG metadata ↵Peter Rajnoha2015-10-291-5/+2
| | | | | | size vs. PV mda size The message needs refinement - it's not correct in all situations.
* pvs: don't treat duplicate PVs as missedDavid Teigland2015-10-271-3/+21
| | | | | | | | | | The recent addition to check for PVs that were missed during the first iteration of processing was unintentionally catching duplicate PVs because duplicates were not removed from the all_devices list when the primary dev was processed. Also change a message from warn back to verbose.
* vgs, lvs: ignore error if VG is removedDavid Teigland2015-10-271-10/+16
| | | | | | | | | If a VG is removed between the time that 'vgs' or 'lvs' (with no args) creates the list of VGs and the time that it reads the VG to process it, then ignore the removed VG; don't report an error that it could not be found, since it wasn't named by the command.
* device: Tidy DASD CDL format detection code.Alasdair G Kergon2015-10-271-24/+61
|
* tests: using matching typeZdenek Kabelac2015-10-271-1/+1
| | | | Compare time_t.
* tests: use more SKIPZdenek Kabelac2015-10-27171-336/+333
| | | | Speed-up check_lvmpolld.
* tests: avoid reading utils when skippingZdenek Kabelac2015-10-271-9/+17
| | | | Save even more CPU/time and avoid reading utils, when skipping test.
* cleanup: snapshots of snapshots messageMarian Csontos2015-10-272-2/+2
| | | | No plans to support thick snapshost of snapshots.
* pvcreate: don't support unpartitioned DASD devices with CDL formattedLidong Zhong2015-10-275-1/+78
| | | | | | | | | The former patch(dab3ebce4c7) is a little bit strict. For example, it is OK to create PV on unpartitioned DASD devices with LDL formatted. So after lvm version containing the patch, LVs created on those devices could not be found. Signed-off-by: Lidong Zhong <lzhong@suse.com>
* dmeventd: event string parser handles empty fieldZdenek Kabelac2015-10-272-17/+32
| | | | | | | | | | | | | | Improve event string parser to avoid unneeded alloc+free. Daemon talk function uses '-' to mark NULL/missing field. So restore the NULL pointer back on parser. This should have made old tools like 'dmevent_tool' work again. As now 'uuid' or 'dso' could become NULL and then be properly used in _want_registered_device() function. Since lvm2 always fill these parameters, this change should have no effect on lvm2.
* tests: use skip flagsZdenek Kabelac2015-10-2724-60/+65
| | | | corrected usage of skip flags.
* tests: support skip flagsZdenek Kabelac2015-10-261-4/+9
|
* tests: extend timer for 4 hoursZdenek Kabelac2015-10-262-4/+7
| | | | | | Extend max time for test suite to 4 hours. Also replace some 'non-ascii' chars from source files and keep them plain ascii.
* thin: limit no-flush using only for thin-poolZdenek Kabelac2015-10-262-1/+8
| | | | | | | For this release keep usage of 'noflush' only for thin-volume/pool. For rest of keep - keep usage of 'noflush' flag purely for non-resized mirrors.