]> git.hungrycats.org Git - linux/commitdiff
replace-fixes: review edits
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 11 Nov 2026 05:39:57 +0000 (00:39 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 11 Nov 2026 05:39:57 +0000 (00:39 -0500)
 * Clarify the reason for comparing replace with dev/add.
 * Drop the "unfixed" tag from scrub testing--the behavior doesn't need to change.

topics/replace-fixes/0000-cover-letter.patch

index 2907d3fd78cf6a07f8609d06a0d4ee78916eb6c7..6c742e32074a9ef9d388846375da7ac078d8c058 100644 (file)
@@ -60,13 +60,14 @@ replace counts unreadable sectors and goes on, which is what rescuing a
 failing device needs.  Replacing a healthy device (e.g. with a larger
 one) wants the opposite: an uncorrectable sector means data was already
 lost, and the source should not be removed before that is understood.
-Today that user has to use device add + remove, about 30 times slower.
-With the flag, the replace is canceled with -EIO at the end of the
-block group where the first uncorrectable sector was found.  The flag
-is persisted in the dev_replace item, so a resumed replace still
-aborts.  Kernels without this patch reject the value with -EINVAL, so
-the option fails closed; unknown flags get -EOPNOTSUPP.  A btrfs-progs
-patch adds "btrfs replace start --abort-on-uncorrectable".
+Today that user has to use device add + remove, about 30 times slower,
+to get the equivalent error-checking behavior.  With the flag, the
+replace is canceled with -EIO at the end of the block group where the
+first uncorrectable sector was found.  The flag is persisted in the
+dev_replace item, so a resumed replace still aborts.  Kernels without
+this patch reject the value with -EINVAL, so the option fails closed;
+unknown flags get -EOPNOTSUPP.  A btrfs-progs patch adds "btrfs replace
+start --abort-on-uncorrectable".
 
 Patch 9 lets a single device filesystem with a replace in progress
 mount again.  Since v6.7 a scan does not register a device whose
@@ -90,9 +91,7 @@ crash-image resume and target write errors; target contents checked
 sector by sector against a device-identifying prefill; KASAN.  Patches
 6, 9 and 10: an unmount mid-chunk with a subvolume drop running (single,
 raid1, and a single device filesystem), with idle-unmount and no-unmount
-controls, and a scrub and a replace after a forced abort (unfixed: the
-scrub went through 5 more block groups, 1235 MiB in 76 s, and reported
-success; fixed: -EROFS within a second).
+controls, and a scrub and a replace after a forced abort.
 
 Zygo Blaxell (10):
   btrfs: commit the canceled state when a device replace fails or is