summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* make: fix subdir order for distcleanPeter Rajnoha2012-08-271-2/+2
| | | | | | The 'test' subdir needs to be processed before 'tools' subdir for distclean as all the cmd names are read from 'tools/.commands' file. Otherwise we'd end up with dangling symlinks in 'tools' subdir.
* config: require dm_config_create_value for dm_config_node's valuePeter Rajnoha2012-08-273-7/+10
| | | | | | | | | | | | | | | | | If we were defining a section (which is a node without a value) and the value was created automatically on dm_config_create_node call, we were wasting resources as the next step after creating the config node itself was assigning NULL for the node's value. The dm_config_node_create + dm_config_create_value sequence should be used instead for settings and dm_config_node_create alone for sections. The majority of the code already used the correct sequence. Though with dm_config_node_create fn creating the value as well, the pool memory was being trashed this way. This patch removes the node value initialization on dm_config_create_node fn call and keeps it for the direct dm_config_create_value fn call.
* test: snapshot_extend_threshold -> snapshot_autoextend_thresholdPeter Rajnoha2012-08-272-2/+2
| | | | | Missing the "auto" prefix in the config key name. The unknown setting is silently ignored otherwise.
* setvbuf: reopen only valid fdPeter Rajnoha2012-08-273-24/+34
| | | | | | We should check whether the fd is opened before trying to reopen it. For example, the stdin is closed in test/lib/harness.c causing the test suite to fail.
* tests: testing lvm_lv_renameZdenek Kabelac2012-08-273-2/+87
| | | | Test stacking of rename operation within one udev transaction.
* lvm2api: extend lvm2api with lvm_lv_renameZdenek Kabelac2012-08-273-0/+27
| | | | Add support for LV rename.
* setvbuf: close and reopen stream before changeAlasdair G Kergon2012-08-262-6/+60
| | | | | | | | Fix setvbuf code by closing and reopening stream before changing buffer. But we need to review what this code is doing embedded inside a library function rather than the simpler original form being run independently at the top of main() by tools that need it.
* buffering: use unbuffered silent mode for liblvmAlasdair G Kergon2012-08-266-5/+23
| | | | | | Disable private buffering when using liblvm. When private stdin/stdout buffering is not used always use silent mode.
* config: add silent modeAlasdair G Kergon2012-08-2545-160/+198
| | | | | | | | | | | | | | | | Accept -q as the short form of --quiet. Suppress non-essential standard output if -q is given twice. Treat log/silent in lvm.conf as equivalent to -qq. Review all log_print messages and change some to log_print_unless_silent. When silent, the following commands still produce output: dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay, pvs, version, vgcfgrestore -l, vgdisplay, vgs. [Needs checking.] Non-essential messages are shifted from log level 4 to log level 5 for syslog and lvm2_log_fn purposes.
* RAID: Add support for RAID10Jonathan Brassow2012-08-2411-7/+218
| | | | | | This patch adds support for RAID10. It is not the default at this stage. The user needs to specify '--type raid10' if they would like RAID10 instead of stacked mirror over stripe.
* version: updateAlasdair G Kergon2012-08-242-2/+2
|
* clenaup: compatible definition for older gccZdenek Kabelac2012-08-231-2/+2
| | | | | | | Fixes previous commit, it seems older gcc compilers do not recognize same typedef. (Easiest would be probably to directly include proper header here).
* cleanup: add some missing stack backtracesZdenek Kabelac2012-08-231-9/+12
|
* thin: discardZdenek Kabelac2012-08-232-3/+3
|
* lvmapi: validate extents size for lvcreateZdenek Kabelac2012-08-231-5/+8
|
* cleanup: initilize percent to INVALIDZdenek Kabelac2012-08-231-2/+2
| | | | | Always initialize percent to INVALID value, in case target would have forget to setup this value somehow.
* clvmd,lvmetad: check for fcntl resultZdenek Kabelac2012-08-232-2/+4
| | | | Report any problem of fcntl.
* activation: report error messageZdenek Kabelac2012-08-231-0/+3
| | | | | If the monitoring activation failed and we have not yet reported error - give the user error message for failure reason.
* lvconvert: use _reload_lv on more placesZdenek Kabelac2012-08-232-60/+31
| | | | Use common subroutine.
* lvconvert: move _reload_lv()Zdenek Kabelac2012-08-231-27/+28
| | | | Just move in front
* cleanup: format1 test whether PV was foundZdenek Kabelac2012-08-231-1/+4
| | | | Avoid dereferecing NULL pointer.
* cleanup: add __attribute__ ((nonnull(1)))Zdenek Kabelac2012-08-232-0/+2
|
* check: add internal errors for unexpected pathsZdenek Kabelac2012-08-237-6/+42
| | | | | | | | | | | | | | | | | | | | Adding couple INTERNAL_ERROR reports for unwanted parameters: Ensure the 'top' metadata node cannot be NULL for lvmetad. Make obvious vginfo2 cannot be NULL. Report internal error if handler and vg is undefined. Check for handle in poll_vg(). Ensure seg is not NULL in dev_manager_transient(). Report missing read_ahead for _lv_read_ahead_single(). Check for report handler in dm_report_object(). Check missing VG in _vgreduce_single().
* cleanup: add error message and simplify creationZdenek Kabelac2012-08-231-7/+3
| | | | | Report error for malloc failure, and use zeroed allocation to initialize handler structure.
* cleanup: use proper activation_change_tZdenek Kabelac2012-08-234-4/+8
|
* cleanup: use static char[] arrayZdenek Kabelac2012-08-231-1/+1
|
* cleanup: cast to matching typeZdenek Kabelac2012-08-231-2/+2
|
* cleanup: use return_NULLZdenek Kabelac2012-08-231-1/+1
| | | | Function returns pointer, so use NULL.
* cleanup: ignore write/close outputZdenek Kabelac2012-08-231-2/+2
| | | | Intentionaly ignore write and close errors.
* cleanup: add va_endZdenek Kabelac2012-08-231-5/+7
| | | | Pair va_start with va_end.
* cleanup: uint64_t castsZdenek Kabelac2012-08-236-6/+6
|
* cleanup: keep MKNOD type cast cleanZdenek Kabelac2012-08-235-8/+8
| | | | Setup major already a dev_t type before it gets shifted.
* cleanup: add standard GPL file headerZdenek Kabelac2012-08-231-1/+25
| | | | Add FIXME about DEBUG define colission.
* cleanup: use <> for system header fileZdenek Kabelac2012-08-231-1/+1
|
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-2347-117/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* cmirrord: check for result of chdirZdenek Kabelac2012-08-231-1/+5
| | | | Error exit if chdir fails.
* dmsetup: check if new_name is non NULLZdenek Kabelac2012-08-232-1/+2
|
* dmsetup: fix udev warning messageZdenek Kabelac2012-08-231-1/+1
| | | | Configure option is --enable-udev_sync.
* dmsetup: fix memleak in _get_split_nameZdenek Kabelac2012-08-232-1/+7
| | | | Free allocated buffer in _get_split_name error path.
* clvmd: release excl_uuid hashZdenek Kabelac2012-08-231-1/+2
| | | | Release allocated hash before exit.
* lvmetad: do not deref NULL pointerZdenek Kabelac2012-08-232-1/+4
| | | | Call log only for req.cft != NULL.
* lvmetad: fix memleak on error pathZdenek Kabelac2012-08-231-1/+3
| | | | Release allocated buffer on error path.
* lvmetad: fix memleaksZdenek Kabelac2012-08-232-1/+7
| | | | Release allocated buffers in daemon_logf, daemon_log_parse
* mirror: reconfigure_mirror_images not usedPeter Rajnoha2012-08-152-0/+6
|
* thin: lvcreate --discardsZdenek Kabelac2012-08-095-1/+15
|
* thin: fix man page for lvsZdenek Kabelac2012-08-092-1/+2
| | | | Renamed discard -> discards
* thin: fix condition for kernels without discardsZdenek Kabelac2012-08-092-2/+3
| | | | | Report warning if the kernel is not support given discards settings. (In this case the behavior is equal to IGNORE.)
* thin: default discards for old mda is IGNOREZdenek Kabelac2012-08-092-1/+5
| | | | | If the discard was not set in metadata, use IGNORE, as this is the equivalent behavior for this case.
* RAID: Improve RAID argument handling.Jonathan Brassow2012-08-082-0/+22
| | | | | Disallow '-m' for RAID types that have no mirror component and disallow '-i' argument for RAID types that have no stripe component.
* libdaemon: Draft logging infrastructure.Petr Rockai2012-08-087-56/+245
| | | | | | | | | | | - logging is not controlled by "levels" but by "types"; types are independent of each other... implementation of the usual "log level" user-level semantics can be simply done on top; the immediate application is enabling/disabling wire traffic logging independently of other debug data, since the former is rather bulky and can easily obscure almost everything else - all logs go to "outlets", of which we currently have 2: syslog and stderr; which "types" go to which "outlets" is entirely configurable