| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
| |
Setup major already a dev_t type before it gets shifted.
|
|
|
|
|
| |
This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.
|
|
|
|
| |
Miscellaneous clarifications to comments.
|
|
|
|
| |
Add support for new message types for thinp target 1.1
|
| |
|
| |
|
|
|
|
|
| |
Simplifies the code, properly detects too long socket paths,
drops unused parameter.
|
|
|
|
| |
(Must avoid activating snapshot origin more than once concurrently.)
|
| |
|
| |
|
|
|
|
|
|
|
| |
if the thin_check fail on thin pool - still return successful deactivation,
since lvremove would currently fail.
TODO: find some way to not run check with lvremove.
|
|
|
|
| |
(and reindent a code below)
|
|
|
|
|
|
|
|
|
| |
Add some hack math to allow 16GB devices to be passed as thinpool metadata.
Since kernel has put in limit to not allow which are just bigger then
some predefined constant in kernel but not matching 16GB so any device bigger
is rejected.
FIXME: Current code still might need more tweaks to be more generic.
|
| |
|
|
|
|
|
| |
Run users hook after preload for the node is finished,
or after the node has been deactivated.
|
|
|
|
|
|
| |
It's been unsupporte for now - and it's not going to be
implemented for thin pool kernel driver - so dropping
appearence of TRIM from libdm and lvm.
|
|
|
|
|
|
|
|
|
|
|
| |
It was not possible to pass down the DM_[FORCE|NO]SYNC flags to
'dm_tree_node_add_raid_target'. This meant that converting to 'raid1' from
'mirror' would cause a full resync. (It also meant that '--nosync' was
ineffective when creating a 'raid1' LV.)
I've taken the 'reserved' parameter in 'dm_tree_node_add_raid_target' and
used it for the "flags" parameter. Now it is possible to pass the sync
flags and any other flags that may come up.
|
|
|
|
| |
As _deps() call may return NULL - check for it.
|
|
|
|
| |
Do not accept NULL pointers.
|
|
|
|
| |
Variables have (or will have) those values set.
|
|
|
|
|
| |
Since _create_dm_tree_node is copying whole structure,
make sure all members are initialized.
|
|
|
|
|
|
| |
Using PRELOAD part would lead to problems when the problem
would happen before vg_write and vg_commit.
Also this change is necessary for snapshot creation sequence.
|
|
|
|
| |
Tweak dm_config interface and remove FIXMEs.
|
|
|
|
| |
Report both values as 0 in case the volume is unused.
|
|
|
|
|
| |
Do not shortcut to 'meta' and stay with 'metadata'
Also matches kernel doc for dm API then.
|
|
|
|
|
|
|
| |
LVM- prefix.
Try harder not to leave stray empty devices around (locally or remotely) when
reverting changes after failures while there are inactive tables.
|
|
|
|
|
|
|
| |
Add dm_get_status_thin_pool and dm_get_status_thin functions to
parse 'params' argument which is received via dm_get_next_target.
Returns filed structure allocated from given mempool.
|
|
|
|
|
|
|
| |
Remove DM_THIN_ERROR_DEVICE_ID from API.
Remove API warning.
Drop code that was using DM_THIN_ERROR_DEVICE_ID (already commented)
Remove debug message which slipped in through some previous commit.
|
|
|
|
|
| |
id2 must be checked.
(missed in yesterday commit set).
|
|
|
|
|
|
| |
Avoid exposing another struct to the libdm user and
use only simple dm_tree_node_add_thin_pool_message with
2 overloaded uint64_t values.
|
|
|
|
|
|
|
| |
A little code shuffling and adding support for
DM_THIN_ERROR_DEVICE_ID which might be eventually be used
for activation of thin which is going to be deleted.
For now we do not need it lvm.
|
|
|
|
|
| |
Test for dm_snprintf < 0.
Add header for moved backup.
|
|
|
|
|
|
|
| |
Add a new node flag send_messages that is used to simplify
test when to call _node_send_messages().
Add call to _node_send_messages when pool is deeper in the tree.
|
| |
|
|
|
|
|
|
|
| |
There should be no need for retry for our internal devices - it would be hinding
our own bug in the tree processing.
Update error messages to show also also device name.
No WHATS_NEW - in release fix.
|
| |
|
|
|
|
| |
So now the table suppression works for thin-pool.
|
|
|
|
| |
Since kernel target uses low_water_mark - use this name in libdm as well.
|
| |
|
|
|
|
|
|
| |
Use DM_THIN_MIN_DATA_BLOCK_SIZE and
DM_THIN_MAX_DATA_BLOCK_SIZE to make it more obvious, for which
this define is useful in thin API.
|
|
|
|
|
| |
Since the code evolved a bit with current structures we could use C to
copy struct members.
|
|
|
|
|
| |
Drop INTERNAL_ERROR from public API functions.
Improve some messages.
|
|
|
|
|
| |
Drop _thin_pool prefix for _node_send_message so it could be extended later.
Replace current_id with trans_id name.
|
|
|
|
| |
Some tabs & spaces.
|
|
|
|
|
|
|
|
|
|
| |
Certain errno codes could be expected in some situations thus
add experimental support for them.
When expected errno is set after ioctl error - function skips error
printing and exits succefully.
Currently only useful for thin pool messages.
|
|
|
|
| |
Experimental support for kernel message via resume sequence.
|
| |
|
|
|
|
| |
Use metadata uuid first (match kernel target).
|
|
|
|
| |
(revert)
|