Milan Broz
0241c10fd6
Fix validation of dataalignment value introduced in previous commit.
2009-02-23 16:53:42 +00:00
Alasdair Kergon
ec6a6fbef2
Move tools/version.h to lib/misc/lvm-version.h.
...
Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
2009-02-22 22:11:58 +00:00
Alasdair Kergon
7ac8b7c340
Add system_dir parameter to create_toolcontext() and call it system_dir
...
everywhere for consistency.
2009-02-22 21:14:37 +00:00
Milan Broz
47870122d7
Comment out pvcreate pagesize alignment test for now.
2009-02-22 19:32:28 +00:00
Alasdair Kergon
8929ce6651
Add --dataalignment to pvcreate to specify alignment of data area. (mbroz)
...
This patch is not fully tested and leaves some related bugs unfixed.
Intended behaviour of the code now:
pe_start in the lvm2 format PV label header is set only by pvcreate (or
vgconvert -M2) and then preserved in *all* operations thereafter.
In some specialist cases, after the PV is added to a VG, the pe_start
field in the VG metadata may hold a different value and if so, it
overrides the other one for as long as the PV is in such a VG.
Currently, the field storing the size of the data area in the PV label
header always holds 0. As it only has meaning in the context of a
volume group, it is calculated whenever the PV is added to a VG (and can
be derived from extent_size and pe_count in the VG metadata).
2009-02-22 19:00:26 +00:00
Alasdair Kergon
47c0f6ae76
Fix interrupt unblocking after vgcreate, for example: drop_cached_metadata()
...
previously left _vg_lock_count incremented.
Other locks are always held during drop_cached_metadata() so there's no
need to increment+decrement it.
2009-02-22 16:13:57 +00:00
Alasdair Kergon
277534474e
Provide da and mda locations in debug message when writing text format label.
2009-02-20 23:19:28 +00:00
Alasdair Kergon
45bec96725
Mention the restriction on file descriptors at invocation on the lvm man page.
2009-02-20 01:47:02 +00:00
Petr Rockai
62b248d2ed
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
98bea5edbf
Fix test output collection in harness.c.
2009-02-17 19:36:16 +00:00
Alasdair Kergon
9b99f3337b
Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames. (dwyso)
2009-02-17 18:56:41 +00:00
Milan Broz
fec1903f58
Fix lvm.static build dependence (to properly propagate changes in libdevmapper).
2009-02-17 11:07:59 +00:00
Petr Rockai
fc5e78cf5e
Only fail when tests have failed, but not when they have been just skipped.
2009-02-16 16:49:21 +00:00
Alasdair Kergon
0f817d38f7
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
3dfe4e29af
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
9c61679e6f
Add a fully-functional get_cluster_name() to clvmd corosync interface.
2009-02-11 10:13:20 +00:00
Christine Caulfield
0f1917afa7
Remove duplicate cpg_initialize from clvmd startup.
2009-02-10 13:22:18 +00:00
Christine Caulfield
d3e282c9d8
Add option to /etc/sysconfig/cluster to select cluster type for clvmd.
2009-02-10 11:53:33 +00:00
Christine Caulfield
2095de1af2
Allow clvmd to start up if its lockspace already exists.
2009-02-10 11:52:40 +00:00
Milan Broz
ea0cdd28c1
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
Zdenek Kabelac
284f4496c3
Remove external dependency on the 'cut' command in fsadm
2009-02-06 14:28:06 +00:00
Milan Broz
92a4d6b28a
Fix pvs segfault when pv mda attributes requested for not available PV.
2009-02-06 12:41:51 +00:00
Zdenek Kabelac
cd96532e78
add support for ext4 resize in fsadm
2009-02-04 12:47:05 +00:00
Dave Wysochanski
76cc7b2754
Move locking_type reading inside init_locking().
...
No functional change.
2009-02-03 16:23:19 +00:00
Dave Wysochanski
4631e58782
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
fd5c5a9703
Allow clvmd to be built with all cluster managers & select one on cmdline.
2009-02-02 14:34:24 +00:00
Christine Caulfield
4ff2b4ee5d
Mention --with-clvmd=corosync in ./configure
2009-01-29 15:23:15 +00:00
Alasdair Kergon
432d4b9f6e
Add as-yet-unused vg_read_error() and vg_might_exist(). (mornfall)
2009-01-27 01:48:47 +00:00
Alasdair Kergon
544deede49
Introduce as-yet-unused replacement vg_read() and vg_read_for_update()
...
functions. (mornfall)
2009-01-27 00:40:44 +00:00
Alasdair Kergon
b8fa516016
Replace internal vg_check_status() implementation. (mornfall)
2009-01-26 22:42:59 +00:00
Alasdair Kergon
ff2f094761
Properly enforce cluster locking in as-yet-unused _vg_lock_and_read. (mornfall)
2009-01-26 22:22:07 +00:00
Alasdair Kergon
bc92cde62c
Introduce as-yet-unused _vg_lock_and_read() and associated header file
...
definitions.
2009-01-26 22:13:22 +00:00
Alasdair Kergon
8544a8a254
Rename vg_read() to vg_read_internal(). (mornfall)
2009-01-26 19:01:32 +00:00
Alasdair Kergon
302125622a
post-release
2009-01-26 14:46:08 +00:00
Alasdair Kergon
a40fb438e6
and another one missing
2009-01-26 14:40:06 +00:00
Alasdair Kergon
f653fb2b07
Add stuff people missed.
2009-01-26 13:34:07 +00:00
Alasdair Kergon
c6a808f1a7
pre-release
2009-01-26 13:14:22 +00:00
Christine Caulfield
f2042acc7f
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
6f3c1dcee7
Use tools.h in for lvm-static.
2009-01-20 20:37:41 +00:00
Dave Wysochanski
c0f61d7d22
Add --unquoted to pvs, vgs, lvs man pages.
2009-01-20 17:39:07 +00:00
Dave Wysochanski
b40b5ecc0b
Add missing --segments to pvs man pg.
2009-01-20 17:27:11 +00:00
Dave Wysochanski
583ee60169
Add --nameprefixes to pvs, vgs, lvs man pages.
2009-01-20 17:10:44 +00:00
Milan Broz
9c961554c4
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
6baf973742
Add --rows option to pvs, vgs, lvs man pages.
2009-01-20 16:55:24 +00:00
Dave Wysochanski
1a0280b313
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
813db2c158
Add skeleton of fsadm nightly test but skip (doesn't work yet).
2009-01-15 17:14:38 +00:00
Dave Wysochanski
422c49558f
Fix fsadm lvresize for filesystem block sizes != 1024.
...
Fixes rhbz 480022.
2009-01-15 14:44:48 +00:00
Petr Rockai
bf180e98f4
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
67d66d3225
...and a few more uninitialised dummy fields.
2009-01-10 17:21:17 +00:00
Alasdair Kergon
9bbd343f3a
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