1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/lib
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
..
activate Forgotten '%s' in one of _mk_link warning messages. 2009-08-05 09:12:44 +00:00
cache Enforce an alphabetical lock ordering for vgname locks. 2009-09-02 21:34:11 +00:00
commands Add activation/udev_sync to lvm.conf. 2009-08-04 15:36:13 +00:00
config Implement write lock prioritisation for file locking and make it default. 2009-09-02 14:47:39 +00:00
datastruct Update error return and comments for lvm_list_vg_names/uuids. 2009-07-27 11:00:17 +00:00
device Fix pvcreate on a partition (regressed in 2.02.51). 2009-08-19 15:34:33 +00:00
display Update display.c to use vg_free(vg) instead of duplicating the calculation. 2009-07-27 10:18:31 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Fix pvcreate on a partition (regressed in 2.02.51). 2009-08-19 15:34:33 +00:00
format1 Add --dataalignmentoffset to pvcreate to shift start of aligned data area 2009-07-30 17:45:28 +00:00
format_pool Add --dataalignmentoffset to pvcreate to shift start of aligned data area 2009-07-30 17:45:28 +00:00
format_text Add devices/data_alignment_offset_detection to lvm.conf. 2009-08-01 17:07:36 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Enforce an alphabetical lock ordering for vgname locks. 2009-09-02 21:34:11 +00:00
log Fix so only log_error and log_fatal set EUNCLASSIFIED. 2009-07-16 13:13:33 +00:00
metadata Split vg_remove_single into 2 functions - the second part commits to disk. 2009-09-02 21:39:29 +00:00
mirror mirror table generating code: Properly handle 'block_on_errors' and 'cluster' features 2009-08-13 19:36:04 +00:00
misc change clogd to cmirrord 2009-08-28 20:51:40 +00:00
mm fix setpriority int error 2008-05-28 23:12:45 +00:00
report Refactor a few report field calculations into separate functions. 2009-07-26 12:41:09 +00:00
snapshot Fix snapshot segment import to not use duplicate segments & replace. 2009-05-13 21:21:58 +00:00
striped Fix confusing metadata syntax error messages. 2009-07-09 11:29:00 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in Build shared parts with 'make' command (mpatocka) 2009-06-03 11:31:06 +00:00