btrfs-progs: docs: update scrub docs

Enhance the note what scrub does not compared to 'check'.

Author: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Andrea Gelmini 2018-11-27 15:14:37 +01:00 committed by David Sterba
parent 8bda5132d8
commit c8d3986ed7
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ and metadata blocks from all devices and verify checksums. Automatically repair
corrupted blocks if there's a correct copy available.
NOTE: Scrub is not a filesystem checker (fsck) and does not verify nor repair
structural damage in the filesystem.
structural damage in the filesystem. It really only checks checksums of of data
and tree blocks, it doesn't ensure the content of tree blocks is valid and
consistent. There's some validation performed when metadata blocks are read
from disk but it's not extensive and cannot substitute full 'btrfs check' run.
The user is supposed to run it manually or via a periodic system service. The
recommended period is a month but could be less. The estimated device bandwidth