Milan Broz
3c11686036
Fix clvmd if compiled with gulm support. (2.02.26)
2007-07-24 15:35:11 +00:00
Dave Wysochanski
7a22df7be3
Trivial fix to lvdisplay man pg to correct volume size units
2007-07-24 10:58:01 +00:00
Dave Wysochanski
891c3d298b
Add vg_lock_and_read() external library function.
2007-07-23 17:27:55 +00:00
Milan Broz
8a0de6c333
Fix loading of persistent cache if cache_dir is used. (2.02.23)
...
Move lstat warning in _compare_paths to verbose output only.
2007-07-23 10:45:49 +00:00
Jim Meyering
6c35e3c84c
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.
2007-07-20 15:48:39 +00:00
Jim Meyering
bbcd24607c
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.
2007-07-20 15:38:19 +00:00
Jim Meyering
e732de541e
In _line_append, use "sizeof buf - 1" rather than equivalent "4095"
...
* lib/config/config.c:
2007-07-20 15:26:39 +00:00
Jim Meyering
c93e6b5f79
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.
2007-07-20 15:22:46 +00:00
Jim Meyering
57015b12e2
Don't leak a file descriptor in _lock_file when flock fails.
...
* lib/locking/file_locking.c (_lock_file): Close fd upon flock failure.
2007-07-20 12:12:52 +00:00
Patrick Caulfield
35b13fdb5e
Add SUN's LDOM virtual block device to filters
...
Thanks to Fabio Massimo Di Nitto
2007-07-19 07:06:47 +00:00
Alasdair Kergon
03eee0e2ed
Split metadata-external.h out from metadata.h for the tools to use.
2007-07-18 15:38:58 +00:00
Alasdair Kergon
f5840016f3
post-release
2007-07-17 20:53:51 +00:00
Alasdair Kergon
6fb02eb2d9
pre-release
2007-07-17 20:45:17 +00:00
Milan Broz
5b7d162947
Fix snapshot cow area deactivation if origin is not active. (2.02.13)
2007-07-17 16:13:12 +00:00
Alasdair Kergon
d1158c75e8
Fix configure libdevmapper.h check when --with-dmdir is used.
2007-07-13 17:08:00 +00:00
Dave Wysochanski
33e5601937
Change pv_read_path to pv_by_path
2007-07-12 15:38:53 +00:00
Dave Wysochanski
0c795e2e18
Turn _add_pv_to_vg() into external library function add_pv_to_vg()
2007-07-12 05:04:42 +00:00
Dave Wysochanski
c254039677
Add pv_read_path, a proposed external LVM library function to take a device path and return a PV handle
2007-07-11 23:33:12 +00:00
Patrick Caulfield
b3ae66ae58
Tidy bits of clvmd-openais and improve an error report.
2007-07-11 12:07:39 +00:00
Alasdair Kergon
3c21da1797
Cope with find_seg_by_le() failure in check_lv_segments().
2007-07-10 18:50:03 +00:00
Alasdair Kergon
fb697f281b
Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
2007-07-10 17:51:26 +00:00
Alasdair Kergon
d27e123310
Add vg_mda_count and pv_mda_count columns to reports.
2007-07-09 15:40:43 +00:00
Alasdair Kergon
68c87619bd
Fix dumpconfig to use log_print instead of stdout directly.
2007-07-08 22:51:20 +00:00
Dave Wysochanski
fba549f8c2
Fix WHATS_NEW for last checkin until further patches for LVM library are ready.
2007-07-03 13:10:14 +00:00
Dave Wysochanski
ea8a12dbc1
Convert _add_pv_to_vg to usable LVM library function.
2007-07-02 21:48:30 +00:00
Milan Broz
32998a5e4f
Add kernel and device-mapper targets versions report to lvmdump.
2007-07-02 20:18:38 +00:00
Dave Wysochanski
13835b5f6c
Don't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh@pld-linux.org>
2007-07-02 11:17:21 +00:00
Milan Broz
b9567c9561
Fix vgsplit if splitting all PVs from VG.
2007-06-28 17:59:34 +00:00
Petr Rockai
e7ddf4168d
Make warnings go to stderr. Change log_warn to that effect, log_print
...
continues to send messages to stdout.
2007-06-28 17:33:44 +00:00
Bryn M. Reeves
933b1e9b8f
Fix lvmdiskscan volume reporting when run in the lvm shell
2007-06-25 13:19:37 +00:00
Patrick Caulfield
8e2f036193
Use cpg_local_get() rather then Clm to get the local nodeid.
2007-06-25 09:02:37 +00:00
Milan Broz
86df68f370
Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23)
2007-06-19 10:51:51 +00:00
Dave Wysochanski
69483a8aaf
Add vg_status function and clean up vg->status in tools directory
2007-06-19 04:23:32 +00:00
Alasdair Kergon
53c774b948
Add --ignoremonitoring to disable all dmeventd interaction.
2007-06-18 14:14:33 +00:00
Alasdair Kergon
6dee7d312a
post-release
2007-06-15 20:49:30 +00:00
Alasdair Kergon
8f1fb4ada0
pre-release
2007-06-15 19:05:02 +00:00
Dave Wysochanski
1471bc871b
Update vgcfgrestore man pg
2007-06-15 16:05:57 +00:00
Petr Rockai
7379c67839
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.
2007-06-15 10:11:14 +00:00
Patrick Caulfield
8ef3cec1f8
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.
2007-06-14 10:16:35 +00:00
Dave Wysochanski
7a6571fe05
Update WHATS_NEW for get_pv* conversions
2007-06-13 23:57:15 +00:00
Dave Wysochanski
f1f4c1ea50
Add typedef pv_handle_t
2007-06-13 19:52:48 +00:00
Dave Wysochanski
7da624db7b
Fix a couple benign warnings by adding variable initializations.
2007-06-13 15:11:19 +00:00
Dave Wysochanski
b496210d9a
Convert find_pv_in_vg_by_uuid and pv_create to use PV handles
2007-06-12 22:41:27 +00:00
Dave Wysochanski
0e2f6120ee
Add get_pv_* functions to return PV fields in prep for external LVM library
2007-06-12 21:20:20 +00:00
Dave Wysochanski
4e5f3e7331
Add wrappers to functions related to pv commands in preparation for exported LVM lib
2007-06-11 18:29:30 +00:00
Bryn M. Reeves
944cac939c
Allow vgcfgrestore to list metadata backup files using -f
2007-06-08 22:38:48 +00:00
Dave Wysochanski
c221b0bc21
Add vg_check_status to consolidate vg status flags checks and error messages.
2007-06-06 19:40:28 +00:00
Dave Wysochanski
5a4ba89aad
Small fixes to pvdisplay --maps: 1) rename struct pv_segment vars from 'seg' to 'pvseg', 2) Change heading
2007-05-31 14:19:57 +00:00
Dave Wysochanski
4baa42be1c
Add --maps to pvdisplay.
...
Modified original patch from David Robinson <zxvdr.au@gmail.com>.
2007-05-30 20:43:09 +00:00
Dave Wysochanski
f224389af3
Fix vgcfgrestore man pg to show mandatory VG name and remove LVM1 options.
2007-05-22 02:52:57 +00:00