summaryrefslogtreecommitdiffstats
path: root/tools/lvresize.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Move metadata backup call after vg_commit.Milan Broz2009-04-211-2/+5
| | | | | | | | | | | | The backup() call store metadata from memory. But in cluster backup() call performs remote nodes metadata backup and it reads data from disk. For metadata backup consistency, patch moves all backup() calls after vg_commit. (Moreover, some tools already do that this way.)
* Properly release VG memory pool in all CLI tools.Milan Broz2009-04-101-1/+1
|
* .Alasdair Kergon2009-02-281-1/+1
|
* Attempt cleanup in child before execing new binary in exec_cmd()Alasdair Kergon2009-02-281-3/+3
|
* .Alasdair Kergon2009-02-271-1/+1
|
* fsadm cleanups & release prepAlasdair Kergon2009-02-271-61/+66
|
* Fixed bug where lvresize option -t was not properly passed to fsadm.Zdenek Kabelac2009-02-241-57/+65
| | | | | | | 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.
* Fix fsadm lvresize for filesystem block sizes != 1024.Dave Wysochanski2009-01-151-2/+2
| | | | Fixes rhbz 480022.
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-5/+5
|
* Prevent resizing an LV while lvconvert is using it.Alasdair Kergon2008-09-181-0/+5
|
* fixing fsadm usage with older blockdev,blkid,readline toolsZdenek Kabelac2008-04-291-0/+5
| | | | fixing lvresize extension code path where size was not set for fsadm
* more pre-release cleanupAlasdair Kergon2008-04-101-4/+3
|
* Fix lvresize to dump stack if vg_lock_and_read() fails.Dave Wysochanski2008-04-021-1/+3
| | | | | | Necessary because vg_lock_and_read() may fail silently if the vg_check_status() call fails. Also add lvresize tests.
* Fix redundant lvresize message if vg doesn't exist.Dave Wysochanski2008-04-011-3/+1
| | | | | | | | | | | BEFORE: tools/lvm lvresize -l +4 vg22/lv1linear Volume group "vg22" not found Volume group vg22 doesn't exist AFTER: tools/lvm lvresize -l +4 vg22/lv1linear Volume group "vg22" not found
* Fix lvresize to support /dev/mapper prefix in the lvnameZdenek Kabelac2008-02-061-3/+12
| | | | | | Fix unfilled paramater passed to fsadm from lvresize Update fsadm to call lvresize if the partition size differs (with option -l) Fix fsadm to support vg/lv name (like the rest of lv-tools)
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Use stack return macros throughout.Alasdair Kergon2008-01-301-12/+6
|
* stacked mirror support (incomplete)Alasdair Kergon2007-12-201-2/+2
|
* Convert some vg_reads into vg_lock_and_readsAlasdair Kergon2007-11-151-14/+8
|
* Accept sizes with --readahead argument.Alasdair Kergon2007-11-141-6/+5
| | | | Store size arguments as sectors internally.
* readahead activation code (but no dm support yet)Alasdair Kergon2007-11-121-3/+3
|
* Fix compile warnings / minor errors introduced recently.Dave Wysochanski2007-11-121-1/+1
|
* Fix orphan-related locking in pvdisplay and pvs.Alasdair Kergon2007-11-021-0/+6
| | | | | | | | Fix missing VG unlocks in some pvchange error paths. Add some missing validation of VG names. Rename validate_vg_name() to validate_new_vg_name(). Change orphan lock to VG_ORPHANS. Change format1 to use ORPHAN as orphan VG name.
* Some const fixups for previous checkinsDave Wysochanski2007-09-241-6/+7
|
* Add %PVS extents option to lvresize, lvextend, and lvcreate.Dave Wysochanski2007-09-201-6/+25
|
* Fix last checkinDave Wysochanski2007-09-061-2/+1
|
* Fixup _lvresize error return codes and modularize functionDave Wysochanski2007-09-061-94/+129
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Make warnings go to stderr. Change log_warn to that effect, log_printPetr Rockai2007-06-281-7/+7
| | | | continues to send messages to stdout.
* Allow keyboard interrupts in yes_no_prompt(). Add code to toollib.cPetr Rockai2007-06-151-0/+2
| | | | | loops and to pvcreate.c, lvchange.c and lvresize.c to handle interrupted prompts.
* Add vg_check_status to consolidate vg status flags checks and error messages.Dave Wysochanski2007-06-061-14/+1
|
* Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.Alasdair Kergon2006-09-261-0/+17
| | | | | | e.g. lvcreate -l 100%FREE to create an LV using all available space. lvextend -l 50%LV to increase an LV by 50% of its existing size. lvcreate -l 20%VG to create an LV using 20% of the total VG size.
* When using local file locking, skip clustered VGs.Alasdair Kergon2006-09-021-0/+6
| | | | Add fallback_to_clustered_locking and fallback_to_local_locking parameters.
* Move lvm_snprintf into libdevmapper.Alasdair Kergon2006-08-211-2/+2
|
* Fix lvcreate corelog validation.Alasdair Kergon2006-05-161-1/+1
| | | | | | | | | Add --config for overriding most config file settings from cmdline. Quote arguments when printing command line. Remove linefeed from 'initialising logging' message. Add 'Completed' debug message. Don't attempt library exit after reloading config files. Always compile with libdevmapper, even if device-mapper is disabled.
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-19/+12
| | | | | | | Fix some memory leaks in error paths found by coverity. Use C99 struct initialisers. Move DEFS into configure.h. Clean-ups to remove miscellaneous compiler warnings.
* Improve stripe size validation.Alasdair Kergon2006-04-291-7/+35
| | | | Increase maximum stripe size limit to physical extent size for lvm2 metadata.
* Check for libsepol.Alasdair Kergon2006-04-191-3/+3
| | | | | | Add some cflow & scope support. Separate out DEFS from CFLAGS. Remove inlines and use unique function names.
* Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.Alasdair Kergon2006-04-121-1/+1
| | | | Add vgid to struct physical_volume and pass with vg_name to some functions.
* Introduce origin_from_cow()Alasdair Kergon2006-04-061-3/+2
|
* Allow signed mirrors arguments.Alasdair Kergon2005-11-281-0/+4
| | | | Move create_mirror_log() into toollib.
* Attempt to load missing targets using modprobe.Alasdair Kergon2005-10-171-3/+3
| | | | Simplify dev_manager_info().
* Change LV locking macros to take lv instead of lvid.Alasdair Kergon2005-08-151-6/+6
|
* prevent active mirror resize for nowAlasdair Kergon2005-06-031-0/+5
|
* Allow mirror images to be resized.Alasdair Kergon2005-06-031-4/+44
|
* lv_reduce tidying.Alasdair Kergon2005-05-091-7/+7
| | | | | Remove some unnecessary parameters. Introduce seg_is macros.
* Internal snapshot code restructuring.Alasdair Kergon2005-04-071-3/+3
|
* Allow offline extension of snapshot volumes.Alasdair Kergon2005-04-071-5/+17
| | | | NB Requires kernel patch that is not upstream.
* Only ask libdevmapper for open_count when we need it.Alasdair Kergon2005-01-121-1/+1
|
* Prevent snapshot origin resizing.Alasdair Kergon2004-11-181-0/+5
|