Ferenc Wágner
8821cc416e
cmirrord manual: add --foreground and --help options
2015-08-20 19:06:47 +02:00
Ferenc Wágner
92a4b5cc3c
cmirrord: add --foreground and --help options.
2015-08-20 19:06:47 +02:00
Ferenc Wágner
c0d6056870
cmirrord: move generic setup from daemonize() to init_all()
...
Apply pidfile creation, removal and signal setup to foreground processes too.
2015-08-20 19:06:47 +02:00
Bryn M. Reeves
23770214a9
man: fix program_id string in dmstats.8.in
2015-08-20 17:27:28 +01:00
Bryn M. Reeves
386e91addb
libdm: add dm_message_supports_precise_timestamps()
...
Add a function to test whether the kernel precise_timestamps
feature is available in the current device-mapper driver version.
Presence of precise_timestamps also implies the availability of
latency histograms.
2015-08-20 12:11:23 +01:00
David Teigland
62a87c84ed
lvmlockd: ignore cmd close if no locks were taken
...
When a command closes its connection, don't waste
time looking for locks to purge if it did not make
any lock requests.
2015-08-19 12:16:04 -05:00
David Teigland
ce2e60ab45
lvmlockd: change log_error to log_debug for non error
...
It's not uncommon for a command like vgchange -an to
deactivate and unlock LVs that were not active, so
don't lock that as an error.
2015-08-19 11:43:39 -05:00
David Teigland
9c5a85ce24
lvmlockctl: fix debug output
2015-08-18 16:49:33 -05:00
David Teigland
c09dad71fb
tests: fix lockd options in sanlock-prepare
2015-08-18 15:06:49 -05:00
David Teigland
d08427030d
config: improve description text layout
...
This mainly makes the description text use 80 columns.
There are a few minor adjustments to wording to help
the text layout, and a couple minor improvements to
descriptions.
2015-08-18 14:02:32 -05:00
David Teigland
7b570840cd
lockd: no error when unlock fails
...
The unlock call will fail in expected and normal cases,
and should not cause the command to fail. (An actual
unlock in the lock manager should never fail.)
2015-08-18 11:18:40 -05:00
Bryn M. Reeves
c1bd76d6fc
configure: check for -lm and log10 function
...
We already use -lm functions in a couple of places (these are
satisfied by gcc built-ins for most builds): add a configure.in
check and explicitly link to -lm.
2015-08-18 15:25:54 +01:00
Zdenek Kabelac
a7abade088
cleanup: compare fgets pointer
...
Check pointer for not being NULL.
2015-08-18 16:05:04 +02:00
Zdenek Kabelac
abb24370e9
cleanup: move var declaration
2015-08-18 16:05:04 +02:00
Zdenek Kabelac
6e1feb0f73
cleanup: preserve constness of some pointers
2015-08-18 16:05:04 +02:00
Zdenek Kabelac
ef7264807f
cleanup: log_debug format matches args
2015-08-18 16:05:04 +02:00
Bryn M. Reeves
bc39506792
man: update dmstats.8.in examples
2015-08-18 14:40:45 +01:00
Zdenek Kabelac
28b4fa3e27
Revert "lvmcache: check for too long pvid"
...
This reverts commit 70db1d523d
.
Since we use 'strncpy' even for case where it exactly matches
the buffer size and \0 is not expected to be added there.
2015-08-18 15:22:13 +02:00
Zdenek Kabelac
b193809987
debug: vgdisplay trace failing result code
...
Add stack on error path.
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
a8fd88463e
cleanup: trace error from lvmcache_update_vgname_and_id
...
Check result value from lvmcache_update_vgname_and_id().
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
3a3e17d603
cleanup: check pthread result codes
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
40af31729f
cleanup: typo fix and drop \
...
Fix 'th e' and use % directly.
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
58f8f29c41
cleanup: add FMTssize_t
...
Add define to print nicely ssize_t type.
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
3d08a49790
cleanup: add cast
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
55a9262bdb
cleanup: unused header files (Coverity)
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
ba94d0f144
libdm: simplify dmstats formula.
...
Since we check for stats for not being 0,
simplify the operation and use a single division.
2015-08-18 15:00:08 +02:00
Zdenek Kabelac
ae4db9f302
lockd: check for failing unlock
...
Avoid ignoring unlocking error.
2015-08-18 15:00:07 +02:00
Zdenek Kabelac
70db1d523d
lvmcache: check for too long pvid
2015-08-18 14:53:36 +02:00
Bryn M. Reeves
8e229cb7ea
dmstats: reduce minimum field widths
2015-08-18 10:30:53 +01:00
Bryn M. Reeves
13d3eeb2ee
dmstats: fix type formatting
...
Fix several instances of 'const char * const*' to be:
'const char * const *'
2015-08-18 10:30:53 +01:00
David Teigland
dece918bc8
config: create lists of accepted values in descriptions
2015-08-17 14:50:41 -05:00
David Teigland
b091c37595
config: add empty lines around examples
...
When --withspaces is used, a blank line is
added before and after an Example section,
making the text less dense.
2015-08-17 13:52:34 -05:00
David Teigland
ca70770cfd
config: recognize a blank comment line
...
Consider the comment line "#\n" to be a blank line, and
print a blank line at that position when --withspaces is set.
2015-08-17 13:52:34 -05:00
David Teigland
5243a81c29
config: explain automatic default values
...
Before printing a commented automatic config value,
print a line describing what it is. Otherwise, the
commented value can look like it's a part of an
example preceding it.
2015-08-17 13:52:34 -05:00
Bryn M. Reeves
12acf852c5
dmsetup: check timerfd reads for valid byte count (Coverity)
...
The timerfd guarantees that it will return 8 bytes when a read(2)
is issued (a uint64_t giving the number of timer events during the
call). Check that it does so and log a non-fatal error if the byte
count is not 8.
2015-08-17 19:28:53 +01:00
Bryn M. Reeves
074b5de771
libdm: check for zero in _nr_areas() (Coverity)
2015-08-17 18:37:16 +01:00
Bryn M. Reeves
69fa16048a
dmstats: check for zero in _nr_areas_from_step() (Coverity)
2015-08-17 18:37:16 +01:00
Bryn M. Reeves
b01e9651b0
dmsetup: make sure subcommand is initialised (Coverity)
2015-08-17 18:37:16 +01:00
Bryn M. Reeves
8967776713
libdm: do not read region before checking dms for NULL (Coverity)
...
dm_stats_get_area_start() attempts to assign a region pointer from
a stats handle before checking it is non-NULL: move the assignment
after the test.
2015-08-17 18:37:16 +01:00
Alasdair G Kergon
d1c65d1b28
post-release
2015-08-17 17:26:20 +01:00
Alasdair G Kergon
be1db6b6c1
pre-release
2015-08-17 17:20:14 +01:00
Bryn M. Reeves
4227b2ebb4
libdm-stats: only return uint64_t when required
...
Several interfaced in libdm-stats return a uint64_t when it is
only used to signal success/failure: change all these uses to
return a simple int instead.
2015-08-17 16:59:52 +01:00
Alasdair G Kergon
15e20bb5c0
conf: Regenerate example.conf.
2015-08-17 16:51:43 +01:00
Zdenek Kabelac
80bc87e377
cache: more comments for new setting
2015-08-17 17:26:39 +02:00
Zdenek Kabelac
77357081c8
tests: update thin test
...
Since we now let pass activation of thin-pool 'off-by-one' for
plain 'vgchange -ay' update the test to use higher TID.
2015-08-17 17:07:09 +02:00
Zdenek Kabelac
4b28383b1c
cache: move detection code to cache_set_policy
...
Move code which runtime detects settings for cache_policy
out of config dir to cache seg handling code.
Also mark cache_mode as command profilable setting.
2015-08-17 15:52:06 +02:00
Zdenek Kabelac
94c56559ca
dmsetup: fix usage of ifdefs
2015-08-17 15:52:06 +02:00
Bryn M. Reeves
427d0a5e92
libdm: ensure dm_stats_get_area_offset() returns a value
2015-08-17 14:40:48 +01:00
Alasdair G Kergon
623b46a17d
device: Don't try to close config file on failure.
...
$file: open failed: Permission denied
Failed to load config file $file
Attempt to close device '$file' which is not open.
2015-08-17 12:57:01 +01:00
Zdenek Kabelac
a606966029
tests: Revert update for new thin pool messaging
...
This reverts commit 3dbb9a57ca
.
Original code is back as the code restored previous TID handling.
2015-08-17 11:25:03 +02:00