From 38b1e8a36e55db11cc3bf0ae54b3855dc1c46374 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 10 Apr 2024 12:46:27 -0400 Subject: [PATCH] todo --- doc/todo/fsck_scrub.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/todo/fsck_scrub.mdwn diff --git a/doc/todo/fsck_scrub.mdwn b/doc/todo/fsck_scrub.mdwn new file mode 100644 index 0000000000..7f5f3c0934 --- /dev/null +++ b/doc/todo/fsck_scrub.mdwn @@ -0,0 +1,18 @@ +When a git-annex repository is on eg, a zfs or btrfs filesystem, the +filesystem has built-in checksum verification of file. So a "scrub" +operation that just reads all annexed files can detect when a file has +gotten corrupt. + +This could be an enhancement to git-annex fsck, or a separate command. + +Note that this could detect corruption of files whose key does not +contain a checksum. + +Since fsck reads the file content anyway when checksumming, +the enhancement could be an option to scrub files that don't use +checksums. + +It would make sense to move a file that is detected as corrupt to +.git/annex/bad/ the same as fsck does. + +(Idea from Timothy Sanders.)