]>
git.scottworley.com Git - annex-ec/blob - annex-ec-fsck
3 # annex-ec: Use erasure codes for more efficient storage use in git-annex
4 # Copyright (C) 2026 Scott Worley
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as
8 # published by the Free Software Foundation, either version 3 of the
9 # License, or (at your option) any later version.
20 where_data
=$
(set +e
; git annex
whereis --json "${recovery_set_files[@]}"; set -e)
21 missing_data
=$
(jq
-r 'if .whereis == [] then .file else empty end' <<< "$where_data")
22 if [[ "$missing_data" ]];then
23 xargs -d \\n annex-ec-recover
<<< "$missing_data"
30 while IFS
= read -r line
;do
31 if [[ "$line" == ' '* ]];then
32 recovery_set_files
+=( "${line# }" )
34 if [[ "$recovery_set_name" ]];then
37 recovery_set_name
=$line