Skip to content

Commit

Permalink
btrfs-procs: docs: clarify how read policy chooses replica in scrub docs
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover authored and adam900710 committed Nov 4, 2024
1 parent 09c03af commit 09013b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/ch-scrub-intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ from one of the other replicas.
damage is detected by checksum validation and a mirror copy is used, but
because ``No_COW`` files are not protected by checksum, bad data may be
returned even if a good copy exists on another replica. Which replica is used
is based on the process ID of the executable reading the file.
is determined by the setting in ``/sys/fs/btrfs/<uuid>/read_policy``.
Currently, the only possible value for this setting is ``pid``, which uses
the process ID of the executable reading the file to pick the replica.

Writing to a ``No_COW`` file after reading from a bad replica will overwrite
all replicas with the bad data. Detecting and recovering from a failure in
Expand Down

0 comments on commit 09013b1

Please sign in to comment.