summaryrefslogtreecommitdiff
path: root/tools/pvmove.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2017-10-18 15:57:46 +0100
committerAlasdair G Kergon <agk@redhat.com>2017-10-18 15:58:13 +0100
commitf1cc5b12fd80c3c62247fccfb2e5537aef27533d (patch)
treef839eaa11450e9f52d9a3915e54db009c839d303 /tools/pvmove.c
parent327d9d59be6f7179b2e0a756deaa0f9a196e0651 (diff)
downloadlvm2-f1cc5b12fd80c3c62247fccfb2e5537aef27533d.tar.gz
tidy: Add missing underscores to statics.
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r--tools/pvmove.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index 305647e91..09ce54bc8 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -293,7 +293,7 @@ static int _insert_pvmove_mirrors(struct cmd_context *cmd,
*
* Returns: 1 if true, 0 otherwise
*/
-static int sub_lv_of(struct logical_volume *lv, const char *lv_name)
+static int _sub_lv_of(struct logical_volume *lv, const char *lv_name)
{
struct lv_segment *seg;
@@ -308,7 +308,7 @@ static int sub_lv_of(struct logical_volume *lv, const char *lv_name)
return 1;
/* Continue up the tree */
- return sub_lv_of(seg->lv, lv_name);
+ return _sub_lv_of(seg->lv, lv_name);
}
/*
@@ -319,7 +319,7 @@ static int sub_lv_of(struct logical_volume *lv, const char *lv_name)
*
* If this LV is below a cache LV (at any depth), return 1.
*/
-static int parent_lv_is_cache_type(struct logical_volume *lv)
+static int _parent_lv_is_cache_type(struct logical_volume *lv)
{
struct lv_segment *seg;
@@ -334,7 +334,7 @@ static int parent_lv_is_cache_type(struct logical_volume *lv)
return 1;
/* Continue up the tree */
- return parent_lv_is_cache_type(seg->lv);
+ return _parent_lv_is_cache_type(seg->lv);
}
/* Create new LV with mirror segments for the required copies */
@@ -451,7 +451,7 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
continue;
if (lv_name) {
- if (strcmp(lv->name, lv_name) && !sub_lv_of(lv, lv_name))
+ if (strcmp(lv->name, lv_name) && !_sub_lv_of(lv, lv_name))
continue;
lv_found = 1;
}
@@ -469,7 +469,7 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
continue;
}
- if (parent_lv_is_cache_type(lv)) {
+ if (_parent_lv_is_cache_type(lv)) {
log_print_unless_silent("Skipping %s because a parent"
" is of cache type", lv->name);
lv_skipped = 1;