summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-deptree.c
Commit message (Collapse)AuthorAgeFilesLines
* RAID: Add support for RAID10Jonathan Brassow2012-08-241-0/+4
| | | | | | 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.
* cleanup: keep MKNOD type cast cleanZdenek Kabelac2012-08-231-2/+2
| | | | Setup major already a dev_t type before it gets shifted.
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-231-1/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* comments: misc updatesAlasdair G Kergon2012-08-071-4/+4
| | | | Miscellaneous clarifications to comments.
* libdm: support reserve and release metadata snap msgZdenek Kabelac2012-07-181-0/+6
| | | | Add support for new message types for thinp target 1.1
* libdm: add support for external origin and discardZdenek Kabelac2012-07-181-21/+119
|
* cleanup: use dev_t typeZdenek Kabelac2012-06-221-2/+2
|
* cleanup: replace memset with struct initilizationZdenek Kabelac2012-06-221-3/+1
| | | | | Simplifies the code, properly detects too long socket paths, drops unused parameter.
* Set delay_resume_if_new on deptree snapshot origin.Alasdair Kergon2012-05-151-2/+10
| | | | (Must avoid activating snapshot origin more than once concurrently.)
* add major:minor to table size changed debug messageAlasdair Kergon2012-05-151-2/+3
|
* indicate when deptree detects but ignores size change in debug msgAlasdair Kergon2012-05-151-3/+5
|
* Return success for deactivation of thin poolZdenek Kabelac2012-03-041-1/+4
| | | | | | | 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.
* Remove part of FIXMEZdenek Kabelac2012-03-041-9/+5
| | | | (and reindent a code below)
* Support 16GB for thin pool metadataZdenek Kabelac2012-03-021-1/+21
| | | | | | | | | 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.
* Purge remaining trim bits from codeZdenek Kabelac2012-03-021-4/+0
|
* Added dm_tree_node_set_callback() for preload and deactivation hooksZdenek Kabelac2012-03-021-1/+26
| | | | | Run users hook after preload for the node is finished, or after the node has been deactivated.
* Remove support for TRIM messageZdenek Kabelac2012-03-021-11/+0
| | | | | | 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.
* Make conversion from a synced 'mirror' to 'raid1' not cause a full resync.Jonathan Earl Brassow2012-02-131-1/+2
| | | | | | | | | | | 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.
* Check for deps pointer before dererenceZdenek Kabelac2012-02-101-1/+1
| | | | As _deps() call may return NULL - check for it.
* Add validation of name and uuidZdenek Kabelac2012-02-101-0/+5
| | | | Do not accept NULL pointers.
* Remove unneeded assignmentsZdenek Kabelac2012-02-081-4/+0
| | | | Variables have (or will have) those values set.
* Ensure whole info is initialisedZdenek Kabelac2012-01-251-6/+1
| | | | | Since _create_dm_tree_node is copying whole structure, make sure all members are initialized.
* Thin send messages on activation resume code pathZdenek Kabelac2012-01-251-16/+11
| | | | | | 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.
* Reorder fns in libdm-deptree.Alasdair Kergon2012-01-231-362/+362
| | | | Tweak dm_config interface and remove FIXMEs.
* Thin handle empty thin volume caseZdenek Kabelac2012-01-191-1/+4
| | | | Report both values as 0 in case the volume is unused.
* Thin use consistentely metadataZdenek Kabelac2012-01-191-2/+3
| | | | | Do not shortcut to 'meta' and stay with 'metadata' Also matches kernel doc for dm API then.
* Add dm_uuid_prefix/dm_set_uuid_prefix for non-lvm users to override hard-codedAlasdair Kergon2012-01-101-62/+138
| | | | | | | 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 Thin API for parsing thin statusZdenek Kabelac2011-12-211-0/+48
| | | | | | | 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.
* Thin remove unused defineZdenek Kabelac2011-11-121-11/+6
| | | | | | | 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.
* Thin fix condition check for transation_idZdenek Kabelac2011-11-041-2/+2
| | | | | id2 must be checked. (missed in yesterday commit set).
* Thin api change for passing message into libdmZdenek Kabelac2011-11-031-18/+49
| | | | | | 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.
* Thin api change for dm_tree_node_add_thin_targetZdenek Kabelac2011-11-031-11/+18
| | | | | | | 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.
* Thin fix compile warnsZdenek Kabelac2011-10-301-1/+3
| | | | | Test for dm_snprintf < 0. Add header for moved backup.
* Thin segment transaction_id movedZdenek Kabelac2011-10-301-13/+27
| | | | | | | 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.
* Thin error messages clenaup and some indentZdenek Kabelac2011-10-281-4/+2
|
* Trying to fix the retry logicZdenek Kabelac2011-10-281-10/+29
| | | | | | | 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.
* Just replace stack, return 0 with return_0Zdenek Kabelac2011-10-201-12/+6
|
* Add last param 0 for thin-poolZdenek Kabelac2011-10-201-1/+1
| | | | So now the table suppression works for thin-pool.
* Adapt to thin kernel target APIZdenek Kabelac2011-10-201-4/+4
| | | | Since kernel target uses low_water_mark - use this name in libdm as well.
* Use const pointers in thin API were appropriateZdenek Kabelac2011-10-201-1/+1
|
* Add _BLOCK_ to defineZdenek Kabelac2011-10-201-4/+4
| | | | | | 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.
* Use structure copyZdenek Kabelac2011-10-191-10/+5
| | | | | Since the code evolved a bit with current structures we could use C to copy struct members.
* Update error messageZdenek Kabelac2011-10-191-4/+4
| | | | | Drop INTERNAL_ERROR from public API functions. Improve some messages.
* Use generic name for message sending functionZdenek Kabelac2011-10-191-12/+11
| | | | | Drop _thin_pool prefix for _node_send_message so it could be extended later. Replace current_id with trans_id name.
* Just indent changesZdenek Kabelac2011-10-191-2/+0
| | | | Some tabs & spaces.
* Add internal expected_errno dm_tast varZdenek Kabelac2011-10-191-0/+6
| | | | | | | | | | 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.
* Add thin_pool dm message supportZdenek Kabelac2011-10-171-18/+216
| | | | Experimental support for kernel message via resume sequence.
* Add _thin_validate_device_idZdenek Kabelac2011-10-171-5/+13
|
* Swap parametersZdenek Kabelac2011-10-171-1/+1
| | | | Use metadata uuid first (match kernel target).
* Drop old check for transaction_idZdenek Kabelac2011-10-171-24/+0
| | | | (revert)