Skip to content

Scrub: wrong value Total to scrub in the final report #636

@ConsoleXXVII

Description

@ConsoleXXVII

The final report given by the command btrfs scrub start -B /mount_point does show a wrong value in the field Total to scrub:. Using btrfs scrub status /mount_point does report the correct value.

Exemple:

$ sudo btrfs scrub start -B /srv/backup-disk
Scrub started:    Sun Jun  4 18:00:50 2023
Status:           finished
Duration:         0:25:57
Total to scrub:   248.02GiB    # Wrong value
Rate:             92.91MiB/s
Error summary:    no errors found

$ sudo btrfs scrub status /srv/backup-disk
Scrub started:    Sun Jun  4 18:00:50 2023
Status:           finished
Duration:         0:25:57
Total to scrub:   141.27GiB  # Correct value
Rate:             92.91MiB/s
Error summary:    no errors found

System (RaspberryPi OS, arm64):

$ uname -a
Linux hostname 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

$ btrfs version
btrfs-progs v6.2 

This bug also exist in the kernel 5.15 arm64, with btrfs-progs 5.10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions