Alasdair Kergon
303388e5cb
Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34)
2008-04-14 19:24:16 +00:00
Dave Wysochanski
6790656af6
Add lv_is_active() to determine whether an lv is active.
...
Handles non-clustered as well as clustered. For clustered,
the best we can do is try exclusive local activation. If this
succeeds, we know it is not active elsewhere in the cluster.
Otherwise, we assume it is active elsewhere.
2008-04-10 21:34:18 +00:00
Alasdair Kergon
e612871ea7
more pre-release cleanup
2008-04-10 19:59:43 +00:00
Alasdair Kergon
7f40f09f10
fix 3rd copy
2008-04-10 19:16:35 +00:00
Alasdair Kergon
456e42257c
make list_move consistent with other list fns
2008-04-10 19:14:27 +00:00
Alasdair Kergon
72ca1ccc23
.
2008-04-10 18:53:36 +00:00
Alasdair Kergon
10bf8fd2cd
Fix vgdisplay 'Cur LV' field to match lvdisplay output.
...
Fix lv_count report field to exclude hidden LVs.
2008-04-10 17:19:02 +00:00
Dave Wysochanski
57cb22ff3c
Add vg_is_clustered() helper function.
...
Should be no functional change.
2008-04-10 17:09:32 +00:00
Alasdair Kergon
b4ad9a5d08
Use clustered mirror log with pvmove in clustered VGs, if available.
2008-04-09 12:56:34 +00:00
Alasdair Kergon
57685f17a9
Fix vgreduce to use vg_split_mdas to check sufficient mdas remain.
...
Add (empty) orphan VGs to lvmcache during initialisation.
Fix orphan VG name used for format_pool.
2008-04-08 12:49:21 +00:00
Alasdair Kergon
a1c09a463f
create fids for internal orphan VGs
2008-04-07 22:12:37 +00:00
Milan Broz
194121760a
Update lvmcache VG lock state for all locking types now.
2008-04-07 19:17:29 +00:00
Milan Broz
6a987d46bf
Fix output if overriding command_names on cmdline.
2008-04-07 13:53:26 +00:00
Milan Broz
e3db0b39b9
Add detection of clustered mirror log capability.
...
Currently only check for kernel module presence.
2008-04-07 10:23:47 +00:00
Dave Wysochanski
4d4f0ee188
Add check to vg_commit() to ensure lock is held before writing new VG metadata.
2008-04-04 15:41:20 +00:00
Alasdair Kergon
fefc655969
Add some basic internal VG lock validation.
2008-04-03 18:56:40 +00:00
Alasdair Kergon
1ecd05a584
fix vd->virtblk
2008-04-03 10:29:00 +00:00
Alasdair Kergon
976acaca31
enable vg metadata cache by default
2008-04-02 21:31:14 +00:00
Alasdair Kergon
b4e5131d59
Add per-command flags to control which commands use the VG metadata cache.
2008-04-02 21:23:39 +00:00
Alasdair Kergon
db559bb20a
Cache VG metadata internally while VG lock is held.
2008-04-01 22:40:13 +00:00
Dave Wysochanski
752c880bfc
Add find_lv_in_lv_list() and find_pv_in_pv_list().
...
Update _add_pvs() to call find_pv_in_pv_list().
2008-03-28 19:08:23 +00:00
Dave Wysochanski
fc0ec1e71e
Use list_move() in applicable places.
2008-03-26 17:26:32 +00:00
Dave Wysochanski
fb2f92df1d
Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
2008-03-26 16:48:10 +00:00
Dave Wysochanski
74adbb77b7
Add list_move() support function for list manipulation.
2008-03-26 16:20:54 +00:00
Alasdair Kergon
9feaeb28ca
preparation for vg cache
2008-03-17 16:51:31 +00:00
Dave Wysochanski
99c5da5da5
Const cleanups in find_* functions.
2008-03-13 22:51:24 +00:00
Alasdair Kergon
22c957bc20
Refactor text format initialisation into _init_text_import.
2008-03-13 12:33:22 +00:00
Alasdair Kergon
a109ce1eca
Escape double quotes and backslashes in external metadata and config data.
...
Add functions for escaping double quotes in strings.
Rename count_chars_len to count_chars.
2008-03-12 16:03:22 +00:00
Alasdair Kergon
e581a78d65
Use return_0 in a couple more places.
...
Correct a function name typo in _line_append error message.
2008-03-10 18:51:27 +00:00
Alasdair Kergon
bd606943e6
add vd to filters
2008-03-05 18:15:04 +00:00
Alasdair Kergon
2a91d87074
Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV.
2008-02-22 13:28:29 +00:00
Alasdair Kergon
4a23617d79
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
2008-02-22 13:22:44 +00:00
Alasdair Kergon
0e2ceed74d
Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
2008-02-22 13:22:21 +00:00
Jim Meyering
bf98943cbb
is_orphan: make parameter "const" to avoid compiler warning
2008-02-13 20:01:48 +00:00
Alasdair Kergon
71b3b1ff4c
split orphan VG by format type
2008-02-06 15:47:28 +00:00
Alasdair Kergon
dd53f2dc83
a couple more compiler warnings
2008-01-31 12:35:31 +00:00
Alasdair Kergon
2b83c80593
Fix mirror log name construction during lvconvert. (2.02.30)
...
Make monitor_dev_for_events recurse through the stack of LVs.
Clean up some more compiler warnings.
Add mirror names test script.
2008-01-31 12:19:36 +00:00
Alasdair Kergon
6930f60c06
only read labels once between each lock event
2008-01-30 16:18:37 +00:00
Alasdair Kergon
376b76e75c
undo a few 'stack' moves
2008-01-30 14:17:29 +00:00
Alasdair Kergon
1ddd4509dc
Some whitespace tidy-ups.
2008-01-30 14:00:02 +00:00
Alasdair Kergon
6af3f4f4cf
Use stack return macros throughout.
2008-01-30 13:19:47 +00:00
Alasdair Kergon
6726c5f958
Rely upon internally-cached PV labels while corresponding VG lock is held.
2008-01-29 23:45:48 +00:00
Alasdair Kergon
617a599ee9
Fix two check_lv_segments error messages to show whole segment.
2008-01-26 00:30:28 +00:00
Alasdair Kergon
ad2e7218cb
Refactor mirror log attachment code.
2008-01-26 00:25:04 +00:00
Alasdair Kergon
b595ee1c0b
suppress compiler warning
2008-01-22 16:02:26 +00:00
Dave Wysochanski
71d609895a
Fix vgsplit - print error if vgcreate option given w/existing vg destination
...
Fix vgsplit - reject split if metadata types or clustered attributes differ
Fix vgsplit - remove physicalextentsize option
Add vgsplit test cases
2008-01-22 02:48:53 +00:00
Alasdair Kergon
94563b6017
Fix lvcreate --nosync not to wait for non-happening sync.
2008-01-18 22:02:37 +00:00
Alasdair Kergon
34d22f7047
add lvconvert messages
2008-01-18 22:00:46 +00:00
Alasdair Kergon
9397833ceb
pre-release review cleanups
2008-01-17 17:17:09 +00:00
Alasdair Kergon
8900231d99
fix default extent_size
2008-01-17 15:31:18 +00:00