master - cleanup: Reduce indentation by short-circuiting function
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=05131f5853e86419d9c726faa961b8d012298d9c Commit: 05131f5853e86419d9c726faa961b8d012298d9c Parent: cdb0339319c89b8d1e5611537e9775a8c3ce5844 Author: Jonathan Brassow <[email protected]> AuthorDate: Tue Sep 11 12:55:17 2012 -0500 Committer: Jonathan Brassow <[email protected]> CommitterDate: Tue Sep 11 12:55:17 2012 -0500
cleanup: Reduce indentation by short-circuiting function
By changing the conditional for resyncing mirrors with core-logs a bit, we can short-circuit the rest of the function for that case and reduce the amount of indenting in the rest of the function.
This cleanup will simplify future patches aimed at properly handling the resync of RAID LVs.
--- WHATS_NEW | 1 + tools/lvchange.c | 98 ++++++++++++++++++++++++++++++----------------------- 2 files changed, 56 insertions(+), 43 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.98 - ================================= + Disallow addition of RAID images until the array is in-sync. Fix RAID LV creation with '--test' so valid commands do not fail. Add lvm_lv_rename() to lvm2api. Fix setvbuf code by closing and reopening stream before changing buffer.
tools/lvchange.c +55 -43
122 lines not on this page · raw message