- 
                Notifications
    You must be signed in to change notification settings 
- Fork 263
Closed
Description
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 foundSystem (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.