Skip to content

Missing value blocks_to_be_synced #636

@Finomosec

Description

@Finomosec

Hello,

here is my cat /proc/mdstat:

md0 : active raid5 sdf1[4] sde1[1] sdc1[2] sdb1[0]
      14650718208 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_]
      [===================>.]  recovery = 99.9% (4882207424/4883572736) finish=7.8min speed=2908K/sec
      bitmap: 2/37 pages [8KB], 65536KB chunk

The total_blocks (14650718208) can differ from the block_to_be_synced [due to lack of a better name] (4883572736).
But the output only gives the total_blocks.

recoveryLineBlocksRE = regexp.MustCompile(`\((\d+)/\d+\)`)

In this regex, the second \d contains the needed value.

Can you add it to the output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions