Alasdair Kergon
259245d412
Provide da and mda locations in debug message when writing text format label.
2009-02-20 23:19:28 +00:00
Alasdair Kergon
717180a8eb
Mention the restriction on file descriptors at invocation on the lvm man page.
2009-02-20 01:47:02 +00:00
Petr Rockai
12811483be
In testsuite's not.c, print a notice when program dies of a fatal signal.
2009-02-17 19:37:28 +00:00
Petr Rockai
822aa2a352
Fix test output collection in harness.c.
2009-02-17 19:36:16 +00:00
Alasdair Kergon
9d788d4d9c
Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames. (dwyso)
2009-02-17 18:56:41 +00:00
Milan Broz
d405cb8dd9
Fix lvm.static build dependence (to properly propagate changes in libdevmapper).
2009-02-17 11:07:59 +00:00
Petr Rockai
5d3e57094a
Only fail when tests have failed, but not when they have been just skipped.
2009-02-16 16:49:21 +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
Petr Rockai
182494a5b7
Re-implement the test harness in C. This lets us pass through signals and
...
trigger proper test teardown upon harness interrupt or termination. I also
tweaked the output somewhat while I was at it...
2009-02-12 19:54:45 +00:00
Christine Caulfield
9487820c32
Add a fully-functional get_cluster_name() to clvmd corosync interface.
2009-02-11 10:13:20 +00:00
Christine Caulfield
03d00c16f8
Remove duplicate cpg_initialize from clvmd startup.
2009-02-10 13:22:18 +00:00
Christine Caulfield
57a38a00d9
Add option to /etc/sysconfig/cluster to select cluster type for clvmd.
2009-02-10 11:53:33 +00:00
Christine Caulfield
779b8679fd
Allow clvmd to start up if its lockspace already exists.
2009-02-10 11:52:40 +00:00
Milan Broz
d0143d6f3e
Separate PV label attributes which do not need parse metadata when reporting.
...
When reporting explicitly label attributes (pv_uuid for example), we do not
need to read metadata.
This patch separate the label fileds and removes scan_vgs_for_pvs
in process_each_pv() if not needed.
(There should be no user visible change in output.)
2009-02-09 09:45:49 +00:00
Zdeněk Kabeláč
7917c3fc15
Remove external dependency on the 'cut' command in fsadm
2009-02-06 14:28:06 +00:00
Milan Broz
81de913b77
Fix pvs segfault when pv mda attributes requested for not available PV.
2009-02-06 12:41:51 +00:00
Zdeněk Kabeláč
0e3798cadb
add support for ext4 resize in fsadm
2009-02-04 12:47:05 +00:00
Dave Wysochanski
7447482608
Move locking_type reading inside init_locking().
...
No functional change.
2009-02-03 16:23:19 +00:00
Dave Wysochanski
f9b185caa5
Rename get_vgs() to get_vgnames() and clarify related error messages.
...
get_vgs() really returns a list of vgnames. In the future we will use
get_vgs() to return a list of vg structures, similar to get_pvs().
2009-02-03 16:19:25 +00:00
Christine Caulfield
4761ce4b45
Allow clvmd to be built with all cluster managers & select one on cmdline.
2009-02-02 14:34:24 +00:00
Christine Caulfield
9f31af4c20
Mention --with-clvmd=corosync in ./configure
2009-01-29 15:23:15 +00:00
Alasdair Kergon
ab448cdb57
Add as-yet-unused vg_read_error() and vg_might_exist(). (mornfall)
2009-01-27 01:48:47 +00:00
Alasdair Kergon
22c4076818
Introduce as-yet-unused replacement vg_read() and vg_read_for_update()
...
functions. (mornfall)
2009-01-27 00:40:44 +00:00
Alasdair Kergon
6e8bd97709
Replace internal vg_check_status() implementation. (mornfall)
2009-01-26 22:42:59 +00:00
Alasdair Kergon
7dd128a1a8
Properly enforce cluster locking in as-yet-unused _vg_lock_and_read. (mornfall)
2009-01-26 22:22:07 +00:00
Alasdair Kergon
dfd422a386
Introduce as-yet-unused _vg_lock_and_read() and associated header file
...
definitions.
2009-01-26 22:13:22 +00:00
Alasdair Kergon
6f434cd94a
Rename vg_read() to vg_read_internal(). (mornfall)
2009-01-26 19:01:32 +00:00
Alasdair Kergon
a82f2fec18
post-release
2009-01-26 14:46:08 +00:00
Alasdair Kergon
234115f384
and another one missing
old-v2_02_44
v2_02_44
2009-01-26 14:40:06 +00:00
Alasdair Kergon
c522618a4b
Add stuff people missed.
2009-01-26 13:34:07 +00:00
Alasdair Kergon
1c65c56970
pre-release
2009-01-26 13:14:22 +00:00
Christine Caulfield
c6cff13038
Add a corosync/DLM cluster service to clvmd.
...
It's not integrated in the configure system yet though.
2009-01-22 10:21:12 +00:00
Milan Broz
f25b101161
Use tools.h in for lvm-static.
2009-01-20 20:37:41 +00:00
Dave Wysochanski
6a866e208f
Add --unquoted to pvs, vgs, lvs man pages.
2009-01-20 17:39:07 +00:00
Dave Wysochanski
11b1e5abd7
Add missing --segments to pvs man pg.
2009-01-20 17:27:11 +00:00
Dave Wysochanski
f44c387988
Add --nameprefixes to pvs, vgs, lvs man pages.
2009-01-20 17:10:44 +00:00
Milan Broz
b6629080ee
Fix problems with static build
...
- compiler warning (missing header)
- configure should set static flag early to be able
use STATIC_LINK flag during configure script
2009-01-20 17:07:53 +00:00
Dave Wysochanski
4022dd564b
Add --rows option to pvs, vgs, lvs man pages.
2009-01-20 16:55:24 +00:00
Dave Wysochanski
c848ce66c5
Rename _parse_options() to _parse_fields() for naming consistency.
...
In libdm, we only ever use 'fields', while the tools use 'options' and
'fields' interchangeably.
Ideally it would be good to use 'fields' consistently everywhere.
However, 'options' most likely comes from the tool commandline '-o' and
'--options' which cannot be changed.
2009-01-19 20:53:35 +00:00
Dave Wysochanski
26b4c34778
Add skeleton of fsadm nightly test but skip (doesn't work yet).
2009-01-15 17:14:38 +00:00
Dave Wysochanski
7eff83d689
Fix fsadm lvresize for filesystem block sizes != 1024.
...
Fixes rhbz 480022.
2009-01-15 14:44:48 +00:00
Petr Rockai
125fb7fbdb
A C implementation of "not" that handles fatal signals rather more
...
intelligently than the shell implementation. C code by Jaroslav Stava.
I have done a rudimentary review and checked that tests still pass.
2009-01-12 18:45:44 +00:00
Alasdair Kergon
01be5511e5
...and a few more uninitialised dummy fields.
2009-01-10 17:21:17 +00:00
Alasdair Kergon
4b45c6e35a
More fields can cause segfaults with orphans.
...
Fix these by populating the dummy VG struct more completely.
2009-01-10 17:09:40 +00:00
Dave Wysochanski
7f831c1f4d
Fix pvs segfault when run with orphan PV and vg_mda_size or vg_mda_free fields
...
We display '0' for these fields now in this case. Ideally these values are
undefined for an orphan PV but today there is no way to specify undefined
with display functions such as _size64_disp().
2009-01-10 15:04:28 +00:00
Petr Rockai
d6778847c9
Fix some checks in lvm-utils.sh. Note that "$(test ...)" is always empty, since
...
"test" never prints anything. Therefore, "return $(test ...)" is equivalent to
just "return;" which means success in sh (same as return 0). We can however,
thanks to set -e, use "test foo = bar" as an assertion.
PS: test a == b is invalid syntax. It is either = or -eq: = is textual and -eq
is numeric comparison.
2009-01-10 12:19:41 +00:00
Alasdair Kergon
9a96645b53
Add <report_type>_all to help text.
2009-01-10 03:14:24 +00:00
Alasdair Kergon
ffa1b19e26
Add an "all" field which expands to all fields of the report type.
...
For example in LVM2, "pv_all" gives all PV fields.
"seg_all" gives all LV segment fields.
"all" gives all fields of the final report type. I think this is more
useful than just adding the current prefix.
So "lvs -o seg_all" gives all the LV segment fields, whilst
"lvs --segments -o all" adds in LV and VG fields too.
"lvs -o all -O vg_name" has report type LVS+VGS so includes all LV and all
VG fields.
2009-01-10 03:01:35 +00:00
Alasdair Kergon
6f98b140a8
Display a 'dev_size' of zero for missing devices in reports.
2009-01-10 02:43:51 +00:00
Dave Wysochanski
e83d1a26e6
Add pv_mda_size to pvs and vg_mda_size to vgs.
2009-01-09 22:48:22 +00:00