]> sourceware.org Git - lvm2.git/commit
Remove force parameter from vg_remove_single, now the liblvm function.
authorDave Wysochanski <dwysocha@redhat.com>
Fri, 10 Jul 2009 20:07:02 +0000 (20:07 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Fri, 10 Jul 2009 20:07:02 +0000 (20:07 +0000)
commite7d8b8458190819fdab9e2a03e71d1b3548c002b
tree09b5e8ddec49a6b302b736a496ff5c88e2cd304f
parent7a84430e842b169846e29cbc9eba51492c9163ab
Remove force parameter from vg_remove_single, now the liblvm function.

Move check for active LVs outside of library function.  The vgremove
liblvm function function will fail if there are active LVs.  It will
be the application's responsibility to check this condition and remove
the LVs individually before calling vgremove.  Note also that we've
duplicated the EXPORTED_VG check in vgremove_single (tools) and
vg_remove_single (library).  Duplication seemed the only option here
since we don't want to do the automatic removal of LVs (in the tools)
if the vg is exported, and we still need to protect the library call
from removal if the vg is exported.

We still need to deal with the ORPHAN lock but vg_remove_single is now
very close to our liblvm function.

TODO: Refactor lvremove in a similar way.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
lib/metadata/metadata-exported.h
lib/metadata/metadata.c
tools/vgremove.c
This page took 0.039195 seconds and 5 git commands to generate.