Alasdair Kergon
d742cdf327
Change pvscan --lvmetad to pvscan --cache.
2012-03-02 18:09:46 +00:00
Alasdair Kergon
d06f64dd29
Allow multiple device names with pvscan --lvmetad.
...
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.)
2012-03-02 16:58:41 +00:00
Zdenek Kabelac
099aca0311
Check allocated pointers
...
Test pointers from allocation against NULL.
Error paths should be checked, some of them probably need
some extesions.
2012-03-01 22:52:59 +00:00
Petr Rockai
bea2f61935
Use 64 bit integers for device size & label sector in _pv_populate_lvmcache in
...
lvmetad client code. Fixes RHBZ 798267.
2012-03-01 20:04:44 +00:00
Alasdair Kergon
5b613cff97
Pass 'single_device' parameter down to suppress 'Can't find uuid' messages
...
when reading VG text metadate and called from pvscan --lvmetad.
(Longer-term, that check needs moving outside of that code.)
2012-02-29 02:35:35 +00:00
Alasdair Kergon
5bba2cc74b
Invert some return codes (which used to get ignored anyway) in cases when
...
lvmetad is not being used.
2012-02-28 18:23:56 +00:00
Zdenek Kabelac
dec6a245a9
Check result of export_vg_to_buffer
...
and avoid usage of failed buffer.
2012-02-28 11:09:06 +00:00
Zdenek Kabelac
a68f04f41c
Check id_write_format result
...
Currently we never fail with 64byte uuid buffer,
but just stay consitent with rest of the code and check for result.
2012-02-27 11:32:48 +00:00
Petr Rockai
7e9fbf5518
Fix a possible SEGV in lvmetad client code, and a minor leak in pvscan
...
--lvmetad.
2012-02-26 13:42:50 +00:00
Petr Rockai
1943ff9910
- Improve error reporting on lvmetad connection failure.
...
- Fix a couple of memory leaks in the lvmetad client code.
- Avoid an error in lvmetad_pv_gone when we aren't using lvmetad.
2012-02-26 08:49:40 +00:00
Zdenek Kabelac
219e040062
Drop backtrace after log_error
...
Just a minor change to not give backtrace when log_error has been just
reported.
2012-02-23 22:24:47 +00:00
Zdenek Kabelac
9cc66e6f8b
Fix regression from cleanup commit
...
baton is being modified, so needs to be cleared before each use.
2012-02-23 19:03:48 +00:00
Zdenek Kabelac
b6c5ea358e
Some reformating for lvmetad uddates
...
cleanup gcc warning,
use PRIu64
header cleanups
const pointer fixes.
2012-02-23 17:59:32 +00:00
Petr Rockai
dae0822698
The lvmetad client-side integration. Only active when use_lvmetad = 1 is set in
...
lvm.conf *and* lvmetad is running.
2012-02-23 13:11:07 +00:00