| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Missing the "auto" prefix in the config key name. The unknown
setting is silently ignored otherwise.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Test stacking of rename operation within one udev transaction.
|
|
|
|
| |
Add support for LV rename.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Disable private buffering when using liblvm.
When private stdin/stdout buffering is not used always use silent
mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
Fixes previous commit, it seems older gcc compilers do not
recognize same typedef.
(Easiest would be probably to directly include proper header here).
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Always initialize percent to INVALID value, in case target
would have forget to setup this value somehow.
|
|
|
|
| |
Report any problem of fcntl.
|
|
|
|
|
| |
If the monitoring activation failed and we have not yet
reported error - give the user error message for failure reason.
|
|
|
|
| |
Use common subroutine.
|
|
|
|
| |
Just move in front
|
|
|
|
| |
Avoid dereferecing NULL pointer.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
Report error for malloc failure, and use zeroed allocation
to initialize handler structure.
|
| |
|
| |
|
| |
|
|
|
|
| |
Function returns pointer, so use NULL.
|
|
|
|
| |
Intentionaly ignore write and close errors.
|
|
|
|
| |
Pair va_start with va_end.
|
| |
|
|
|
|
| |
Setup major already a dev_t type before it gets shifted.
|
|
|
|
| |
Add FIXME about DEBUG define colission.
|
| |
|
|
|
|
|
| |
This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.
|
|
|
|
| |
Error exit if chdir fails.
|
| |
|
|
|
|
| |
Configure option is --enable-udev_sync.
|
|
|
|
| |
Free allocated buffer in _get_split_name error path.
|
|
|
|
| |
Release allocated hash before exit.
|
|
|
|
| |
Call log only for req.cft != NULL.
|
|
|
|
| |
Release allocated buffer on error path.
|
|
|
|
| |
Release allocated buffers in daemon_logf, daemon_log_parse
|
| |
|
| |
|
|
|
|
| |
Renamed discard -> discards
|
|
|
|
|
| |
Report warning if the kernel is not support given discards settings.
(In this case the behavior is equal to IGNORE.)
|
|
|
|
|
| |
If the discard was not set in metadata, use IGNORE, as this
is the equivalent behavior for this case.
|
|
|
|
|
| |
Disallow '-m' for RAID types that have no mirror component and disallow
'-i' argument for RAID types that have no stripe component.
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|