summaryrefslogtreecommitdiffstats
path: root/tools/lvremove.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-1/+1
|
* Disallow the direct removal of a merging snapshot.Mike Snitzer2010-04-231-1/+1
| | | | | | | | | Allow lv_remove_with_dependencies() to know the top-level LV that was requested to be removed (otherwise it recurses and we lose context). A merging snapshot cannot be removed directly but the associated origin can be. Disallow removal of a merging snapshot unless the associated origin is also being removed.
* Add lots of missing stack debug messages to tools.Alasdair Kergon2009-09-141-1/+3
| | | | | Make readonly locking available as locking type 4. Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
* Rework the toollib interface (process_each_*) on top of new vg_read.Dave Wysochanski2009-07-011-1/+1
| | | | | | | | | Sun May 3 12:32:30 CEST 2009 Petr Rockai <me@mornfall.net> * Rework the toollib interface (process_each_*) on top of new vg_read. Rebased 6/26/09 by Dave W. - Add skipping message to process_each_lv - Remove inconsistent_t.
* Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin).Alasdair Kergon2009-04-251-0/+8
| | | | | | | | Add lvs origin_size field. Fix linux configure --enable-debug to exclude -O2. Still a few rough edges, but hopefully usable now: lvcreate -s vg1 -L 100M --virtualoriginsize 1T
* Fix "lvremove -f vgname" when vgname contains snapshots.Dave Wysochanski2008-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | Prior to this patch, "lvremove -f vgname" would fail if vgname contained one or more snapshot LVs. Now this passes, but has a side-effect. If you issue "lvremove vgname" where vgname contains one or more snaps, you will get an extra "y/n" prompt to remove the same snapshot. Example: $ lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert lvsnap vgtest swi-a- 16.00M lvtest 0.05 lvtest vgtest owi-a- 64.00M $ lvremove vgtest Do you really want to remove active logical volume "lvsnap"? [y/n]: n Logical volume "lvsnap" not removed Do you really want to remove active logical volume "lvsnap"? [y/n]: n Logical volume "lvsnap" not removed Command failed with status code 5. Fixing this will most likely require modification of the iterator function, process_each_lvs_in_vg() to iterate over snaps in some cases (e.g. lvs, vgdisplay -v) but not in others (lvremove).
* Improve the way VGs with PVs missing are handled so manual interventionAlasdair Kergon2008-09-191-0/+2
| | | | is required in fewer circumstances. (mornfall)
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Move lv_remove_single() into library (lv_manip.c, metadata-exported.h).Dave Wysochanski2007-08-201-114/+2
| | | | | | Move yes_no_prompt() into library (display.c, display.h). Fixup includes as a result of movement of prior two functions. Fixup force_t enum to be more descriptive.
* Prepare to move guts of lvremove into lvm libraryDave Wysochanski2007-08-201-18/+28
|
* Convert vg->status checks to use vg_check_status function.\nRename ↵Dave Wysochanski2007-06-191-4/+2
| | | | status_flags to status in vg_check_status.
* Don't allow a node to remove an LV that's exclusively active on anther node.Patrick Caulfield2006-10-231-0/+10
|
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-1/+1
| | | | | | | 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.
* Introduce origin_from_cow()Alasdair Kergon2006-04-061-1/+1
|
* Replacement activation code. [Don't use this yet!]Alasdair Kergon2005-11-081-0/+11
|
* Attempt to load missing targets using modprobe.Alasdair Kergon2005-10-171-1/+1
| | | | Simplify dev_manager_info().
* Change LV locking macros to take lv instead of lvid.Alasdair Kergon2005-08-151-1/+1
|
* Always insert an intermediate layer for mirrors.Alasdair Kergon2005-06-031-0/+6
| | | | | | Suppress hidden LVs from reports unless --all is given. Use square brackets for hidden LVs in reports. Centralise restrictions on LV names.
* Basic support for mirrors.Alasdair Kergon2005-06-011-0/+6
|
* lv_reduce tidying.Alasdair Kergon2005-05-091-2/+2
| | | | | Remove some unnecessary parameters. Introduce seg_is macros.
* Only ask libdevmapper for open_count when we need it.Alasdair Kergon2005-01-121-1/+1
|
* Revise internal locking semantics.Alasdair Kergon2004-05-051-1/+1
|
* Update copyright notices.Alasdair Kergon2004-03-301-13/+8
|
* More consistent error code usage.Alasdair Kergon2003-10-211-2/+2
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-041-1/+4
|
* Don't process locked LVsAlasdair Kergon2003-05-061-0/+7
|
* configure --disable-devmapper if you don't have libdevmapperAlasdair Kergon2003-01-081-1/+1
|
* Some new features.Alasdair Kergon2002-11-181-17/+14
|
* 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.
* Merge with text format branch.Alasdair Kergon2002-04-241-18/+16
| | | | | | | | | | | | | | | | | | | 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.
* Missing VG lock when iterating through all LVs.Alasdair Kergon2002-04-151-1/+1
|
* lv_info replaces lv_active etc.Alasdair Kergon2002-03-111-5/+8
|
* o Use new LCK_HOLD flag to indicate whether lock should be held on returnAlasdair Kergon2002-03-051-12/+8
| | | | | | | | | 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.)
* o Lock mechanism for LV activationAlasdair Kergon2002-02-271-2/+9
| | | | | | 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?
* Removed wrong 'lv->vg' argument from lv_is_cow() call. Is used in lv_is_cow ↵Heinz Mauelshagen2002-02-211-1/+1
| | | | internally.
* o misc little fixes.Joe Thornber2002-02-211-3/+9
|
* Remove VG arg from lv_is_cow() and lv_is_origin() - use lv->vg instead.Alasdair Kergon2002-02-201-1/+1
|
* o First pass at format1 snapshot support.Joe Thornber2002-02-131-1/+1
|
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-3/+5
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-6/+6
| | | | link some globals that the tools need into that structure.
* quotes around names in outputHeinz Mauelshagen2002-01-301-9/+9
|
* o Basic support for exporting (but importing not completed yet).Alasdair Kergon2002-01-291-0/+5
| | | | | o When volume group does not have write flag set, prevent changes to it. o Preparation for partial activation (not completed yet).
* Reviewed interaction with lib/activate now that the interface has settled down.Alasdair Kergon2002-01-221-11/+7
|
* o ACTIVE is no longer a status flag - lv_active() used to check if an LVAlasdair Kergon2002-01-101-8/+0
| | | | | | | | | | is active in the device-mapper. o Many operations can be carried out regardless of whether the VG is active or not. o vgscan does not activate anything - use vgchange. o Change lvrename to support renaming of active LVs. o Remove '//' appearing in some pathnames. o Dummy lv_check_segments() for compilation.
* Add archiving.Alasdair Kergon2002-01-091-0/+3
|
* o sync tool changes for backup stuff.Joe Thornber2002-01-071-1/+1
|
* o Add autobackup support to tools (follows most vg_write calls).Alasdair Kergon2001-12-311-4/+1
| | | | | | o Skip autobackup when in test mode. o Set test mode from config file. o Create system/backup dirs if not present (unless LVM_SYSTEM_DIR holds "").
* Add -t or --test arg to all tools that update metadata to avoidAlasdair Kergon2001-11-281-2/+2
| | | | committing metadata changes or (de)activating.
* o activation & active status testsAlasdair Kergon2001-11-211-6/+10
| | | | | o lvdisplay fields from kernel o update lv->size on resize