summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* thin: fix recent commitsAlasdair G Kergon2012-08-071-11/+10
|
* thin: use discards as plural rather than singularAlasdair G Kergon2012-08-0717-89/+89
| | | | Global change from --discard to --discards, as that feels more natural.
* release: update version/WHATS_NEWAlasdair G Kergon2012-08-074-23/+24
|
* thin: tidy thin discard codeAlasdair G Kergon2012-08-071-22/+13
| | | | | | | | | Always store discard setting in LV metadata. (Note that lvcreate_params doesn't yet use --discard to set the initial value.) Remove undocumented env var LVM_THIN_VERSION_MIN that has no use on a live system. Change verbose 'feature not found' messages to debug. Use discard_str for string value of discard.
* man: expand lvchange --discard entryAlasdair G Kergon2012-08-071-1/+6
|
* thin: tidy commands.h arg listsAlasdair G Kergon2012-08-071-11/+8
| | | | | | args are listed alphabetically. lvconvert -T is covered in the second section not the first. It could be tidied further or split out.
* thin: mention discard/zero in lvchange errmsgAlasdair G Kergon2012-08-071-5/+4
|
* whitespaceAlasdair G Kergon2012-08-071-1/+0
|
* report: provide discard field value in fullAlasdair G Kergon2012-08-072-17/+6
| | | | | | | | | I think it's better not to abbreviate human-readable fields like 'discard' to a single character. Users can truncate it to the first character themselves if they wish. It's confusing to use the variable name discard for different things in different places - use discard_str when it's a string not the enum.
* activation: log target version presentAlasdair G Kergon2012-08-071-0/+5
| | | | Log (very verbose) the target version present in target_version.
* thin: tighten discard string conversionsAlasdair G Kergon2012-08-071-6/+3
| | | | | | | | | Respond with "unknown" rather than a NULL pointer if there's an internal error and the discard value is invalid. Don't accept 'no_passdown' or 'no-passdown' variants in the LVM metadata: this is written by the program so should only ever contain "nopassdown" and should be validated strictly against that.
* thin: order discard enum alphabeticallyAlasdair G Kergon2012-08-071-2/+2
|
* comments: misc updatesAlasdair G Kergon2012-08-074-10/+11
| | | | Miscellaneous clarifications to comments.
* man: document allocation process in lvm.8Alasdair G Kergon2012-08-072-61/+130
|
* args: increase major:minor limit to 4095:1048575Peter Rajnoha2012-08-066-38/+48
| | | | | | | | | Remove the limit for major and minor number arguments used while specifying persistent numbers via -My --major <major> --minor <minor> option which was set to 255 before. Follow the kernel limit instead which is 12 bits for major and 20 bits for minor number (kernel >= 2.6 and LVM formats that does not have FMT_RESTRICTED_LVIDS - so still keep the old limit of 255 for lvm1 format).
* [lvmetad] Continue reading/writing on EINTRMarian Csontos2012-08-021-4/+4
|