]> sourceware.org Git - lvm2.git/log
lvm2.git
17 years agoEliminate uses of strdup+basename. Use last_path_component instead.
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.

17 years agoUse gcc's printf attribute wherever possible.
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.

17 years agoIn _line_append, use "sizeof buf - 1" rather than equivalent "4095"
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:

17 years agoIntroduce is_same_inode macro, now including a comparison of st_dev.
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.

17 years agoDon't leak a file descriptor in _lock_file when flock fails.
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.

17 years agoAdd SUN's LDOM virtual block device to filters
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

17 years agoSplit metadata-external.h out from metadata.h for the tools to use.
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.

17 years agopost-release
Alasdair Kergon [Tue, 17 Jul 2007 20:53:51 +0000 (20:53 +0000)]
post-release

17 years agopre-release
Alasdair Kergon [Tue, 17 Jul 2007 20:45:17 +0000 (20:45 +0000)]
pre-release

17 years agoFix snapshot cow area deactivation if origin is not active. (2.02.13)
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)

17 years agoFix configure libdevmapper.h check when --with-dmdir is used.
Alasdair Kergon [Fri, 13 Jul 2007 17:08:00 +0000 (17:08 +0000)]
Fix configure libdevmapper.h check when --with-dmdir is used.

17 years agopost-release
Alasdair Kergon [Fri, 13 Jul 2007 16:10:24 +0000 (16:10 +0000)]
post-release

17 years agopre-release
Alasdair Kergon [Fri, 13 Jul 2007 16:07:30 +0000 (16:07 +0000)]
pre-release

17 years agoChange pv_read_path to pv_by_path
Dave Wysochanski [Thu, 12 Jul 2007 15:38:53 +0000 (15:38 +0000)]
Change pv_read_path to pv_by_path

17 years agoTurn _add_pv_to_vg() into external library function add_pv_to_vg()
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()

17 years agoRefactor vg_extend error path.
Dave Wysochanski [Thu, 12 Jul 2007 04:12:04 +0000 (04:12 +0000)]
Refactor vg_extend error path.

17 years agoAdd pv_read_path, a proposed external LVM library function to take a device 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

17 years agoTidy bits of clvmd-openais and improve an error report.
Patrick Caulfield [Wed, 11 Jul 2007 12:07:39 +0000 (12:07 +0000)]
Tidy bits of clvmd-openais and improve an error report.

17 years agoCope with find_seg_by_le() failure in check_lv_segments().
Alasdair Kergon [Tue, 10 Jul 2007 18:50:03 +0000 (18:50 +0000)]
Cope with find_seg_by_le() failure in check_lv_segments().

17 years agotidy
Alasdair Kergon [Tue, 10 Jul 2007 18:20:00 +0000 (18:20 +0000)]
tidy

17 years agoFix pv_mda_count to cope with missing PV.
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]

17 years agoCall dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
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.

17 years agoAdd vg_mda_count and pv_mda_count columns to reports.
Alasdair Kergon [Mon, 9 Jul 2007 15:40:43 +0000 (15:40 +0000)]
Add vg_mda_count and pv_mda_count columns to reports.

17 years agoFix dumpconfig to use log_print instead of stdout directly.
Alasdair Kergon [Sun, 8 Jul 2007 22:51:20 +0000 (22:51 +0000)]
Fix dumpconfig to use log_print instead of stdout directly.

17 years agoFix WHATS_NEW for last checkin until further patches for LVM library are ready.
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.

17 years agoConvert _add_pv_to_vg to usable LVM library function.
Dave Wysochanski [Mon, 2 Jul 2007 21:48:30 +0000 (21:48 +0000)]
Convert _add_pv_to_vg to usable LVM library function.

17 years agoAdd kernel and device-mapper targets versions report to lvmdump.
Milan Broz [Mon, 2 Jul 2007 20:18:38 +0000 (20:18 +0000)]
Add kernel and device-mapper targets versions report to lvmdump.

17 years agoDon't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh...
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>

17 years agoFix vgsplit if splitting all PVs from VG.
Milan Broz [Thu, 28 Jun 2007 17:59:34 +0000 (17:59 +0000)]
Fix vgsplit if splitting all PVs from VG.

17 years agoMake warnings go to stderr. Change log_warn to that effect, log_print
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.

17 years agoMake warnings go to stderr. Adds log_warn macro for that purpose,
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.

