1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Allow 'lvconvert --repair' to operate on RAID 4/5/6.

The higher level RAIDs should be allowed for repair along with 'mirror' and
'raid1' segment types.
This commit is contained in:
Jonathan Earl Brassow 2012-02-22 17:18:49 +00:00
parent 0e92b70f71
commit e8eb64c878
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.93 - Version 2.02.93 -
==================================== ====================================
Allow 'lvconvert --repair' to operate on RAID 4/5/6
Fix 'build_parallel_areas_from_lv' to work properly with RAID 4/5/6 Fix 'build_parallel_areas_from_lv' to work properly with RAID 4/5/6
Version 2.02.92 - 20th February 2012 Version 2.02.92 - 20th February 2012

View File

@ -1736,7 +1736,8 @@ static int _lvconvert_single(struct cmd_context *cmd, struct logical_volume *lv,
return ECMD_FAILED; return ECMD_FAILED;
} }
if (arg_count(cmd, repair_ARG) && !(lv->status & MIRRORED)) { if (arg_count(cmd, repair_ARG) &&
!(lv->status & MIRRORED) && !(lv->status & RAID)) {
if (arg_count(cmd, use_policies_ARG)) if (arg_count(cmd, use_policies_ARG))
return ECMD_PROCESSED; /* nothing to be done here */ return ECMD_PROCESSED; /* nothing to be done here */
log_error("Can't repair non-mirrored LV \"%s\".", lv->name); log_error("Can't repair non-mirrored LV \"%s\".", lv->name);