Zdenek Kabelac
dae792baad
cov: strcpy mempcy
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
db40a2e33c
cov: replace strcat with safe snprintf
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
4761753a6f
cov: replace strcpy with memcpy
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
04b407674c
cov: use sscanf buffer size limits
...
String parsing with buffer size limit.
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
61a11f25a3
cov: check for valid raid0 LV segment
...
Add internal error to quiet Coverity fear of NULL pointer deref.
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
099a4e2146
raid: easier prompt message
...
Use printf capability of 'prompt()' funtions so use literal
when building this message.
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
91991e3cc1
lvmlockd-dlm: log_error message with literal
...
Use literals for printf() message construction.
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
e56e7ed533
libdm: unlink checks for ENOENT
2024-05-08 01:55:21 +02:00
Zdenek Kabelac
a763420786
libdm: use literal for error message
...
Use literals for printf messages.
2024-05-08 01:55:20 +02:00
Zdenek Kabelac
75a03c2c26
const: daemon server logging backend struct
2024-05-08 01:55:20 +02:00
Zdenek Kabelac
495ea0f058
const: lvmpolld long_options
...
Rework usage of long_options so it can be constified,
and also correct use of 'enum action_index'.
2024-05-08 01:55:20 +02:00
Zdenek Kabelac
c140601cf6
const: rework conversion to enum
...
Easier code with string and also avoids mixing enums.
2024-05-08 01:55:20 +02:00
Zdenek Kabelac
5d573cc91d
const: array of const values
2024-05-08 01:55:20 +02:00
Zdenek Kabelac
7b872bc4cd
const: libdm err_fmt as string
2024-05-08 01:55:20 +02:00
David Teigland
2a75dc7465
man: lvmthin update
...
major refresh of text and organization
2024-05-06 12:17:13 -05:00
Zdenek Kabelac
09426b4663
dmsetup: fix invalid loop test
...
Last patcheds had incorrect merging bug - fix loop test.
2024-05-04 01:53:54 +02:00
Zdenek Kabelac
d16a8f80e9
Revert "libdm: fix condition"
...
This reverts commit 2a1e200f7a
.
Breaks some test - more analysis is needed.
2024-05-04 01:37:51 +02:00
Zdenek Kabelac
f3d3d4a07d
WHATS_NEW: update
2024-05-04 01:02:31 +02:00
Zdenek Kabelac
2e38369ecf
make: generate
...
Update for --wipesignatures for lvconvert.
2024-05-04 01:02:18 +02:00
Zdenek Kabelac
011e0672c5
dmsetup: use getopt defines
...
Replace 0/1 with getopts defines no/required_argument
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
2b198cd874
const: dmsetup long_options
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
8daa702880
const: dmsetup string
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
781bb0ea37
const: cmirrord array
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
f65f5e1c22
const: lvmlockctl options
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
9a9db862a4
const: dmfilemapd strings
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
7f25e58f66
const: array for _vdo_split
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
0eb6a59299
const: report_name
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
e0bd66b73a
const: use common error path
...
Instead of defining _field_selection_value_alloc_failed_msg[],
use common error path code for printing field_id.
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
8bbd00162b
const: log level string
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
c9f9744f50
const: libdm cmd_data_v4
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
9247e754fe
const: libdm tok_op
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
eae0314b55
const: suffixes list
...
dm_tree_set_optional_uuid_suffixes() is safe to use with overcasted
array to (const char**)
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
9cf127b429
const: suffixes
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
0e5250c475
const: _reserved
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
e6f46fafe7
const: use arrays of strings 2
...
Next set of changes.
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
0bcf2c6514
const: use arrays of strings
...
Such string is stored directly in '.rodata' section.
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
efe2005022
const: drop static keyword
...
We don't need relocatable space to store 'const' number.
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
abf7c40185
const: static array
...
Such array can be stored in .rodata section.
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
acabc995c0
const: config items
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
9f506eb89e
const: raid takover arrays
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
6430a6ca63
const: _fns poll_function
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
ff699eab24
const: _ops text_vg_version
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
41ffa8c74d
const: _ops labeler _text_ops
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
64cb8b5940
const: _ops segtype handler
2024-05-04 01:01:57 +02:00
Zdenek Kabelac
effafa8fc8
const: _ops text handler
...
Making sure these structures ends in '.data.rel.ro' section.
(instead of plain '.data' section).
2024-05-04 01:01:42 +02:00
Zdenek Kabelac
2a1e200f7a
libdm: fix condition
...
When we switch supported_reserved_types_with_range to const
gcc repots this problem:
warning: ‘and’ of mutually exclusive equal-tests is always 0
!(iter->type & supported_reserved_types_with_range))) {
It's not clear from the history what was the actual intention of this
internal error test, let's assume the check wanted to make sure
that when DM_REPORT_FIELD_RESERVED_VALUE_RANGE is set,
some other fields from supported_reserved_types_with_range set
are also selected.
2024-05-04 00:58:44 +02:00
Zdenek Kabelac
9b2f9d64c0
libdm: ensure suffixes list elements are const
...
This was rather API mistake - the internal of libdm
do handle suffixes list as const string, just the API
was only using 'const char **'.
So the user may pass safely casted 'const char * const`.
2024-05-04 00:57:52 +02:00
Zdenek Kabelac
e02695cb45
lvonvert: support control over wipingsignature
...
When converting volume to a thin-pool allow control over
signature wiping.
TODO: likely should become more commonly supported option...
2024-05-04 00:57:52 +02:00
Zdenek Kabelac
a6f4aed3c0
vdo: enhance error path
...
When the conversion to VDO fails, try to restore previous VG state
and also remove orphan DM node from table.
2024-05-04 00:57:14 +02:00
Zdenek Kabelac
1f92fc2af7
lvcreate: --yes option for thin-pool vdo creation
...
Correct typo and accept proper --yes option instead
of misplaced --force option.
2024-05-04 00:56:32 +02:00