17 years agoFix lvmdiskscan volume reporting when run in the lvm shell
Bryn M. Reeves [Mon, 25 Jun 2007 13:19:37 +0000 (13:19 +0000)]
Fix lvmdiskscan volume reporting when run in the lvm shell

17 years agoUse cpg_local_get() rather then Clm to get the local nodeid.
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.

17 years agorevert accidental change
Alasdair Kergon [Tue, 19 Jun 2007 16:50:38 +0000 (16:50 +0000)]
revert accidental change

17 years agoFix dmsetup -o devno string termination. (1.02.20)
Alasdair Kergon [Tue, 19 Jun 2007 15:47:20 +0000 (15:47 +0000)]
Fix dmsetup -o devno string termination. (1.02.20)

17 years agoFix missing lvm_shell symbol in lvm2cmd library. (2.02.23)
Milan Broz [Tue, 19 Jun 2007 10:51:51 +0000 (10:51 +0000)]
Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23)

17 years agoConvert vg->status checks to use vg_check_status function.\nRename status_flags to...
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.

17 years agoAdd vg_status function and clean up vg->status in tools directory
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

17 years agoMake vg_extend() format_instance * parameter internal to vg_extend()
Dave Wysochanski [Tue, 19 Jun 2007 00:33:43 +0000 (00:33 +0000)]
Make vg_extend() format_instance * parameter internal to vg_extend()

17 years agoAdd --ignoremonitoring to disable all dmeventd interaction.
Alasdair Kergon [Mon, 18 Jun 2007 14:14:33 +0000 (14:14 +0000)]
Add --ignoremonitoring to disable all dmeventd interaction.

17 years agoRemove get_ prefix from get_pv_* functions
Dave Wysochanski [Fri, 15 Jun 2007 22:16:55 +0000 (22:16 +0000)]
Remove get_ prefix from get_pv_* functions

17 years agopost-release
Alasdair Kergon [Fri, 15 Jun 2007 20:49:30 +0000 (20:49 +0000)]
post-release

17 years agopre-release
Alasdair Kergon [Fri, 15 Jun 2007 20:46:04 +0000 (20:46 +0000)]
pre-release

17 years agopre-release
Alasdair Kergon [Fri, 15 Jun 2007 19:05:02 +0000 (19:05 +0000)]
pre-release

17 years agoFix default dmsetup report buffering and add --unbuffered.
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.

17 years agoUpdate vgcfgrestore man pg
Dave Wysochanski [Fri, 15 Jun 2007 16:05:57 +0000 (16:05 +0000)]
Update vgcfgrestore man pg

17 years agoAllow keyboard interrupts in yes_no_prompt(). Add code to toollib.c
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.

17 years agoFix inverted logic on last checkin for pvremove
Dave Wysochanski [Thu, 14 Jun 2007 15:51:36 +0000 (15:51 +0000)]
Fix inverted logic on last checkin for pvremove

17 years agoconvert pv->vg_name[0] to \!is_orphan(pv)
Dave Wysochanski [Thu, 14 Jun 2007 15:48:05 +0000 (15:48 +0000)]
convert pv->vg_name[0] to \!is_orphan(pv)

17 years agoConvert pv->vg_name to get_pv_vg_name
Dave Wysochanski [Thu, 14 Jun 2007 15:25:36 +0000 (15:25 +0000)]
Convert pv->vg_name to get_pv_vg_name

17 years agoRemove system-lv.[ch]
Patrick Caulfield [Thu, 14 Jun 2007 10:17:12 +0000 (10:17 +0000)]
Remove system-lv.[ch]

17 years agoRemove system LV code from clvmd. It's never been used and never should be
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.

17 years agoUpdate WHATS_NEW for get_pv* conversions
Dave Wysochanski [Wed, 13 Jun 2007 23:57:15 +0000 (23:57 +0000)]
Update WHATS_NEW for get_pv* conversions

17 years agoConvert pv->vg_name to get_pv_vg_name
Dave Wysochanski [Wed, 13 Jun 2007 23:53:38 +0000 (23:53 +0000)]
Convert pv->vg_name to get_pv_vg_name

17 years agoConvert pv->status to get_pv_status
Dave Wysochanski [Wed, 13 Jun 2007 23:33:45 +0000 (23:33 +0000)]
Convert pv->status to get_pv_status

17 years agoConvert pv->dev to get_pv_dev
Dave Wysochanski [Wed, 13 Jun 2007 23:29:33 +0000 (23:29 +0000)]
Convert pv->dev to get_pv_dev

