summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* selout: make regex selection to work without quotes and recognize regex op ↵dev-prajnoha-seloutPeter Rajnoha2014-05-091-7/+15
| | | | before equal op
* selout: add --select arg to pvdisplay, vgdisplay and lvdisplayPeter Rajnoha2014-05-094-4/+10
|
* selout: add --select arg to pvs, vgs and lvsPeter Rajnoha2014-05-095-18/+29
|
* selout: add --select arg to dmsetupPeter Rajnoha2014-05-091-2/+16
|
* selout: use _check_report_selection in dm_report_object to report only ↵Peter Rajnoha2014-05-091-11/+29
| | | | objects that satisfy the report selection
* selout: add _check_selection fn to support checking fields against given ↵Peter Rajnoha2014-05-091-0/+153
| | | | selections
* selout: add dm_report_set_output_selection to libdmPeter Rajnoha2014-05-092-9/+394
|
* selout: add supporting infrastucture for token parsing in report selectionsPeter Rajnoha2014-05-091-0/+213
|
* selout: add struct for report selectionPeter Rajnoha2014-05-091-0/+75
|
* selout: add DM_REPORT_FIELD_TYPE_SIZE to make a difference between NUMBER ↵Peter Rajnoha2014-05-097-26/+36
| | | | and SIZE
* cleanup: use enum return codesZdenek Kabelac2014-05-072-12/+16
|
* cleanup: constify pointersZdenek Kabelac2014-05-071-3/+3
|
* clenaup: drop unused assignsZdenek Kabelac2014-05-072-2/+1
|
* cleanup: missed conversion to dm_malloc/free usageZdenek Kabelac2014-05-071-5/+4
| | | | Few missed unconverted dm_malloc/free calls.
* cleanup: cosmetics.Zdenek Kabelac2014-05-072-2/+3
| | | | | | Initialized attrs so analyzers are less confused (since currently our method calls should always initialize attrs on return).
* cleanup: drop uneeded headersZdenek Kabelac2014-05-074-10/+0
|
* coverity: ignore ret valZdenek Kabelac2014-05-071-3/+4
| | | | | Since we intentionaly do not want to check them, cast result values to void.
* coverity: error for undefined originZdenek Kabelac2014-05-072-1/+8
| | | | | | If we would have been missing origin here, it would be an internal error - since these values are validated earlier.
* coverity: check for profileZdenek Kabelac2014-05-072-3/+12
| | | | Ensure str is not NULL for analyzer.
* cache: avoid expression overflowZdenek Kabelac2014-05-072-1/+2
| | | | Cast data_extents to 64bit so calculation is in 64b arithmetic.
* signals: better nesting supportZdenek Kabelac2014-05-072-21/+15
| | | | | | | | | | | | Support upto 3 levels os nesting signal blocking. As of today - code blocks signals immediatelly when it opens VG in read-write mode - this however makes current prompt usage then partially unusable since user may not 'break' command during prompt (something most user would expect). Until a better fix for prompting is implemented, put in support for signal nesting - thus when prompt enables signal acceptance, make it possible to really break command at this point.
* debug: add more debug message for signal handlingZdenek Kabelac2014-05-071-6/+14
| | | | | | Adding log_sys_debug for eventual logging of system errors. (Using debug level, since currently signal handling functions do not fail when any error is encoutered).
* locking: use sigaction signal handlingZdenek Kabelac2014-05-074-60/+7
| | | | | Use sigint_allow/restore function instead of duplicating code and switch to use only sigactiction based signal handling.
* make: fix commit 1756bf6Peter Rajnoha2014-05-071-1/+1
| | | | "DIST_TARGET" should be "DISTCLEAN_TARGET"
* cleanup: fix compiler warningPeter Rajnoha2014-05-061-0/+1
| | | | locking/file_locking.c:162:2: warning: implicit declaration of function ‘init_signals’
* logging: Add LCK_REVERT_MODE to flags printed by decode_flags()Jonathan Brassow2014-05-051-2/+3
| | | | | The decode_flags() function does not yet know about the LCK_REVERT_MODE flag.
* signals: Add init_signals.Alasdair G Kergon2014-05-013-15/+20
|
* signals: Move sigint handling out to lvm-signal.Alasdair G Kergon2014-05-0111-135/+153
|
* locking: Separate out flock and signal code.Alasdair G Kergon2014-05-017-227/+333
|
* systemd: use lvm binary insetad of command symlink in lvm2-pvscan.servicePeter Rajnoha2014-04-301-2/+2
|
* systemd: make sysinit.target to pull in lvm2-lvmetad.socket, not sockets.targetPeter Rajnoha2014-04-301-1/+1
| | | | | | | | | | | The sysinit.target is ordered even before sockets.target and there may be situations in which the lvmetad is needed early, for example in rescue.target to activate some LVs on which mountpoints reside. Also, like in the case of rescue.target, the sockets.target is not pulled in (unless some other service pulls it in explicitly). See also: https://bugzilla.redhat.com/show_bug.cgi?id=1087586#c26 for the summary of the problem.
* tests: lets the test continueZdenek Kabelac2014-04-301-1/+1
| | | | unwanted start of dmeventd was caused by seg_monitor status.
* cleanup: modules_needed only for devmapperZdenek Kabelac2014-04-307-68/+49
| | | | | | Drop compilation of modules_needed and add_target_lin function when compiled without devmapper support. Cleanup surrounding ifdefs.
* cleanup: indentZdenek Kabelac2014-04-301-2/+1
|
* cleanup: indent in devmapper-eventZdenek Kabelac2014-04-301-15/+12
| | | | | Drop header inclusion - this file is already included. Shorten code.
* unknown: add_target_line is not neededZdenek Kabelac2014-04-301-17/+0
| | | | | Leave addition of unknown segment to table as internal error. Do not replace unknown segment with error device.
* makefile: fix regressionZdenek Kabelac2014-04-301-1/+1
| | | | | | Commit 1af05a7a166a470d1b9d86f88fdc64c2d984124b was incorrect. Generated files from configure could be only distclean-ed. (in-release fix)
* lv: show X attr when lv_info failsZdenek Kabelac2014-04-301-2/+2
| | | | | Print 'X' also when lv_info() fails. (i.e. compilation with --disable-ioctl)
* devmapper-event: always initialize timeoutZdenek Kabelac2014-04-301-4/+2
| | | | Always pass fully initialized timeval struct to select.
* devmapper: fix compilation without devmapperZdenek Kabelac2014-04-301-5/+9
| | | | Fix compilation when configured with --disable-devmapper option.
* libdm: cleanup complation without DM_IOCTLSZdenek Kabelac2014-04-301-8/+13
|
* configure: corrected ioctl optionZdenek Kabelac2014-04-302-16/+16
| | | | | | The correct name for disable ioctl option is --disable-ioctl (--disable-driver never worked) Also sort scripts generated files alphabetically.
* display: check for dmeventd supportZdenek Kabelac2014-04-302-1/+3
| | | | | | When quering for dmeventd monitoring status, check first if lvm2 is configured to monitor to avoid unwanted start of dmeventd process for answering monitoring status.
* pvremove: Catch CTRL-c during prompts.Alasdair G Kergon2014-04-292-0/+3
|
* tests: improve coverageZdenek Kabelac2014-04-281-1/+10
| | | | Test more code paths for lvscan & lvdisplay
* cleanup: put all tests within switchZdenek Kabelac2014-04-281-24/+25
| | | | No reason to check for VALID in extra if.
* lvscan: drop test for snapshostsZdenek Kabelac2014-04-282-12/+2
| | | | | | | | When showing ACTIVE status for snapshot's origin, avoid testing all its snapshot - it's not useful to tell user origin is inactivate, while it's clearly available and running - just one of its snapshot leg is invalid...
* thin: move segment info display to correct code sectionZdenek Kabelac2014-04-283-6/+25
| | | | | | | | Relocate info from thin pool and thin volume segments to proper code section for segments. Add discards and thin count status info. Info is shown with 'lvdisplay --maps' (like for other segments).
* thin: display info when -tpool is runningZdenek Kabelac2014-04-282-1/+2
| | | | | | | | | | For percentage display we need -tpool - so check for layered device presence here instead of plain pool device. Also update 'info' - so when pool is 'available' we display open count for -tpool device instead of mostly irrelevant pool. TODO: Maybe we should actually display this open info always? (even when just -tpool is available, but pool is not)
* display: show monitoring statusZdenek Kabelac2014-04-282-0/+5
| | | | | When displaying segments (lvdisplay --maps) show monitoring status when supported by segment.