Dave Wysochanski
2a4819f3c8
Change pv_read_path to pv_by_path
2007-07-12 15:38:53 +00:00
Dave Wysochanski
7121866b13
Turn _add_pv_to_vg() into external library function add_pv_to_vg()
2007-07-12 05:04:42 +00:00
Dave Wysochanski
d6e05ad9e2
Refactor vg_extend error path.
2007-07-12 04:12:04 +00:00
Dave Wysochanski
993e30a7de
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
Alasdair Kergon
1ea4b2ea91
Cope with find_seg_by_le() failure in check_lv_segments().
2007-07-10 18:50:03 +00:00
Alasdair Kergon
bc1d6e1f90
tidy
2007-07-10 18:20:00 +00:00
Alasdair Kergon
9ec6e68d0c
Fix pv_mda_count to cope with missing PV.
...
[vgcreate vg1 pv1 pv2; pvremove -ff pv1; pvs -P -o+pv_mda_count =>segfault]
2007-07-10 18:18:33 +00:00
Alasdair Kergon
6fb3e1aa15
Add vg_mda_count and pv_mda_count columns to reports.
2007-07-09 15:40:43 +00:00
Alasdair Kergon
f1f92eb2e2
Fix dumpconfig to use log_print instead of stdout directly.
2007-07-08 22:51:20 +00:00
Dave Wysochanski
a6d9fc58eb
Convert _add_pv_to_vg to usable LVM library function.
2007-07-02 21:48:30 +00:00
Dave Wysochanski
5f951faf32
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
Petr Rockai
764858fa12
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
Dave Wysochanski
d2cb05988d
Convert vg->status checks to use vg_check_status function.\nRename status_flags to status in vg_check_status.
2007-06-19 04:36:12 +00:00
Dave Wysochanski
6e056767b4
Add vg_status function and clean up vg->status in tools directory
2007-06-19 04:23:32 +00:00
Dave Wysochanski
a10afb1b98
Make vg_extend() format_instance * parameter internal to vg_extend()
2007-06-19 00:33:43 +00:00
Dave Wysochanski
c75d4af4bc
Remove get_ prefix from get_pv_* functions
2007-06-15 22:16:55 +00:00
Alasdair Kergon
9daac5c178
pre-release
2007-06-15 20:46:04 +00:00
Petr Rockai
10e4254e7d
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
Dave Wysochanski
8ac718a3a2
convert pv->vg_name[0] to \!is_orphan(pv)
2007-06-14 15:48:05 +00:00
Dave Wysochanski
4b5fad4e48
Remove casts in pv_create and find_pv_in_vg_by_uuid
2007-06-13 21:14:07 +00:00
Dave Wysochanski
7a13e71c80
Convert pv_handle_t to pv_t * and tidy up whitespace
2007-06-13 20:55:56 +00:00
Dave Wysochanski
3c10943900
Add typedef pv_handle_t
2007-06-13 19:52:48 +00:00
Dave Wysochanski
696b8811c2
Fix a couple benign warnings by adding variable initializations.
2007-06-13 15:11:19 +00:00
Dave Wysochanski
9fd2c8602a
Convert find_pv_in_vg_by_uuid and pv_create to use PV handles
2007-06-12 22:41:27 +00:00
Dave Wysochanski
a3636a5af4
Change PV_HANDLE_DEREF to pv_field and add paren's
2007-06-12 21:39:49 +00:00
Dave Wysochanski
f2e5f07718
Add get_pv_* functions to return PV fields in prep for external LVM library
2007-06-12 21:20:20 +00:00
Dave Wysochanski
16c6fdde60
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
c394631e4c
Allow vgcfgrestore to list metadata backup files using -f
2007-06-08 22:38:48 +00:00
Dave Wysochanski
8b370b7cc1
Add vg_check_status to consolidate vg status flags checks and error messages.
2007-06-06 19:40:28 +00:00
Dave Wysochanski
6768f64e2f
Fix pvdisplay --maps to not display segment header for orphan PVs.
2007-05-31 20:26:11 +00:00
Dave Wysochanski
f1813b1cc6
Fix redundant segment display when PV is given to 'pvdisplay --maps' cmdline.
2007-05-31 20:10:25 +00:00
Dave Wysochanski
fb665bd0dd
Remove 'Type' from pvdisplay --maps as there is no 'Type' of a physical segment, only logical segments
2007-05-31 15:18:44 +00:00
Dave Wysochanski
65dda2ef3d
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
b162b992af
Add --maps to pvdisplay.
...
Modified original patch from David Robinson <zxvdr.au@gmail.com>.
2007-05-30 20:43:09 +00:00
Milan Broz
1ded1fc509
Remove symlinks if parent volume is deactivated.
2007-05-15 14:42:01 +00:00
Milan Broz
5ead2706b4
Fix a segfault if a device has no target (no table)
2007-05-14 11:27:34 +00:00
Alasdair Kergon
fb94fb980a
Fix get_config_uint64() to read a 64-bit value not a 32-bit one.
2007-04-27 20:41:50 +00:00
Alasdair Kergon
b10cc18f53
Add -Wformat-security and change one fprintf() to fputs().
2007-04-27 19:26:57 +00:00
Alasdair Kergon
d04e972d65
Move regex functions into libdevmapper.
2007-04-27 18:52:05 +00:00
Alasdair Kergon
2294fdb496
Change some #include lines to search only standard system directories.
2007-04-27 17:46:16 +00:00
Alasdair Kergon
b6194edd67
add preferred_names to man page.
2007-04-26 17:14:57 +00:00
Alasdair Kergon
dcdbbb3ecb
Add devices/preferred_names config regex list for displayed device names.
...
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
2007-04-26 16:44:59 +00:00
Dave Wysochanski
7ef99ee4e6
Fix warnings on x86_64 involving ptrdiff_t:
...
config/config.c:493: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
Modified original patch from Jim Meyering <jim@meyering.net>
2007-04-26 16:40:46 +00:00
Dave Wysochanski
1ac1418286
Update pvck to include text metadata area and record detection.
...
--
2007-04-25 21:10:55 +00:00
Dave Wysochanski
8fc854f38e
Add support functions for analysis of config sections,
...
and hence, on-disk LVM2 metadata.
--
2007-04-25 20:38:39 +00:00
Dave Wysochanski
1c2360b335
Update pvck to read labels on disk, with flexible --labelsector
...
parameter.
--
2007-04-25 20:03:16 +00:00
Dave Wysochanski
dd4477406b
Add count_chars and count_chars_len functions, two
...
generic string utility functions.
--
2007-04-25 18:24:19 +00:00
Dave Wysochanski
86b21eaf83
Add 'scan_sector' parameter to label_read and _find_labeller to add
...
flexibility in searching for disk labels.
2007-04-23 18:21:01 +00:00
Dave Wysochanski
ecc001ed08
Add dev_read_circular, read 2 regions on same device.
2007-04-19 02:10:42 +00:00
Alasdair Kergon
ca5e423331
Update lists of attribute characters in man pages.
...
Change cling alloc policy attribute character from 'C' to l'.
2007-03-27 13:35:33 +00:00