17 years agoConvert pv->size to get_pv_size
Dave Wysochanski [Wed, 13 Jun 2007 23:02:51 +0000 (23:02 +0000)]
Convert pv->size to get_pv_size

17 years agoConvert existing_pv dereferences to get_pv_*
Dave Wysochanski [Wed, 13 Jun 2007 22:58:32 +0000 (22:58 +0000)]
Convert existing_pv dereferences to get_pv_*

17 years agoConvert pv->pe_size to get_pv_pe_size
Dave Wysochanski [Wed, 13 Jun 2007 22:30:26 +0000 (22:30 +0000)]
Convert pv->pe_size to get_pv_pe_size

17 years agoConvert pv->pe_start to get_pv_pe_start
Dave Wysochanski [Wed, 13 Jun 2007 22:16:27 +0000 (22:16 +0000)]
Convert pv->pe_start to get_pv_pe_start

17 years agoConvert pv->pe_count to get_pv_pe_count
Dave Wysochanski [Wed, 13 Jun 2007 22:11:29 +0000 (22:11 +0000)]
Convert pv->pe_count to get_pv_pe_count

17 years agoConvert pv->pe_alloc_count to get_pv_pe_alloc_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

17 years agoRemove casts in pv_create and find_pv_in_vg_by_uuid
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

17 years agoConvert pv_handle_t to pv_t * and tidy up whitespace
Dave Wysochanski [Wed, 13 Jun 2007 20:55:56 +0000 (20:55 +0000)]
Convert pv_handle_t to pv_t * and tidy up whitespace

17 years agoAdd typedef pv_handle_t
Dave Wysochanski [Wed, 13 Jun 2007 19:52:48 +0000 (19:52 +0000)]
Add typedef pv_handle_t

17 years agoFix a couple benign warnings by adding variable initializations.
Dave Wysochanski [Wed, 13 Jun 2007 15:11:19 +0000 (15:11 +0000)]
Fix a couple benign warnings by adding variable initializations.

17 years agoConvert find_pv_in_vg_by_uuid and pv_create to use PV handles
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

17 years agoChange PV_HANDLE_DEREF to pv_field and add paren's
Dave Wysochanski [Tue, 12 Jun 2007 21:39:49 +0000 (21:39 +0000)]
Change PV_HANDLE_DEREF to pv_field and add paren's

17 years agoAdd get_pv_* functions to return PV fields in prep for external LVM library
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

17 years agoAdd wrappers to functions related to pv commands in preparation for exported LVM lib
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

17 years agoAdd capability for tree-based fields to dmsetup reports.
Alasdair Kergon [Mon, 11 Jun 2007 13:20:29 +0000 (13:20 +0000)]
Add capability for tree-based fields to dmsetup reports.

17 years agoAllow vgcfgrestore to list metadata backup files using -f
Bryn M. Reeves [Fri, 8 Jun 2007 22:38:48 +0000 (22:38 +0000)]
Allow vgcfgrestore to list metadata backup files using -f

17 years agoAdd vg_check_status to consolidate vg status flags checks and error messages.
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.

17 years agomake code consistent with pvresize code - good candidate for common code cleanup
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

17 years agoFix pvdisplay --maps to not display segment header for orphan PVs.
Dave Wysochanski [Thu, 31 May 2007 20:26:11 +0000 (20:26 +0000)]
Fix pvdisplay --maps to not display segment header for orphan PVs.

17 years agoFix redundant segment display when PV is given to 'pvdisplay --maps' cmdline.
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.

17 years agoRemove 'Type' from pvdisplay --maps as there is no 'Type' of a physical segment,...
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

17 years agoSmall fixes to pvdisplay --maps: 1) rename struct pv_segment vars from 'seg' to ...
Dave Wysochanski [Thu, 31 May 2007 14:19:57 +0000 (14:19 +0000)]
Small fixes to pvdisplay --maps: 1) rename struct pv_segment vars from 'seg' to 'pvseg', 2) Change heading

17 years agoAdd --maps to pvdisplay.
Dave Wysochanski [Wed, 30 May 2007 20:43:09 +0000 (20:43 +0000)]
Add --maps to pvdisplay.
Modified original patch from David Robinson <zxvdr.au@gmail.com>.

17 years agoFix vgcfgrestore man pg to show mandatory VG name and remove LVM1 options.
Dave Wysochanski [Tue, 22 May 2007 02:52:57 +0000 (02:52 +0000)]
Fix vgcfgrestore man pg to show mandatory VG name and remove LVM1 options.

