From 6f0300de9653063222c536b7cb04784d94787dd0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 5 Dec 2013 12:39:02 +0100 Subject: [PATCH] lv_remove_single: update parameter name Since we have already a meaning for 'silent' replace its name with more explanator suppress_remove_message (updates recent commit). --- lib/metadata/lv_manip.c | 4 ++-- lib/metadata/metadata-exported.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 980675869..62ca24532 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -4494,7 +4494,7 @@ void lv_set_hidden(struct logical_volume *lv) } int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv, - force_t force, int silent) + force_t force, int suppress_remove_message) { struct volume_group *vg; struct lvinfo info; @@ -4651,7 +4651,7 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv, backup(vg); - if (!silent && visible) + if (!suppress_remove_message && visible) log_print_unless_silent("Logical volume \"%s\" successfully removed", lv->name); return 1; diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index 9798197a9..9d547bb5e 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -658,7 +658,7 @@ int lv_extend(struct logical_volume *lv, int lv_remove(struct logical_volume *lv); int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv, - force_t force, int silent); + force_t force, int suppress_remove_message); int lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume *lv, force_t force, unsigned level);