Skip to content

Feature request - show reconstruction-percentage #59

@Rad3d21

Description

@Rad3d21

Maybe others like this too and maybe I'm overlooking some issues that this could cause.
My feature request was:
Add rebuild percentage to check_cdot_rebuild to be able to track progress.
I did this quick & possibly dirty hack in patch file format:
--- check_cdot_rebuild.pl 2022-02-28 11:17:27.142714000 +0100
+++ check_cdot_rebuild_percent.pl 2022-02-28 13:09:22.043997000 +0100
@@ -78,10 +78,12 @@
foreach my $rg (@rgs) {

             my $rg_reconstruct = $rg->child_get_string( "is-reconstructing" );
  •            my $rg_reconstruct_percent = $rg->child_get_string( "reconstruction-percentage" );
    
               if ($rg_reconstruct eq "true") {
    
  •                unless (grep(/$aggr_name/, @failed_aggrs)) {
    
  •                    push( @failed_aggrs, $aggr_name );
    
  •                    push( @failed_aggrs, $aggr_name.":".$rg_reconstruct_percent );
                   }
               }
           }
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions