1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/tools
Dave Wysochanski d50795ed09 Split vg_remove_single into 2 functions - the second part commits to disk.
Split vg_remove_single into vg_remove_check (mandatory checks before
vgremove) and vg_remove (do actual remove by committing to disk).

In liblvm, we'd like to provide an consistent API that allows multiple
changes in memory, then let lvm_vg_write() control the commit to disk.  In
some cases (for example, lvresize calls fsadm) this may not be possible.
However, since we are using an object model and dividing things into small
operations, the most logical model seems to be the lvm_vg_write model, and
handling the special cases as they arrive.  So as best as possible
we move towards this end.

A possible optimization would be to consolidate vg_remove (committing)
code with vgreduce code.  A second possible optimization is making vgreduce
of the last device equivalent to vgremove.  Today, lvm_vg_reduce fails if
vgreduce is called with the last device, but from an object model perspective
we could view this as equivalent to vgremove and allow it.  My gut feel is
we do not want to do this though.


Author: Dave Wysochanski <dwysocha@redhat.com>
2009-09-02 21:39:29 +00:00
..
.exported_symbols .export.sym generation 2004-03-26 14:51:23 +00:00
args.h Add --noudevsync option for relevant LVM tools. 2009-08-04 15:53:04 +00:00
cmdnames.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
commands.h Add --noudevsync option for relevant LVM tools. 2009-08-04 15:53:04 +00:00
dmsetup.c Fix semaphore includes in dmsetup for udev sync. 2009-08-06 15:56:50 +00:00
dumpconfig.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
formats.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvchange.c Make lvchange --refresh only take a read lock on volume group. 2009-08-13 14:27:32 +00:00
lvconvert.c Make lvconvert honour log mirror options combined with downconversion. 2009-08-02 21:59:21 +00:00
lvcreate.c Move extents_from_size from lvcreate into internal library so we can reuse. 2009-07-26 02:34:09 +00:00
lvdisplay.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
lvextend.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm2cmd-static.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvm2cmd.c Fix mirror log name construction during lvconvert. (2.02.30) 2008-01-31 12:19:36 +00:00
lvm2cmd.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvm2cmdline.h lvm2cmdline.h:31: warning: declaration of `is_static' shadows a global declaration 2008-12-19 18:51:02 +00:00
lvm-static.c Use tools.h in for lvm-static. 2009-01-20 20:37:41 +00:00
lvm.c Create global is_static() to eliminate from the library init function. 2008-12-18 05:27:17 +00:00
lvmchange.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvmcmdlib.c Move tools/version.h to lib/misc/lvm-version.h. 2009-02-22 22:11:58 +00:00
lvmcmdline.c Add activation/udev_sync to lvm.conf. 2009-08-04 15:36:13 +00:00
lvmdiskscan.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvreduce.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvremove.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
lvrename.c Fix vg_read() error paths to properly release upon vg_read_error(). 2009-07-07 01:18:35 +00:00
lvresize.c Fix vg_read() error paths to properly release upon vg_read_error(). 2009-07-07 01:18:35 +00:00
lvscan.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
Makefile.in Reinstate version in liblvm2cmd.so soname. (2.02.44) 2009-05-21 11:11:29 +00:00
polldaemon.c Fix vg_read() error paths to properly release upon vg_read_error(). 2009-07-07 01:18:35 +00:00
polldaemon.h Fix convert polling to ignore LV with different UUID. 2009-06-01 14:43:27 +00:00
pvchange.c Refactor a couple log_error() statements in prep for larger log_error() patch. 2009-07-08 18:15:51 +00:00
pvck.c Clean up numerous compiler warnings that crept in recently. 2007-08-22 14:38:18 +00:00
pvcreate.c Add --dataalignmentoffset to pvcreate to shift start of aligned data area 2009-07-30 17:45:28 +00:00
pvdisplay.c Port process_each_pv to new vg_read. 2009-07-15 05:50:22 +00:00
pvmove.c Refactor a couple log_error() statements in prep for larger log_error() patch. 2009-07-08 18:15:51 +00:00
pvremove.c Try to avoid full rescan if label scan is enough. 2009-02-25 23:29:06 +00:00
pvresize.c Port process_each_pv to new vg_read. 2009-07-15 05:50:22 +00:00
pvscan.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
reporter.c Port process_each_pv to new vg_read. 2009-07-15 05:50:22 +00:00
segtypes.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
stub.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
toollib.c Fix global locking in PV reporting commands (2.02.49). 2009-08-24 11:37:20 +00:00
toollib.h Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
tools.h Fix convert polling to ignore LV with different UUID. 2009-06-01 14:43:27 +00:00
vgcfgbackup.c Fix FAILED_INCONSISTENT case in vg_backup_single - typeo on 'if' condition. 2009-07-15 03:30:04 +00:00
vgcfgrestore.c Fix error paths for vgcfgrestore when locking fails. 2009-08-13 17:16:38 +00:00
vgchange.c Remove lockingfailed(). 2009-07-15 05:49:47 +00:00
vgck.c Fix vgck and vgremove segfault if non-existent vg given. 2009-07-14 19:37:18 +00:00
vgconvert.c Rename internal library function vg_remove to vg_remove_mdas. 2009-09-02 21:39:07 +00:00
vgcreate.c Revert previous patch that moved VG_ORPHAN lock inside vg_extend. 2009-07-24 15:01:43 +00:00
vgdisplay.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
vgexport.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
vgextend.c Fix vgextend error path - if ORPHAN lock fails, unlock and release vg. 2009-08-13 12:03:46 +00:00
vgimport.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
vgmerge.c Change vgmerge behavior to open/lock first vg based on alphabetical ordering. 2009-09-02 21:28:43 +00:00
vgmknodes.c Add "--refresh" functionality to vgchange and vgmknodes. 2008-12-22 09:00:51 +00:00
vgreduce.c Remove redundant validate_name in vgreduce. 2009-07-24 11:13:36 +00:00
vgremove.c Split vg_remove_single into 2 functions - the second part commits to disk. 2009-09-02 21:39:29 +00:00
vgrename.c Update vgrename to take into account vgname lock ordering. 2009-09-02 21:29:40 +00:00
vgscan.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
vgsplit.c Change vgsplit behavior to open/lock first vg based on alphabetical ordering. 2009-09-02 21:27:39 +00:00