Milan Broz
c94f02648c
Merge lv_is_displayable and lv_is_visible.
...
Displayable and visible is the same thing.
volumes_count(vg) is now vg_visible_lvs() and always
returns number of LVs from user perspective.
2009-05-13 21:27:43 +00:00
Milan Broz
2ba0dd20fb
Introduce lv_set_visible & lv_set_invisible and use lv_is_visible always.
...
The vg->lv_count parameter now includes always number of visible
logical volumes.
Note that virtual snapshot volume (snapshotX) is never visible,
but it is stored in metadata with visible flag.
2009-05-13 21:26:45 +00:00
Zdeněk Kabeláč
2d3335fa48
Do not query nonexistent devices for readahead.
2009-05-13 14:13:54 +00:00
Milan Broz
fd436c316a
Use zalloc in initialization of device manager (to zero pvmove mirror count).
2009-05-07 12:01:21 +00:00
Milan Broz
de81594179
Properly release VG memory pool in activation code and clvmd.
2009-04-10 10:00:04 +00:00
Alasdair Kergon
c99f525821
Fix last check-ins: seg can be NULL.
2009-02-28 20:04:24 +00:00
Alasdair Kergon
6f53e4b536
Attempt cleanup in child before execing new binary in exec_cmd()
2009-02-28 00:54:06 +00:00
Zdeněk Kabeláč
c4d4403955
Fixed bug where lvresize option -t was not properly passed to fsadm.
...
Using argv[] list in exec_cmd() to allow more params for external commands.
Fsadm does not allow checking mounted filesystem.
Fsadm no longer accepts 'any other key' as 'no' answer to y/n.
Fsadm improved handling of command line options.
2009-02-24 15:48:00 +00:00
Alasdair Kergon
e28d3f8cbd
If kernel supports only one dm major number, use in place of any supplied.
...
No longer require kernel and metadata major numbers to match.
2009-02-12 20:42:07 +00:00
Milan Broz
7f4173ab22
Fail add tree node when requested major/minor is used.
...
Check for major/minor collision is added in _add_dev_to_dtree()
where we already read info by uuid,
so in the case of requesting major/minor it queries device-mapper
by major/minor for device availability.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=204992
2008-12-19 15:23:03 +00:00
prajnoha
370dc2d727
Fix vgrename using UUID in case there are VGs with the same name.
2008-12-19 14:22:48 +00:00
prajnoha
481618826d
Added displayable_lvs_in_vg and lv_is_displayable functions to deal with
...
the counts of visible LVs from user's perspective consistently throughout
the code.
2008-12-04 15:54:26 +00:00
Alasdair Kergon
a2bfad1c29
Right, a simple build (without options) is working again.
2008-11-03 22:14:30 +00:00
Alasdair Kergon
a586a89547
.
2008-09-19 07:18:03 +00:00
Alasdair Kergon
1905eacf15
rename var
2008-09-19 07:12:45 +00:00
Alasdair Kergon
95d43e17b3
Improve the way VGs with PVs missing are handled so manual intervention
...
is required in fewer circumstances. (mornfall)
2008-09-19 06:42:00 +00:00
Alasdair Kergon
69e4400774
Cease recognising snapshot-in-use percentages returned by early development kernels.
2008-07-15 00:25:52 +00:00
Zdeněk Kabeláč
949c1ab517
Improve/Fix read ahead 'auto' calculation for stripe_size
...
Fix lvchange output for -r auto setting if auto is already set
Add testcase for read ahead
2008-06-18 11:32:14 +00:00
Alasdair Kergon
d29565066d
Revert assuming precommitted metadata is live when activating (unnecessary).
2008-06-08 11:33:15 +00:00
Alasdair Kergon
117a0408d6
When activating, if precommitted metadata is still cached, assume it's live.
2008-06-05 13:06:39 +00:00
Alasdair Kergon
a54b0223a3
When removing LV symlinks, skip any where the VG name is not determined.
2008-06-05 12:45:55 +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
Dave Wysochanski
57cb22ff3c
Add vg_is_clustered() helper function.
...
Should be no functional change.
2008-04-10 17:09:32 +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
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
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
9397833ceb
pre-release review cleanups
2008-01-17 17:17:09 +00:00
Alasdair Kergon
f1ccdf25b1
allow a mirror to contain only one mimage
2008-01-16 19:18:51 +00:00
Petr Rockai
d9885b1b64
Add snapshot dmeventd library (enables dmeventd snapshot monitoring).
2008-01-09 15:32:19 +00:00
Zdeněk Kabeláč
9e4b87e798
readahead at least twice the strip size (same as raid0 driver does)
2008-01-08 16:47:10 +00:00
Alasdair Kergon
403779437c
round readahead to multiple of page size in tools
2007-12-05 19:24:32 +00:00
Alasdair Kergon
55323fb497
fix changed parms
2007-12-03 18:00:38 +00:00
Alasdair Kergon
0545cd5879
uncomment libdevmapper readahead calls
2007-11-29 15:04:12 +00:00
Alasdair Kergon
c74fa11518
readahead activation code (but no dm support yet)
2007-11-12 20:51:54 +00:00
Alasdair Kergon
3f507a26fb
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-20 20:55:30 +00:00
Jim Meyering
7454664997
Add "const" attributes where possible: first cut.
2007-08-07 09:06:05 +00:00
Jim Meyering
30a0f831a5
For consistency, rename local variable: s/newname/new_name/g.
2007-08-06 14:57:48 +00:00
Jonathan Earl Brassow
9dbf53fdb9
lib/activate/activate.c:_lv_activate tries to monitor a device
...
regardless of whether it was successfully activated. Now fixed
to only monitor if it was successfully activated.
2007-08-01 20:29:07 +00:00
Alasdair Kergon
10d3496a17
Split metadata-external.h out from metadata.h for the tools to use.
2007-07-18 15:38:58 +00:00
Dave Wysochanski
5f951faf32
Don't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh@pld-linux.org>
2007-07-02 11:17:21 +00:00
Petr Rockai
764858fa12
Make warnings go to stderr. Change log_warn to that effect, log_print
...
continues to send messages to stdout.
2007-06-28 17:33:44 +00:00
Milan Broz
1ded1fc509
Remove symlinks if parent volume is deactivated.
2007-05-15 14:42:01 +00:00
Milan Broz
5ead2706b4
Fix a segfault if a device has no target (no table)
2007-05-14 11:27:34 +00:00
Alasdair Kergon
2294fdb496
Change some #include lines to search only standard system directories.
2007-04-27 17:46:16 +00:00
Alasdair Kergon
dcdbbb3ecb
Add devices/preferred_names config regex list for displayed device names.
...
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
2007-04-26 16:44:59 +00:00
Alasdair Kergon
0b55d7d0d8
Fix vgrename active LV check to ignore differing vgids.
2007-03-08 21:08:25 +00:00
Alasdair Kergon
5d86fd8fdb
Remove no-longer-used uuid_out parameter from activation info functions.
2007-03-08 19:58:04 +00:00
Alasdair Kergon
f9ee4395b0
also ignore mirrors
2007-01-25 23:03:48 +00:00
Alasdair Kergon
71f06d51ed
Add devices/ignore_suspended_devices to ignore suspended dm devices.
2007-01-25 21:22:30 +00:00