17 years agoFix vgrename man page to include UUID and be more consistent with lvrename.
Dave Wysochanski [Tue, 22 May 2007 02:51:33 +0000 (02:51 +0000)]
Fix vgrename man page to include UUID and be more consistent with lvrename.

17 years agoAdd *Experimental* OpenAIS support to clvmd.
Patrick Caulfield [Mon, 21 May 2007 10:52:01 +0000 (10:52 +0000)]
Add *Experimental* OpenAIS support to clvmd.

17 years agoRemove symlinks if parent volume is deactivated.
Milan Broz [Tue, 15 May 2007 14:42:01 +0000 (14:42 +0000)]
Remove symlinks if parent volume is deactivated.

17 years agoFix and clarify vgsplit error messages.
Milan Broz [Tue, 15 May 2007 13:01:41 +0000 (13:01 +0000)]
Fix and clarify vgsplit error messages.

17 years agoFix a segfault if a device has no target (no table)
Milan Broz [Mon, 14 May 2007 11:27:34 +0000 (11:27 +0000)]
Fix a segfault if a device has no target (no table)

17 years agoMisc clvmd cleanups from Jim Meyering
Patrick Caulfield [Wed, 2 May 2007 12:22:40 +0000 (12:22 +0000)]
Misc clvmd cleanups from Jim Meyering

17 years agoAdd some more debuglogs to clvmd startup.
Patrick Caulfield [Wed, 2 May 2007 08:23:36 +0000 (08:23 +0000)]
Add some more debuglogs to clvmd startup.

17 years agopost-release
Alasdair Kergon [Fri, 27 Apr 2007 20:58:45 +0000 (20:58 +0000)]
post-release

17 years agopre-release
Alasdair Kergon [Fri, 27 Apr 2007 20:47:14 +0000 (20:47 +0000)]
pre-release

17 years agoFix get_config_uint64() to read a 64-bit value not a 32-bit one.
Alasdair Kergon [Fri, 27 Apr 2007 20:41:50 +0000 (20:41 +0000)]
Fix get_config_uint64() to read a 64-bit value not a 32-bit one.

17 years agoAdd -Wformat-security and change one fprintf() to fputs().
Alasdair Kergon [Fri, 27 Apr 2007 19:26:57 +0000 (19:26 +0000)]
Add -Wformat-security and change one fprintf() to fputs().

17 years agoStandardise protective include file #defines.
Alasdair Kergon [Fri, 27 Apr 2007 19:07:43 +0000 (19:07 +0000)]
Standardise protective include file #defines.

17 years agoMove regex functions into libdevmapper.
Alasdair Kergon [Fri, 27 Apr 2007 18:52:05 +0000 (18:52 +0000)]
Move regex functions into libdevmapper.

17 years agoAdd regex functions to library.
Alasdair Kergon [Fri, 27 Apr 2007 18:40:23 +0000 (18:40 +0000)]
Add regex functions to library.

17 years agoconfigure.h isn't a system header
Alasdair Kergon [Fri, 27 Apr 2007 18:01:45 +0000 (18:01 +0000)]
configure.h isn't a system header

17 years agoChange some #include lines to search only standard system directories.
Alasdair Kergon [Fri, 27 Apr 2007 17:46:16 +0000 (17:46 +0000)]
Change some #include lines to search only standard system directories.

17 years agoAvoid trailing separator in reports when there are hidden sort fields.
Alasdair Kergon [Fri, 27 Apr 2007 15:22:27 +0000 (15:22 +0000)]
Avoid trailing separator in reports when there are hidden sort fields.

17 years agoFix segfault in 'dmsetup status' without --showkeys against crypt target. [nec]
Alasdair Kergon [Fri, 27 Apr 2007 15:12:26 +0000 (15:12 +0000)]
Fix segfault in 'dmsetup status' without --showkeys against crypt target. [nec]

17 years agoDeal with some more compiler warnings. Hope this doesn't break anything...
Alasdair Kergon [Fri, 27 Apr 2007 14:52:41 +0000 (14:52 +0000)]
Deal with some more compiler warnings.  Hope this doesn't break anything...

17 years agoadd preferred_names to man page.
Alasdair Kergon [Thu, 26 Apr 2007 17:14:57 +0000 (17:14 +0000)]
add preferred_names to man page.

This page took 0.066135 seconds and 5 git commands to generate.