master - pvremove: add warn when removing PV in use
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e717ce555bffc9e8ea2dd981f733e55a2cde26ba Commit: e717ce555bffc9e8ea2dd981f733e55a2cde26ba Parent: 7d8a67714f3f35bef066f4c550b16193d8bc2cd8 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Feb 23 14:10:45 2016 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Feb 23 14:40:30 2016 +0100
pvremove: add warn when removing PV in use
Reshuffle messages during pvremove.
Always print WARNING: when PV is in use so using options --force --force doesn't make this important user notification go away.
Simplify variable 'used' usage (so older gcc doesn't warn about the use of unitilizied variable).
Add some '.' into messages.
--- WHATS_NEW | 1 + lib/metadata/pv_manip.c | 68 ++++++++++++++++++++++------------------------- 2 files changed, 33 insertions(+), 36 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.144 - ===================================== + Always warn user about PV in use even when pvremove uses --force --force. Use uninitilized pool header detection in all cases. Fir read error detection when checking for uninitialized thin-pool header. Fix error path for internal error in lvmetad vg lookup code.
lib/metadata/pv_manip.c +32 -36
104 lines not on this page · raw message