summaryrefslogtreecommitdiffstats
path: root/tools/lvrename.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not allow users to change the name of RAID sub-LVs or the name of theJonathan Earl Brassow2011-12-011-0/+15
| | | | RAID LV if it is tracking changes for a split image.
* Replace free_vg with release_vgZdenek Kabelac2011-08-101-2/+2
| | | | | | | | Move the free_vg() to vg.c and replace free_vg with release_vg and make the _free_vg internal. Patch is needed for sharing VG in vginfo cache so the release_vg function name is a better fit here.
* Rename vg_release to free_vg.Alasdair Kergon2010-12-081-2/+2
|
* Add lots of missing stack debug messages to tools.Alasdair Kergon2009-09-141-0/+1
| | | | | Make readonly locking available as locking type 4. Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
* Fix vg_read() error paths to properly release upon vg_read_error().Dave Wysochanski2009-07-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Fix vg_read() error paths to properly release upon vg_read_error(). Note that in the iterator paths (process_each_*()), we release inside the iterator so no individual cleanup is needed. However there are a number of other places we missed the cleanup. Proper cleanup when vg_read_error() is true should be calling vg_release(vg), since there should be no locks held if we get an error (except in certain special cases, which IMO we should work to remove from the code). Unfortunately the testsuite is unable to detect these types of memory leaks. Most of them can be easily seen if you try an operation (e.g. lvcreate) with a volume group that does not exist. Error message looks like this: Volume group "vg2" not found You have a memory leak (not released memory pool): [0x1975eb8] You have a memory leak (not released memory pool): [0x1975eb8] Author: Dave Wysochanski <dwysocha@redhat.com>
* Convert the straight instances of vg_lock_and_read to new vg_read(_for_update).Dave Wysochanski2009-07-011-3/+2
| | | | | | | Sun May 3 11:40:51 CEST 2009 Petr Rockai <me@mornfall.net> * Convert the straight instances of vg_lock_and_read to new vg_read(_for_update). Rebased 6/26/09 by Dave W.
* revert last patch - let's do a release firstAlasdair Kergon2009-06-261-2/+3
|
* Convert the straight instances of vg_lock_and_read to new vg_read(_for_update).Dave Wysochanski2009-06-261-3/+2
| | | | | | | | | Sun May 3 11:40:51 CEST 2009 Petr Rockai <me@mornfall.net> * Convert the straight instances of vg_lock_and_read to new vg_read(_for_update). Author: Petr Rockai <prockai@redhat.com> Committer: Dave Wysochanski <dwysocha@redhat.com>
* Abort if automatic metadata correction fails when reading VG to update it.Alasdair Kergon2009-06-261-1/+1
|
* Pre-release cleanups.Alasdair Kergon2009-05-211-1/+1
|
* Properly release VG memory pool in all CLI tools.Milan Broz2009-04-101-8/+6
|
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Convert some vg_reads into vg_lock_and_readsAlasdair Kergon2007-11-151-2/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Factor out core of lvrename to lv_rename library function.Dave Wysochanski2007-08-031-60/+6
| | | | Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
* Update lvconvert and lvrename to use vg_lock_and_readDave Wysochanski2007-07-231-12/+3
|
* Add vg_check_status to consolidate vg status flags checks and error messages.Dave Wysochanski2007-06-061-14/+1
|
* Support the /dev/mapper prefix on most command lines.Alasdair Kergon2007-03-091-1/+1
|
* Report dmeventd mirror monitoring status.Alasdair Kergon2007-01-121-0/+8
|
* 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.
* Add skip_dev_dir() to process command line VGs.Alasdair Kergon2006-08-251-3/+1
|
* Prevent mirror renames.Alasdair Kergon2006-08-181-0/+8
|
* 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.
* missing vg_revertAlasdair Kergon2005-10-311-0/+1
|
* Use hash, bitset, malloc, pool from libdevmapper.Alasdair Kergon2005-10-161-1/+1
|
* Change LV locking macros to take lv instead of lvid.Alasdair Kergon2005-08-151-3/+3
|
* Always insert an intermediate layer for mirrors.Alasdair Kergon2005-06-031-4/+2
| | | | | | Suppress hidden LVs from reports unless --all is given. Use square brackets for hidden LVs in reports. Centralise restrictions on LV names.
* Revise internal locking semantics.Alasdair Kergon2004-05-051-4/+3
|
* Update copyright notices.Alasdair Kergon2004-03-301-13/+8
|
* More consistent error code usage.Alasdair Kergon2003-10-211-1/+1
|
* Generalise 'invalid chars' error mesg to just say 'invalid'Alasdair Kergon2003-09-151-2/+1
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-041-13/+22
|
* Don't process locked LVsAlasdair Kergon2003-05-061-0/+5
|
* LV name validationAlasdair Kergon2003-02-031-2/+2
|
* o Additional device/filter-level debugging messages + duplicate alias fixAlasdair Kergon2003-01-081-1/+2
| | | | o 32/64-bit size_t fix (pjc)
* Default stripesize 64k & config file setting for it;Alasdair Kergon2002-12-191-3/+3
| | | | | | Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-) (Same exercise required for other archs.) Default compilation has optimisation - or else use ./configure --enable-debug
* Some new features.Alasdair Kergon2002-11-181-6/+11
|
* agk, I recall you saying you had a massive commit pending; if you need meAndres Salomon2002-10-271-0/+3
| | | | | | | | | | | to back this out so you can do that commit, let me know. Also, if there's an issue with the error message that's displayed, just change it in tools.h. This causes a "device-mapper driver/module not loaded?" error message to be displayed for the commands that require dm-mod, if the tools can't get the driver version. It's not done for commands that don't require dm-mod. This should clear up some problems people have had attempting to use lvm2 without rtfm'ing.
* Support alternative lvrename syntax.Alasdair Kergon2002-09-051-8/+22
|
* Merge with text format branch.Alasdair Kergon2002-04-241-7/+6
| | | | | | | | | | | | | | | | | | | Lots of changes/very little testing so far => there'll be bugs! Use 'vgcreate -M text' to create a volume group with its metadata stored in text files. Text format metadata changes should be reasonably atomic, with a (basic) automatic recovery mechanism if the system crashes while a change is in progress. Add a metadata section to lvm.conf to specify multiple directories if you want (recommended) to keep multiple copies of the metadata (eg on different filesystems). e.g. metadata { dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"] } Plenty of refinements still in the pipeline.
* o activate/reactivate mergeAlasdair Kergon2002-03-111-4/+4
| | | | o unlocking macro
* o Use new LCK_HOLD flag to indicate whether lock should be held on returnAlasdair Kergon2002-03-051-7/+4
| | | | | | | | | from lock_vol() - otherwise it now attempts to acquire the lock and then immediately releases it. o Extend the id field in struct logical_volume to hold VG uuid + LV uuid for format1. This unique lvid can be used directly when calling lock_vol(). o Add the VG uuid to vgcache to make VG uuid lookups possible. (Another step towards using them instead of VG names internally.)
* More use of LV locking.Alasdair Kergon2002-03-011-17/+12
|
* o Lock mechanism for LV activationAlasdair Kergon2002-02-271-3/+3
| | | | | | o #defines for common lock flag combinations o Try out hyphens instead of colons in device-mapper names - does this make messages containing filenames easier to read?
* Begin conversion so LV id is passed to activation unit instead ofAlasdair Kergon2002-02-251-3/+3
| | | | struct logical_volume.
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-8/+9
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-7/+7
| | | | link some globals that the tools need into that structure.
* o Support locking with local lock filesAlasdair Kergon2002-02-111-10/+22
| | | | o Disable control-c during updates (except if blocked waiting for a lock)
* quotes around names in outputHeinz Mauelshagen2002-01-301-14/+14
|
* o Basic support for exporting (but importing not completed yet).Alasdair Kergon2002-01-291-0/+10
| | | | | o When volume group does not have write flag set, prevent changes to it. o Preparation for partial activation (not completed yet).