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
Zdenek Kabelac
a98f908c23
command: correct lvresize
...
Code for supporting size reduction of pool metadata is not yet present
so don't pretend the option can work as pushed in previous commit.
2024-05-02 13:18:08 +02:00
Zdenek Kabelac
54e2de82c0
WHATS_NEW: update
2024-05-02 12:07:47 +02:00
Zdenek Kabelac
8f37c22df2
make: generate
...
Update lvresize options with +/-.
2024-05-02 12:04:07 +02:00
Zdenek Kabelac
1ab66f37ae
command-lines: improve spec for thin snapshot
...
man-generate --check actually noticed 2 same definitions
for snapshot create with 'lvreate -T [--snapshot]'
and 'lvcreate --snapshot [-T]'.
So drop the '-T' from second alternative variant as
thin type is already implied here.
2024-05-02 12:04:07 +02:00
Zdenek Kabelac
611975c51b
use LVM_COMMAND_COUNT
2024-05-02 12:04:07 +02:00
Zdenek Kabelac
eeffc1d52b
man-generator: code reformating
2024-05-02 12:04:07 +02:00
Zdenek Kabelac
b4670db008
command: refactor to use const command structure
...
Refactor code so the definitions may become 'static const'
and with configure_command_option_values() we update options
val_enum for actually running command option when used.
Also update _update_relative_opt() which is used for
generating man pages and command help.
Introduce enumeration for lvm2 commands - so we may
use enum cmd_COMMAND instead of string checking.
So running command now does not modified opt_names.
2024-05-02 12:01:06 +02:00
Zdenek Kabelac
0b064aedb3
command: embedding strings to structs
...
Since we will make these struct const, we can also
embedding string content into them to avoid unnecessary
pointer relocations.
2024-05-02 11:59:42 +02:00
Zdenek Kabelac
6f8abdc978
cleanup: tab indent and typo
2024-05-02 11:58:26 +02:00
Zdenek Kabelac
db6bb6e90b
cleanup: unlink passes with ENOENT
2024-05-01 10:55:17 +02:00
Zdenek Kabelac
061fa7b690
cleanup: remove unused code
2024-05-01 10:55:17 +02:00
Zdenek Kabelac
2a39ed7741
writecache: reuse some API
...
Tiny code updates, reuse dm_pool_strdup().
2024-05-01 10:55:17 +02:00