summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve thin_check option passingZdenek Kabelac2012-03-142-16/+32
| | | | | | | Update a way we handle option passing - so we now support path and options with space inside. Fix dm name usage for thin pools with '-' in name. Use new lvm.conf option thin_check_options to pass in options as string array.
* Add --with-thin-check configure optionZdenek Kabelac2012-03-141-0/+3
| | | | | If specified - use given path without test (Path could be empty) If autodetection is in use - check for command in available PATH.
* Removing call of release_vg(NULL)Zdenek Kabelac2012-03-121-1/+0
| | | | | Since we are in error path were vg must be always NULL, skip call of release_vg() like we do in other places.
* Using %u modifier to print unsigned values.Zdenek Kabelac2012-03-121-6/+6
|
* Better structure layout for device_infoZdenek Kabelac2012-03-123-22/+20
| | | | | | Save some relocation entries and use directly char[]. Since we do not need yes more then 127 partitions per device, use just int8_t. Move lvm_type_filter_destroy into local static function.
* Simplify error path code for filter initializationZdenek Kabelac2012-03-121-11/+8
| | | | | Use 'int' counter. Use 'bad' with goto_bad macro.
* Switch to normal log_verbose messageZdenek Kabelac2012-03-121-2/+2
| | | | Here it's not an error case - so do not push this message to stderr.
* Fix error path for create_toolcontextZdenek Kabelac2012-03-121-0/+5
| | | | | | | Never return unfinished toolcontext - since error path is hit on various stages of initialization we cannot leave it partially uninitialized, since we would need to spread many more test across the code for config_valid. Instead return NULL and properly release udev library resources as well.
* re-word warnings to be clearer to userAlasdair Kergon2012-03-061-3/+3
|
* Some more missing supposedly 64bit operations.Zdenek Kabelac2012-03-053-5/+5
| | | | Avoid use 32bit math for extent_size.
* Fit thin pool metadata into 128MBZdenek Kabelac2012-03-051-0/+1
| | | | | | | | | If the lvcreate may decide some automagical values for a user, try to keep the pool metadata size into 128MB range for optimal perfomance (as suggested by Joe). So if the pool metadata size and chunk_size were not specified, try to select such values they would fit into 128MB size.
* Improve warningZdenek Kabelac2012-03-051-4/+17
| | | | | | | | Use thin_dump --repair suggestion in log error message and use just warning on deactivation path without repair info (since node has been deactivated). Also check whether there is not 16 args for thin_check configured.
* Use 64bit mathZdenek Kabelac2012-03-051-2/+2
| | | | | Prevent 32bit overflow and resulting weird error reports when working with TB sizes..
* Validate udev structuresZdenek Kabelac2012-03-041-5/+12
| | | | | | Avoid using NULL pointers from udev. It seems like some older versions of udev were improperly returning NULL in some case, so do not silently break here, and give at least a warning to the user.
* Just make error message more clearZdenek Kabelac2012-03-041-1/+1
| | | | Make more obvious, the origin LV for snapshot must be active.
* Scan all devices for lvmetad if 'pvscan --cache' used without device list.Alasdair Kergon2012-03-032-56/+13
|
* Just space movingZdenek Kabelac2012-03-021-2/+2
| | | | Don't leave space on EOL.
* a fixmeAlasdair Kergon2012-03-021-0/+1
|
* fix non-lvmetad pvscan macroAlasdair Kergon2012-03-021-1/+1
|
* Add support for thin checkZdenek Kabelac2012-03-022-3/+96
| | | | | | | | Use libdm callback to execute thin_check before activation thin pool and after deactivation as well. Supporting thin_check_executable which may pass in extra options for the tool.
* Purge remaining trim bits from codeZdenek Kabelac2012-03-021-1/+1
|
* missing reply freesAlasdair Kergon2012-03-021-7/+12
|
* Pass struct device around internally rather than dev_t.Alasdair Kergon2012-03-024-46/+112
| | | | | | | Add 3rd daemon return state "unknown" for lookups that are carried out successfully but don't find the item requested. Avoid issuing error messages when it's expected that a device that's being looked up in lvmetad might not be there.
* Change pvscan --lvmetad to pvscan --cache.Alasdair Kergon2012-03-023-2/+3
|
* Allow multiple device names with pvscan --lvmetad.Alasdair Kergon2012-03-022-30/+32
| | | | | | Hold global lock in pvscan --lvmetad. (This might need refinement.) Add PV name to "PV gone" messages. Adjust some log message severities. (More changes needed.)
* Remove support for TRIM messageZdenek Kabelac2012-03-022-21/+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.
* Check allocated pointersZdenek Kabelac2012-03-011-24/+25
| | | | | | Test pointers from allocation against NULL. Error paths should be checked, some of them probably need some extesions.
* Check pointer before deref in debug messageZdenek Kabelac2012-03-011-2/+2
|
* Explicitely ignore fail from this label_readZdenek Kabelac2012-03-011-1/+1
|
* Test alloc failZdenek Kabelac2012-03-011-4/+6
|
* Log sys error for lseekZdenek Kabelac2012-03-011-1/+2
|
* Check for udev_get_dev_dir resultZdenek Kabelac2012-03-011-3/+4
| | | | Don't use NULL return value.
* Few more close and dev_close traceZdenek Kabelac2012-03-013-4/+7
| | | | Adding (void) where we cannot really report an error.
* Use 64 bit integers for device size & label sector in _pv_populate_lvmcache inPetr Rockai2012-03-011-2/+2
| | | | lvmetad client code. Fixes RHBZ 798267.
* Improve error loggingZdenek Kabelac2012-03-011-24/+47
| | | | | Log errors instead of plain return 0. Check for f->private strdup result.
* Add stack trace for lv_reduceZdenek Kabelac2012-03-011-7/+4
| | | | | | | Use common code call with stack trace. TODO: maybe the release_lv_segment_area() should be actually able to return error code to upper level.
* Fix leak of FID structureZdenek Kabelac2012-03-011-3/+5
|
* Wipe initial 4KiB for non-zeroed thin volumesZdenek Kabelac2012-02-291-1/+4
| | | | | | | | | If the thin pool has disabled zeroing (created with -Zn), we at least clear initial 4KiB of such thin volume (provisions 1st block). If lvcreate is executed with '-an' command will abort (same way like we for normal LV - however for normal LV option -Zn may skip clearing completely, for thin volumes this option is not supported (applies only for pools).
* Allow cluster mirrors to handle the absence of the checkpoint lib (libSaCkpt).Jonathan Earl Brassow2012-02-291-0/+3
| | | | | | | | | | | | The OpenAIS checkpoint library is going away; therefore, cmirrord must operate without it. The algorithms the handle the timing of when to send a checkpoint, the determination of what to send, and which ongoing cluster requests are relevent with respect to the checkpoints are unaffected. We need only replace the functions that actually perform the storing/transmitting and retrieving/receiving of the checkpoint data. Rather than store the checkpoint data in an OpenAIS checkpoint file, we simply transmit it along with the message that notifies the incoming node that the checkpoint is ready.
* Pass 'single_device' parameter down to suppress 'Can't find uuid' messagesAlasdair Kergon2012-02-299-17/+28
| | | | | | when reading VG text metadate and called from pvscan --lvmetad. (Longer-term, that check needs moving outside of that code.)
* Fix a whitespace bug in the last checkin.Petr Rockai2012-02-291-1/+1
|
* Attempt a fix for lvm shell accumulating copies of orphan PVs with each "pvs"Petr Rockai2012-02-291-1/+4
| | | | invocation.
* Reflect new file locations, include file updates etc.Alasdair Kergon2012-02-281-3/+5
|
* Invert some return codes (which used to get ignored anyway) in cases whenAlasdair Kergon2012-02-281-3/+16
| | | | lvmetad is not being used.
* Bypass lvmetad fns when not configured to use lvmetad.Alasdair Kergon2012-02-281-2/+20
|
* Add LVMETAD_SUPPORTAlasdair Kergon2012-02-281-0/+3
|
* If lvmetad fails, don't set _has_scannedAlasdair Kergon2012-02-281-3/+8
|
* Using enum types for enumsZdenek Kabelac2012-02-281-1/+1
| | | | alloc_policy_t, dm_string_mangling_t, percent_range_t, sign_t
* Revert free of allocated segtypeZdenek Kabelac2012-02-283-12/+8
| | | | | lvm_register_segtype takes ownership of segtype and call destructor for it in error path.
* Test dm_hash_insert() failures mem failuresZdenek Kabelac2012-02-282-4/+13
|