diff options
author | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-08-11 18:24:40 +0000 |
---|---|---|
committer | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-08-11 18:24:40 +0000 |
commit | 4aebd52c4c5714442ee9cff7acdb3c12af382505 (patch) | |
tree | 147519c02fea365b2293fd6f943df71c82c85973 /lib/activate | |
parent | 85ee8e10db8229be1c70b5a776f977f3dbd80756 (diff) | |
download | lvm2-4aebd52c4c5714442ee9cff7acdb3c12af382505.tar.gz lvm2-4aebd52c4c5714442ee9cff7acdb3c12af382505.tar.xz lvm2-4aebd52c4c5714442ee9cff7acdb3c12af382505.zip |
Add ability to down-convert RAID1 arrays.
Also, add some simple RAID tests to testsuite.
Diffstat (limited to 'lib/activate')
-rw-r--r-- | lib/activate/activate.c | 5 | ||||
-rw-r--r-- | lib/activate/activate.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c index d368f38c..5dcfb79f 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -611,6 +611,11 @@ int lv_mirror_percent(struct cmd_context *cmd, const struct logical_volume *lv, return r; } +int lv_raid_percent(const struct logical_volume *lv, percent_t *percent) +{ + return lv_mirror_percent(lv->vg->cmd, lv, 0, percent, NULL); +} + static int _lv_active(struct cmd_context *cmd, struct logical_volume *lv) { struct lvinfo info; diff --git a/lib/activate/activate.h b/lib/activate/activate.h index f253c127..7030633c 100644 --- a/lib/activate/activate.h +++ b/lib/activate/activate.h @@ -93,6 +93,7 @@ int lv_check_transient(struct logical_volume *lv); int lv_snapshot_percent(const struct logical_volume *lv, percent_t *percent); int lv_mirror_percent(struct cmd_context *cmd, const struct logical_volume *lv, int wait, percent_t *percent, uint32_t *event_nr); +int lv_raid_percent(const struct logical_volume *lv, percent_t *percent); /* * Return number of LVs in the VG that are active. |