Changeset f34568c in mainline for uspace/app/hrctl/hrctl.c


Ignore:
Timestamp:
2025-06-09T20:42:55Z (6 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
eabc094c
Parents:
e2a8fd2
Message:

hr: print % done of REBUILD operation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    re2a8fd2 rf34568c  
    671671        free(scapa);
    672672
    673         printf("|           state: %s\n", hr_get_vol_state_str(info->state));
     673        printf("|           state: %s", hr_get_vol_state_str(info->state));
     674        if (info->state == HR_VOL_REBUILD) {
     675                unsigned int percent =
     676                    (info->rebuild_blk * 100) / info->data_blkno;
     677                printf(" (%u%% done)\n", percent);
     678        } else {
     679                printf("\n");
     680        }
     681
    674682        printf("|         extents:\n");
    675683
Note: See TracChangeset for help on using the changeset viewer.