]>
sourceware.org Git - lvm2.git/log
Alasdair Kergon [Tue, 7 Apr 2009 22:53:48 +0000 (22:53 +0000)]
Add missing 'device-mapper' internal subdir build dependency.
Milan Broz [Tue, 7 Apr 2009 10:22:14 +0000 (10:22 +0000)]
Use pv from newly read_vg to avoid possible use of not initialized memory.
If the vg in process_each_segment_in_pv is NULL, the pv struct
can be incomplete (for example lv_segs are not copied in get_pvs()
call).
We need use the new pv from just read-in volume group.
(The same code is in pvdisplay already.)
Milan Broz [Tue, 7 Apr 2009 10:20:28 +0000 (10:20 +0000)]
Fix memory pool leak.
Call the alloc_destory call always after finishing operation
with handle otherwise it will leak a memory pool.
Also fix return code in lv_extend.
Dave Wysochanski [Fri, 3 Apr 2009 14:23:17 +0000 (14:23 +0000)]
Fix whitespace in t-mdata-strings.sh
Author: Dave Wysochanski <dwysocha@redhat.com>
Takahiro Yasui [Thu, 2 Apr 2009 21:34:41 +0000 (21:34 +0000)]
Save and restore the previous logging level when log level is changed.
Takahiro Yasui [Thu, 2 Apr 2009 20:46:11 +0000 (20:46 +0000)]
Fix error message when archive initialization fails.
Milan Broz [Thu, 2 Apr 2009 15:02:18 +0000 (15:02 +0000)]
Fix debug pool grow object to properly support delta=0
(It prints garbage for some reports)
Milan Broz [Thu, 2 Apr 2009 15:01:11 +0000 (15:01 +0000)]
Allocate new pv->vg_name from pool, it can be destroyed later.
(The mempool rename will be used later by vg private mempools)
Milan Broz [Thu, 2 Apr 2009 14:59:48 +0000 (14:59 +0000)]
Do not use pointer from released memory pool (cmd->cmd_line).
Christine Caulfield [Wed, 1 Apr 2009 07:51:05 +0000 (07:51 +0000)]
Make sure clvmd-corosync releases the lockspace when it exits.
patch from Xinwei Hu
Milan Broz [Tue, 31 Mar 2009 17:30:47 +0000 (17:30 +0000)]
Add some more special chars for device name test.
Milan Broz [Thu, 26 Mar 2009 09:25:18 +0000 (09:25 +0000)]
fix some issues when compiling with -D DEBUG_POOL
- fix compilation issues
- fix wrong pool object maipulation (lvm dumpconfig triggers assert)
- second iteration in loop _log_parallel_areas operates on non-existing object
Milan Broz [Tue, 24 Mar 2009 13:16:34 +0000 (13:16 +0000)]
Fix segfault for vgcfgrestore on VG with missing PVs.
Christine Caulfield [Tue, 24 Mar 2009 11:49:15 +0000 (11:49 +0000)]
Block SIGINT & SIGTERM in clvmd subthreads so they don't delay shutdown.
Patch from Xinwei Hu, Thanks
Takahiro Yasui [Mon, 23 Mar 2009 22:57:27 +0000 (22:57 +0000)]
Restore log_suppress state when metadata backup file is up-to-date.
Author: Takahiro Yasui <tyasui@redhat.com>
Takahiro Yasui [Mon, 23 Mar 2009 22:29:06 +0000 (22:29 +0000)]
Remove old metadata backup file after renaming vg.
Author: Takahiro Yasui <tyasui@redhat.com>
Takahiro Yasui [Mon, 23 Mar 2009 21:56:32 +0000 (21:56 +0000)]
Fix size and error message of memory allocation at backup initialization.
Author: Takahiro Yasui <tyasui@redhat.com>
Takahiro Yasui [Mon, 23 Mar 2009 21:13:37 +0000 (21:13 +0000)]
Fix error message when adding metadata directory to internal list fails.
Author: Takahiro Yasui <tyasui@redhat.com>
Petr Rockai [Tue, 17 Mar 2009 14:40:00 +0000 (14:40 +0000)]
Missed file from previous checkin.
Petr Rockai [Tue, 17 Mar 2009 14:00:58 +0000 (14:00 +0000)]
Some extra (paranoid) checks on dev_is_{md,swap} result.
Petr Rockai [Tue, 17 Mar 2009 13:59:56 +0000 (13:59 +0000)]
Detect and wipe swap signatures in pvcreate.
Dave Wysochanski [Mon, 16 Mar 2009 20:00:10 +0000 (20:00 +0000)]
Fix some clean rules, fix previous distclean checkin.
In libdm/Makefile.in, we need to cleanup the symlink properly.
Adding to CLEAN_TARGETS seemed like the simplest way to do this
in the current build framework. We could redo dependencies for
VERSIONED_SHLIB, but for now just add to CLEAN_TARGETS.
For scripts/Makefile.in, we should be adding to DISTCLEAN_TARGETS.
The generic rule in make.tmpl.in takes care of the cleanup.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Author: Takahiro Yasui <tyasui@redhat.com>
Dave Wysochanski [Mon, 16 Mar 2009 18:28:04 +0000 (18:28 +0000)]
Fix some distclean rules.
By gnu coding stds, 'distclean' should remove all files generated
by ./configure in addition to what 'clean' does.
Author: Takahiro Yasui <tyasui@redhat.com>
Milan Broz [Mon, 16 Mar 2009 15:19:29 +0000 (15:19 +0000)]
Fix warning in previous commit.
Milan Broz [Mon, 16 Mar 2009 14:34:57 +0000 (14:34 +0000)]
Fix lv_count when manipulating with snapshots and max_lv is set.
Patch fixes these problems:
- during the snapshot creation process, it needs create 2 LVs,
one is cow, second becomes snapshot.
If the code fails in vg_add_snapshot, code lvcreate will not remove
LV cow volume.
- if max_lv is set and VG contains snapshot, it can happen that
during the activation lv_count is temporarily increased over the limit
and VG metadata are not properly processed
see https://bugzilla.redhat.com/show_bug.cgi?id=490298
- vgcfgrestore alows restore with max_lv set to lower valuer that actual
LV count. This later leads to situation that max_lv is completely ignored.
- vgck doesn't call vg_validate(). It should at least try:-)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Dave Wysochanski [Tue, 10 Mar 2009 15:38:46 +0000 (15:38 +0000)]
Remove unnecessary includes in lvm_base.c.
We would like to declare our handles pv_t, vg_t, and lv_t in
the external library header lvm.h. However, these are already
defined in metadata-exported.h for the use of some of the
in-progress liblvm APIs. Thus, we cannot both define
them in lvm.h and include metadata-exported.h in the external
library C files. We could use preprocessor tricks (#ifndef)
but for now we just avoid the include.
Milan Broz [Tue, 10 Mar 2009 12:10:12 +0000 (12:10 +0000)]
Fix clvmd build after liblvm commit.
Dave Wysochanski [Mon, 9 Mar 2009 15:42:10 +0000 (15:42 +0000)]
Fix error messages when PV uuid or pe_start reading fails.
Author: Takahiro Yasui <tyasui@redhat.com>
Committer: Dave Wysochanski <dwysocha@redhat.com>
Dave Wysochanski [Sun, 8 Mar 2009 18:58:53 +0000 (18:58 +0000)]
Add missing liblvm/.exported_symbols
Dave Wysochanski [Sun, 8 Mar 2009 18:10:39 +0000 (18:10 +0000)]
Fix liblvm version symlink.
Dave Wysochanski [Sun, 8 Mar 2009 17:29:26 +0000 (17:29 +0000)]
Remove unnecessary linker flags for liblvm.
Dave Wysochanski [Sun, 8 Mar 2009 17:06:55 +0000 (17:06 +0000)]
Add DSO generation for new LVM application library.
Fix test/api/test build.
Dave Wysochanski [Fri, 6 Mar 2009 22:49:48 +0000 (22:49 +0000)]
Move lvm.h from lib to liblvm.
Dave Wysochanski [Fri, 6 Mar 2009 16:19:52 +0000 (16:19 +0000)]
Add new liblvm build directory and move lvm_base.c.
The original liblvm.a has been moved to liblvm-internal.a.
We now use liblvm.a for the new application library and build
it inside liblvm directory.
Change dependencies so tools depend on liblvm application library,
and application library depends on liblvm internal.
Dave Wysochanski [Fri, 6 Mar 2009 16:17:28 +0000 (16:17 +0000)]
Rename liblvm to liblvm-internal.
Make preparation for using liblvm for new application library.
Christine Caulfield [Fri, 6 Mar 2009 11:29:38 +0000 (11:29 +0000)]
Fix unlocks in clvmd-corosync.
The DLM unlock returns EUNLOCK in the lksb on success, not 0
Milan Broz [Thu, 5 Mar 2009 16:25:35 +0000 (16:25 +0000)]
Fix possible increasing in memory allocation if refreshing_context
(for example when CLVMD_CMD_LOCK_VG for is called during vgscan).
If clvmd calls LV lock, it calls
/* clean the pool for another command */
dm_pool_empty(cmd->mem);
to clean up memory pool after command.
Unfortunately, do_refresh_cache() do not call this
and because during it operation it allocates some memory,
the pool increases.
Also do_refresh_cache should use lvm_lock
(it manipulates with lvm internal data).
The same applies for lvm_backup command.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Alasdair Kergon [Tue, 3 Mar 2009 18:25:05 +0000 (18:25 +0000)]
post-release
Milan Broz [Tue, 3 Mar 2009 16:35:32 +0000 (16:35 +0000)]
vgname_from_mda now tries to parse for vgname even
if rlocn not defined (there is no metadata area).
In most cases it fails in validate_name(),
unfortunately there are situatuions, when
validate_name is ok and later code fails with
checksum error.
Reproducer:
# dd if=/dev/zero of=/dev/loop0
# pvcreate --metadatasize 637k /dev/loop0
Physical volume "/dev/loop0" successfully created
# pvs /dev/loop0
/dev/loop0: Checksum error
PV VG Fmt Attr PSize PFree
/dev/loop0 lvm2 -- 1.00M 1.00M
Signed-off-by: Milan Broz <mbroz@redhat.com>
-
Alasdair Kergon [Tue, 3 Mar 2009 13:03:03 +0000 (13:03 +0000)]
pre-release
Alasdair Kergon [Sat, 28 Feb 2009 20:04:24 +0000 (20:04 +0000)]
Fix last check-ins: seg can be NULL.
Alasdair Kergon [Sat, 28 Feb 2009 19:43:42 +0000 (19:43 +0000)]
.
Alasdair Kergon [Sat, 28 Feb 2009 00:54:06 +0000 (00:54 +0000)]
Attempt cleanup in child before execing new binary in exec_cmd()
Alasdair Kergon [Fri, 27 Feb 2009 23:55:15 +0000 (23:55 +0000)]
.
Alasdair Kergon [Fri, 27 Feb 2009 23:40:11 +0000 (23:40 +0000)]
fsadm cleanups & release prep
Alasdair Kergon [Wed, 25 Feb 2009 23:33:30 +0000 (23:33 +0000)]
autoreconf (using fedora 10 for this now)
Milan Broz [Wed, 25 Feb 2009 23:31:06 +0000 (23:31 +0000)]
pe_start can be overwritten in VG metadata, so it is not PV label-only field.
Milan Broz [Wed, 25 Feb 2009 23:29:06 +0000 (23:29 +0000)]
Try to avoid full rescan if label scan is enough.
Alasdair Kergon [Wed, 25 Feb 2009 22:41:12 +0000 (22:41 +0000)]
Use pkgconfig to obtain corosync library details during configuration. (kabi)
Christine Caulfield [Wed, 25 Feb 2009 14:33:00 +0000 (14:33 +0000)]
Fix error returns in clvmd-corosync interface to DLM.
Thanks to Xinwei Hu for spotting this.
Dave Wysochanski [Wed, 25 Feb 2009 13:17:40 +0000 (13:17 +0000)]
Update vgchange and vgmknodes man pages to include --refresh.
Author: Dave Wysochanski <dwysocha@redhat.com>
Zdenek Kabelac [Tue, 24 Feb 2009 15:48:00 +0000 (15:48 +0000)]
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.
Thomas Woerner [Tue, 24 Feb 2009 13:13:56 +0000 (13:13 +0000)]
Fix include/.symlinks for lvm2.h to lvm.h renaming
Author: Thomas Woerner <twoerner@redhat.com>
Thomas Woerner [Tue, 24 Feb 2009 13:03:45 +0000 (13:03 +0000)]
Added files lib/lvm.h and lib/lvm_base.c:
New structure lvm (used as an alias to cmd_context), new type definition lvm_t
for the lvm handle. Added functions lvm_create, lvm_destroy and
lvm_reload_config using the new handle.
Modified test/api/test.c:
Use new lvm.h header file and lvm_t handle.
Removed lib/lvm2.h
Author: Thomas Woerner <twoerner@redhat.com>
Milan Broz [Mon, 23 Feb 2009 16:53:42 +0000 (16:53 +0000)]
Fix validation of dataalignment value introduced in previous commit.
Alasdair Kergon [Sun, 22 Feb 2009 22:11:58 +0000 (22:11 +0000)]
Move tools/version.h to lib/misc/lvm-version.h.
Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
Alasdair Kergon [Sun, 22 Feb 2009 21:14:37 +0000 (21:14 +0000)]
Add system_dir parameter to create_toolcontext() and call it system_dir
everywhere for consistency.
Milan Broz [Sun, 22 Feb 2009 19:32:28 +0000 (19:32 +0000)]
Comment out pvcreate pagesize alignment test for now.
Alasdair Kergon [Sun, 22 Feb 2009 19:00:26 +0000 (19:00 +0000)]
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).
Alasdair Kergon [Sun, 22 Feb 2009 16:13:57 +0000 (16:13 +0000)]
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.
Alasdair Kergon [Fri, 20 Feb 2009 23:19:28 +0000 (23:19 +0000)]
Provide da and mda locations in debug message when writing text format label.
Alasdair Kergon [Fri, 20 Feb 2009 01:47:02 +0000 (01:47 +0000)]
Mention the restriction on file descriptors at invocation on the lvm man page.
Petr Rockai [Tue, 17 Feb 2009 19:37:28 +0000 (19:37 +0000)]
In testsuite's not.c, print a notice when program dies of a fatal signal.
Petr Rockai [Tue, 17 Feb 2009 19:36:16 +0000 (19:36 +0000)]
Fix test output collection in harness.c.
Alasdair Kergon [Tue, 17 Feb 2009 18:56:41 +0000 (18:56 +0000)]
Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames. (dwyso)
Milan Broz [Tue, 17 Feb 2009 11:07:59 +0000 (11:07 +0000)]
Fix lvm.static build dependence (to properly propagate changes in libdevmapper).
Petr Rockai [Mon, 16 Feb 2009 16:49:21 +0000 (16:49 +0000)]
Only fail when tests have failed, but not when they have been just skipped.
Alasdair Kergon [Thu, 12 Feb 2009 20:42:07 +0000 (20:42 +0000)]
If kernel supports only one dm major number, use in place of any supplied.
No longer require kernel and metadata major numbers to match.
Petr Rockai [Thu, 12 Feb 2009 19:54:45 +0000 (19:54 +0000)]
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...
Christine Caulfield [Wed, 11 Feb 2009 10:13:20 +0000 (10:13 +0000)]
Add a fully-functional get_cluster_name() to clvmd corosync interface.
Christine Caulfield [Tue, 10 Feb 2009 13:22:18 +0000 (13:22 +0000)]
Remove duplicate cpg_initialize from clvmd startup.
Christine Caulfield [Tue, 10 Feb 2009 11:53:33 +0000 (11:53 +0000)]
Add option to /etc/sysconfig/cluster to select cluster type for clvmd.
Christine Caulfield [Tue, 10 Feb 2009 11:52:40 +0000 (11:52 +0000)]
Allow clvmd to start up if its lockspace already exists.
Milan Broz [Mon, 9 Feb 2009 09:45:49 +0000 (09:45 +0000)]
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.)
Zdenek Kabelac [Fri, 6 Feb 2009 14:28:06 +0000 (14:28 +0000)]
Remove external dependency on the 'cut' command in fsadm
Milan Broz [Fri, 6 Feb 2009 12:41:51 +0000 (12:41 +0000)]
Fix pvs segfault when pv mda attributes requested for not available PV.
Zdenek Kabelac [Wed, 4 Feb 2009 12:47:05 +0000 (12:47 +0000)]
add support for ext4 resize in fsadm
Dave Wysochanski [Tue, 3 Feb 2009 16:23:19 +0000 (16:23 +0000)]
Move locking_type reading inside init_locking().
No functional change.
Dave Wysochanski [Tue, 3 Feb 2009 16:19:25 +0000 (16:19 +0000)]
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().
Christine Caulfield [Mon, 2 Feb 2009 14:34:24 +0000 (14:34 +0000)]
Allow clvmd to be built with all cluster managers & select one on cmdline.
Christine Caulfield [Thu, 29 Jan 2009 15:23:15 +0000 (15:23 +0000)]
Mention --with-clvmd=corosync in ./configure
Alasdair Kergon [Tue, 27 Jan 2009 01:48:47 +0000 (01:48 +0000)]
Add as-yet-unused vg_read_error() and vg_might_exist(). (mornfall)
Alasdair Kergon [Tue, 27 Jan 2009 00:40:44 +0000 (00:40 +0000)]
Introduce as-yet-unused replacement vg_read() and vg_read_for_update()
functions. (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 22:42:59 +0000 (22:42 +0000)]
Replace internal vg_check_status() implementation. (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 22:22:07 +0000 (22:22 +0000)]
Properly enforce cluster locking in as-yet-unused _vg_lock_and_read. (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 22:13:22 +0000 (22:13 +0000)]
Introduce as-yet-unused _vg_lock_and_read() and associated header file
definitions.
Alasdair Kergon [Mon, 26 Jan 2009 19:01:32 +0000 (19:01 +0000)]
Rename vg_read() to vg_read_internal(). (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 14:46:08 +0000 (14:46 +0000)]
post-release
Alasdair Kergon [Mon, 26 Jan 2009 14:40:06 +0000 (14:40 +0000)]
and another one missing
Alasdair Kergon [Mon, 26 Jan 2009 13:34:07 +0000 (13:34 +0000)]
Add stuff people missed.
Alasdair Kergon [Mon, 26 Jan 2009 13:14:22 +0000 (13:14 +0000)]
pre-release
Christine Caulfield [Thu, 22 Jan 2009 10:21:12 +0000 (10:21 +0000)]
Add a corosync/DLM cluster service to clvmd.
It's not integrated in the configure system yet though.
Milan Broz [Tue, 20 Jan 2009 20:37:41 +0000 (20:37 +0000)]
Use tools.h in for lvm-static.
Dave Wysochanski [Tue, 20 Jan 2009 17:39:07 +0000 (17:39 +0000)]
Add --unquoted to pvs, vgs, lvs man pages.
Dave Wysochanski [Tue, 20 Jan 2009 17:27:11 +0000 (17:27 +0000)]
Add missing --segments to pvs man pg.
Dave Wysochanski [Tue, 20 Jan 2009 17:10:44 +0000 (17:10 +0000)]
Add --nameprefixes to pvs, vgs, lvs man pages.
Milan Broz [Tue, 20 Jan 2009 17:07:53 +0000 (17:07 +0000)]
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
Dave Wysochanski [Tue, 20 Jan 2009 16:55:24 +0000 (16:55 +0000)]
Add --rows option to pvs, vgs, lvs man pages.
Dave Wysochanski [Mon, 19 Jan 2009 20:53:35 +0000 (20:53 +0000)]
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.
Dave Wysochanski [Thu, 15 Jan 2009 17:14:38 +0000 (17:14 +0000)]
Add skeleton of fsadm nightly test but skip (doesn't work yet).
This page took 0.063415 seconds and 5 git commands to generate.