]>
sourceware.org Git - lvm2.git/log
Dave Wysochanski [Fri, 3 Aug 2007 21:22:10 +0000 (21:22 +0000)]
Factor out core of lvrename to lv_rename library function.
Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Petr Rockai [Thu, 2 Aug 2007 22:31:59 +0000 (22:31 +0000)]
Fix a possible segfault in libdevmapper-event. Thanks to Brian J. Wood
for noticing this.
Jonathan Earl Brassow [Wed, 1 Aug 2007 21:01:06 +0000 (21:01 +0000)]
This patch changes the arguments that specify the mirror
log type. Previously, we had a '--corelog' argument that
would change the default type from 'disk' to 'core'. I
think that creates too much confusion - especially when
doing conversions on mirrors.
The new argument '--log' takes either "disk" or "core"
as a parameter. This could be expanded in the future
for additional logging types as well.
Examples:
# Creating a 2-way mirror
$> lvcreate -m1 ... # implicitly use default disk logging
$> lvcreate -m1 --log disk ... # explicit disk logging
$> lvcreate -m1 --log core ... # specify core logging
$> lvcreate -m1 --corelog ... # old way still works
# Conversion examples
$> lvconvert --log core ... # convert to core logging
$> lvconvert --log disk ... # convert to disk logging
$> lvconvert -mX --corelog ... # old way still works
$> lvconvert -mX ... # old way of converting to disk logging still works
Changes are reflected in the man pages.
Jonathan Earl Brassow [Wed, 1 Aug 2007 20:54:28 +0000 (20:54 +0000)]
- cleanup excessive indentation in tools/lvconvert.c:lvconvert_mirrors
Jonathan Earl Brassow [Wed, 1 Aug 2007 20:29:07 +0000 (20:29 +0000)]
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.
Jim Meyering [Sat, 28 Jul 2007 15:20:36 +0000 (15:20 +0000)]
Don't leak a file descriptor in fcntl_lock_file(), when fcntl fails.
Jim Meyering [Sat, 28 Jul 2007 12:26:21 +0000 (12:26 +0000)]
Remove create_dir function; use now-equivalent dm_create_dir instead.
* lib/misc/lvm-file.c (_create_dir_recursive, create_dir): Remove functions.
* lib/misc/lvm-file.h (create_dir): Remove declaration.
* lib/commands/toolcontext.c (create_toolcontext): s/create_dir/dm_create_dir/
* lib/format_text/archiver.c (archive, backup): Likewise.
* lib/format_text/format-text.c (_add_dir): Likewise.
* lib/locking/file_locking.c (init_file_locking): Likewise.
Patch by Jun'ichi Nomura.
Jim Meyering [Sat, 28 Jul 2007 10:48:36 +0000 (10:48 +0000)]
Export dm_create_dir (was create_dir) to help fix LVM2 link error
* lib/libdm-file.c (dm_create_dir): Rename from create_dir.
* lib/libdevmapper.h (dm_create_dir): Declare.
* lib/.exported_symbols: Add dm_create_dir.
* lib/ioctl/libdm-iface.c (_create_control): Update sole use.
Patch by Jun'ichi Nomura. Details in
http://www.redhat.com/archives/lvm-devel/2007-July/msg00040.html
Jim Meyering [Sat, 28 Jul 2007 10:27:34 +0000 (10:27 +0000)]
Make the libdevmapper version of create_dir equivalent to the LVM2 one.
(_create_dir_recursive): Refrain from logging a mkdir failure due to EROFS.
Patch by Jun'ichi Nomura.
Jim Meyering [Sat, 28 Jul 2007 10:23:02 +0000 (10:23 +0000)]
Introduce log_sys_* macros from LVM2.
Convert existing "<string>: <function> failed: <strerror>" type messages
to use this macro. Patch by Jun'ichi Nomura.
Alasdair Kergon [Thu, 26 Jul 2007 13:28:32 +0000 (13:28 +0000)]
Add ps3disk devices.
Jim Meyering [Tue, 24 Jul 2007 17:48:08 +0000 (17:48 +0000)]
Detect stream write failure reliably; new fn: lvm_fclose; use dm_fclose
* lib/misc/lvm-file.c (lvm_fclose): New function.
* lib/misc/lvm-file.h (lvm_fclose): Declare it.
* lib/config/config.c (write_config_file): Use the new function to detect
and diagnose unlikely write failure.
* lib/filters/filter-persistent.c (persistent_filter_dump): Likewise.
* lib/format_text/archive.c (archive_vg): Likewise.
* lib/format_text/format-text.c (_vg_write_file): Likewise.
* lib/log/log.c (fin_log): Similar, but use dm_fclose directly.
Include "\n" at end of each fprintf format string.
Milan Broz [Tue, 24 Jul 2007 15:35:11 +0000 (15:35 +0000)]
Fix clvmd if compiled with gulm support. (2.02.26)
Jim Meyering [Tue, 24 Jul 2007 14:16:48 +0000 (14:16 +0000)]
libdevmapper, dmeventd: be paranoid about detecting write failure
* dmeventd/dmeventd.c (_set_oom_adj): When writing to /proc/self/oom_adj,
detect failure even if it's hidden behind ferror. [Using dm_fclose's
extra ferror test here is probably not needed, since the amount written
is nowhere near BUFSIZ, but use it regardless, for consistency. ]
* lib/fs/libdevmapper.c (do_suspend): Detect fclose failure when
writing to suspend.
Jim Meyering [Tue, 24 Jul 2007 14:15:45 +0000 (14:15 +0000)]
dm_fclose: new function
* lib/libdevmapper.h: Declare it.
* lib/libdm-file.c (dm_fclose): Define it.
* lib/.exported_symbols: Add dm_fclose.
Dave Wysochanski [Tue, 24 Jul 2007 11:29:55 +0000 (11:29 +0000)]
Trivial fix to lvdisplay man pg to recommend lvs
Dave Wysochanski [Tue, 24 Jul 2007 10:58:01 +0000 (10:58 +0000)]
Trivial fix to lvdisplay man pg to correct volume size units
Dave Wysochanski [Mon, 23 Jul 2007 22:20:42 +0000 (22:20 +0000)]
Update lvconvert and lvrename to use vg_lock_and_read
Dave Wysochanski [Mon, 23 Jul 2007 21:10:36 +0000 (21:10 +0000)]
Fix error introduced with previous checkin
Dave Wysochanski [Mon, 23 Jul 2007 21:03:42 +0000 (21:03 +0000)]
Add CORRECT_INCONSISTENT and FAIL_INCONSISTENT flags to vg_lock_and_read
Dave Wysochanski [Mon, 23 Jul 2007 17:27:55 +0000 (17:27 +0000)]
Add vg_lock_and_read() external library function.
Milan Broz [Mon, 23 Jul 2007 10:45:49 +0000 (10:45 +0000)]
Fix loading of persistent cache if cache_dir is used. (2.02.23)
Move lstat warning in _compare_paths to verbose output only.
Milan Broz [Mon, 23 Jul 2007 10:41:19 +0000 (10:41 +0000)]
Fix compilation warning in util.c.
Jim Meyering [Fri, 20 Jul 2007 15:48:39 +0000 (15:48 +0000)]
Eliminate uses of strdup+basename. Use last_path_component instead.
* lib/misc/util.c, lib/misc/util.h (last_path_component): New files.
* lib/Makefile.in (SOURCES): Add misc/util.c.
* lib/misc/lib.h: Include "util.h".
* tools/fsadm/fsadm.c: Include "util.h". (_usage): Use last_path_component,
not basename.
* tools/lvmcmdline.c (_find_command, lvm2_main): Likewise.
* include/.symlinks: Add lib/misc/util.h.
Jim Meyering [Fri, 20 Jul 2007 15:38:19 +0000 (15:38 +0000)]
Use gcc's printf attribute wherever possible.
* daemons/clvmd/clvmd.h (debuglog): Add __attribute__((printf)).
* lib/config/config.c (_line_append): Likewise.
* lib/misc/lvm-string.h (emit_to_buffer): Likewise.
Jim Meyering [Fri, 20 Jul 2007 15:26:39 +0000 (15:26 +0000)]
In _line_append, use "sizeof buf - 1" rather than equivalent "4095"
* lib/config/config.c:
Jim Meyering [Fri, 20 Jul 2007 15:22:46 +0000 (15:22 +0000)]
Introduce is_same_inode macro, now including a comparison of st_dev.
* lib/misc/lvm-file.h (is_same_inode): Define.
* lib/filters/filter-persistent.c (persistent_filter_dump): Use is_same_inode
in place of a direct st_ino-only comparison.
* lib/locking/file_locking.c (_release_lock, _lock_file): Likewise.
Jim Meyering [Fri, 20 Jul 2007 12:12:52 +0000 (12:12 +0000)]
Don't leak a file descriptor in _lock_file when flock fails.
* lib/locking/file_locking.c (_lock_file): Close fd upon flock failure.
Patrick Caulfield [Thu, 19 Jul 2007 07:06:47 +0000 (07:06 +0000)]
Add SUN's LDOM virtual block device to filters
Thanks to Fabio Massimo Di Nitto
Alasdair Kergon [Wed, 18 Jul 2007 15:38:58 +0000 (15:38 +0000)]
Split metadata-external.h out from metadata.h for the tools to use.
Alasdair Kergon [Tue, 17 Jul 2007 20:53:51 +0000 (20:53 +0000)]
post-release
Alasdair Kergon [Tue, 17 Jul 2007 20:45:17 +0000 (20:45 +0000)]
pre-release
Milan Broz [Tue, 17 Jul 2007 16:13:12 +0000 (16:13 +0000)]
Fix snapshot cow area deactivation if origin is not active. (2.02.13)
Alasdair Kergon [Fri, 13 Jul 2007 17:08:00 +0000 (17:08 +0000)]
Fix configure libdevmapper.h check when --with-dmdir is used.
Alasdair Kergon [Fri, 13 Jul 2007 16:10:24 +0000 (16:10 +0000)]
post-release
Alasdair Kergon [Fri, 13 Jul 2007 16:07:30 +0000 (16:07 +0000)]
pre-release
Dave Wysochanski [Thu, 12 Jul 2007 15:38:53 +0000 (15:38 +0000)]
Change pv_read_path to pv_by_path
Dave Wysochanski [Thu, 12 Jul 2007 05:04:42 +0000 (05:04 +0000)]
Turn _add_pv_to_vg() into external library function add_pv_to_vg()
Dave Wysochanski [Thu, 12 Jul 2007 04:12:04 +0000 (04:12 +0000)]
Refactor vg_extend error path.
Dave Wysochanski [Wed, 11 Jul 2007 23:33:12 +0000 (23:33 +0000)]
Add pv_read_path, a proposed external LVM library function to take a device path and return a PV handle
Patrick Caulfield [Wed, 11 Jul 2007 12:07:39 +0000 (12:07 +0000)]
Tidy bits of clvmd-openais and improve an error report.
Alasdair Kergon [Tue, 10 Jul 2007 18:50:03 +0000 (18:50 +0000)]
Cope with find_seg_by_le() failure in check_lv_segments().
Alasdair Kergon [Tue, 10 Jul 2007 18:20:00 +0000 (18:20 +0000)]
tidy
Alasdair Kergon [Tue, 10 Jul 2007 18:18:33 +0000 (18:18 +0000)]
Fix pv_mda_count to cope with missing PV.
[vgcreate vg1 pv1 pv2; pvremove -ff pv1; pvs -P -o+pv_mda_count =>segfault]
Alasdair Kergon [Tue, 10 Jul 2007 17:51:26 +0000 (17:51 +0000)]
Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
Alasdair Kergon [Mon, 9 Jul 2007 15:40:43 +0000 (15:40 +0000)]
Add vg_mda_count and pv_mda_count columns to reports.
Alasdair Kergon [Sun, 8 Jul 2007 22:51:20 +0000 (22:51 +0000)]
Fix dumpconfig to use log_print instead of stdout directly.
Dave Wysochanski [Tue, 3 Jul 2007 13:10:14 +0000 (13:10 +0000)]
Fix WHATS_NEW for last checkin until further patches for LVM library are ready.
Dave Wysochanski [Mon, 2 Jul 2007 21:48:30 +0000 (21:48 +0000)]
Convert _add_pv_to_vg to usable LVM library function.
Milan Broz [Mon, 2 Jul 2007 20:18:38 +0000 (20:18 +0000)]
Add kernel and device-mapper targets versions report to lvmdump.
Dave Wysochanski [Mon, 2 Jul 2007 11:17:21 +0000 (11:17 +0000)]
Don't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh@pld-linux.org>
Milan Broz [Thu, 28 Jun 2007 17:59:34 +0000 (17:59 +0000)]
Fix vgsplit if splitting all PVs from VG.
Petr Rockai [Thu, 28 Jun 2007 17:33:44 +0000 (17:33 +0000)]
Make warnings go to stderr. Change log_warn to that effect, log_print
continues to send messages to stdout.
Petr Rockai [Thu, 28 Jun 2007 17:27:02 +0000 (17:27 +0000)]
Make warnings go to stderr. Adds log_warn macro for that purpose,
log_print continues to print to stdout.
Bryn M. Reeves [Mon, 25 Jun 2007 13:19:37 +0000 (13:19 +0000)]
Fix lvmdiskscan volume reporting when run in the lvm shell
Patrick Caulfield [Mon, 25 Jun 2007 09:02:37 +0000 (09:02 +0000)]
Use cpg_local_get() rather then Clm to get the local nodeid.
Alasdair Kergon [Tue, 19 Jun 2007 16:50:38 +0000 (16:50 +0000)]
revert accidental change
Alasdair Kergon [Tue, 19 Jun 2007 15:47:20 +0000 (15:47 +0000)]
Fix dmsetup -o devno string termination. (1.02.20)
Milan Broz [Tue, 19 Jun 2007 10:51:51 +0000 (10:51 +0000)]
Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23)
Dave Wysochanski [Tue, 19 Jun 2007 04:36:12 +0000 (04:36 +0000)]
Convert vg->status checks to use vg_check_status function.\nRename status_flags to status in vg_check_status.
Dave Wysochanski [Tue, 19 Jun 2007 04:23:32 +0000 (04:23 +0000)]
Add vg_status function and clean up vg->status in tools directory
Dave Wysochanski [Tue, 19 Jun 2007 00:33:43 +0000 (00:33 +0000)]
Make vg_extend() format_instance * parameter internal to vg_extend()
Alasdair Kergon [Mon, 18 Jun 2007 14:14:33 +0000 (14:14 +0000)]
Add --ignoremonitoring to disable all dmeventd interaction.
Dave Wysochanski [Fri, 15 Jun 2007 22:16:55 +0000 (22:16 +0000)]
Remove get_ prefix from get_pv_* functions
Alasdair Kergon [Fri, 15 Jun 2007 20:49:30 +0000 (20:49 +0000)]
post-release
Alasdair Kergon [Fri, 15 Jun 2007 20:46:04 +0000 (20:46 +0000)]
pre-release
Alasdair Kergon [Fri, 15 Jun 2007 19:05:02 +0000 (19:05 +0000)]
pre-release
Alasdair Kergon [Fri, 15 Jun 2007 18:20:28 +0000 (18:20 +0000)]
Fix default dmsetup report buffering and add --unbuffered.
Add tree-based and dependency fields to dmsetup reports.
Dave Wysochanski [Fri, 15 Jun 2007 16:05:57 +0000 (16:05 +0000)]
Update vgcfgrestore man pg
Petr Rockai [Fri, 15 Jun 2007 10:11:14 +0000 (10:11 +0000)]
Allow keyboard interrupts in yes_no_prompt(). Add code to toollib.c
loops and to pvcreate.c, lvchange.c and lvresize.c to handle
interrupted prompts.
Dave Wysochanski [Thu, 14 Jun 2007 15:51:36 +0000 (15:51 +0000)]
Fix inverted logic on last checkin for pvremove
Dave Wysochanski [Thu, 14 Jun 2007 15:48:05 +0000 (15:48 +0000)]
convert pv->vg_name[0] to \!is_orphan(pv)
Dave Wysochanski [Thu, 14 Jun 2007 15:25:36 +0000 (15:25 +0000)]
Convert pv->vg_name to get_pv_vg_name
Patrick Caulfield [Thu, 14 Jun 2007 10:17:12 +0000 (10:17 +0000)]
Remove system-lv.[ch]
Patrick Caulfield [Thu, 14 Jun 2007 10:16:35 +0000 (10:16 +0000)]
Remove system LV code from clvmd. It's never been used and never should be
used! It's removal tidies a number of code paths inside clvmd.
Dave Wysochanski [Wed, 13 Jun 2007 23:57:15 +0000 (23:57 +0000)]
Update WHATS_NEW for get_pv* conversions
Dave Wysochanski [Wed, 13 Jun 2007 23:53:38 +0000 (23:53 +0000)]
Convert pv->vg_name to get_pv_vg_name
Dave Wysochanski [Wed, 13 Jun 2007 23:33:45 +0000 (23:33 +0000)]
Convert pv->status to get_pv_status
Dave Wysochanski [Wed, 13 Jun 2007 23:29:33 +0000 (23:29 +0000)]
Convert pv->dev to get_pv_dev
Dave Wysochanski [Wed, 13 Jun 2007 23:02:51 +0000 (23:02 +0000)]
Convert pv->size to get_pv_size
Dave Wysochanski [Wed, 13 Jun 2007 22:58:32 +0000 (22:58 +0000)]
Convert existing_pv dereferences to get_pv_*
Dave Wysochanski [Wed, 13 Jun 2007 22:30:26 +0000 (22:30 +0000)]
Convert pv->pe_size to get_pv_pe_size
Dave Wysochanski [Wed, 13 Jun 2007 22:16:27 +0000 (22:16 +0000)]
Convert pv->pe_start to get_pv_pe_start
Dave Wysochanski [Wed, 13 Jun 2007 22:11:29 +0000 (22:11 +0000)]
Convert pv->pe_count to get_pv_pe_count
Dave Wysochanski [Wed, 13 Jun 2007 22:04:45 +0000 (22:04 +0000)]
Convert pv->pe_alloc_count to get_pv_pe_alloc_count
Dave Wysochanski [Wed, 13 Jun 2007 21:14:07 +0000 (21:14 +0000)]
Remove casts in pv_create and find_pv_in_vg_by_uuid
Dave Wysochanski [Wed, 13 Jun 2007 20:55:56 +0000 (20:55 +0000)]
Convert pv_handle_t to pv_t * and tidy up whitespace
Dave Wysochanski [Wed, 13 Jun 2007 19:52:48 +0000 (19:52 +0000)]
Add typedef pv_handle_t
Dave Wysochanski [Wed, 13 Jun 2007 15:11:19 +0000 (15:11 +0000)]
Fix a couple benign warnings by adding variable initializations.
Dave Wysochanski [Tue, 12 Jun 2007 22:41:27 +0000 (22:41 +0000)]
Convert find_pv_in_vg_by_uuid and pv_create to use PV handles
Dave Wysochanski [Tue, 12 Jun 2007 21:39:49 +0000 (21:39 +0000)]
Change PV_HANDLE_DEREF to pv_field and add paren's
Dave Wysochanski [Tue, 12 Jun 2007 21:20:20 +0000 (21:20 +0000)]
Add get_pv_* functions to return PV fields in prep for external LVM library
Dave Wysochanski [Mon, 11 Jun 2007 18:29:30 +0000 (18:29 +0000)]
Add wrappers to functions related to pv commands in preparation for exported LVM lib
Alasdair Kergon [Mon, 11 Jun 2007 13:20:29 +0000 (13:20 +0000)]
Add capability for tree-based fields to dmsetup reports.
Bryn M. Reeves [Fri, 8 Jun 2007 22:38:48 +0000 (22:38 +0000)]
Allow vgcfgrestore to list metadata backup files using -f
Dave Wysochanski [Wed, 6 Jun 2007 19:40:28 +0000 (19:40 +0000)]
Add vg_check_status to consolidate vg status flags checks and error messages.
Dave Wysochanski [Tue, 5 Jun 2007 18:23:17 +0000 (18:23 +0000)]
make code consistent with pvresize code - good candidate for common code cleanup
Dave Wysochanski [Thu, 31 May 2007 20:26:11 +0000 (20:26 +0000)]
Fix pvdisplay --maps to not display segment header for orphan PVs.
Dave Wysochanski [Thu, 31 May 2007 20:10:25 +0000 (20:10 +0000)]
Fix redundant segment display when PV is given to 'pvdisplay --maps' cmdline.
Dave Wysochanski [Thu, 31 May 2007 15:18:44 +0000 (15:18 +0000)]
Remove 'Type' from pvdisplay --maps as there is no 'Type' of a physical segment, only logical segments
This page took 0.069942 seconds and 5 git commands to generate.