Skip to content

WIP: (splitting out and will close) Repair Loop Updates 1: calculating minHealth for folder metadata

Matthew Sevey requested to merge repair-by-folder into unstable

This makes changes to the file repair code to repair files starting with those in the directory with the lowest redundancy as opposed to looking at all the files at once. See design details in #3222 (closed)

This is continued work on #2232 (closed) and #3222 (closed)

Current Implementation Overview

This MR is the first of 4 to update the repair loop to be folder based, it implements the following from #3222 (closed)

  • Code that reads files in a directory from disk and calculates file health's
  • Updates folder metadata with lowest file health
  • Bubbles up the lowest file health to the top level directory of the renter
  • Implement method that finds directory that contains the lowest health file
  • Implement lock structure for SiaDirs
Edited by Matthew Sevey

Merge request reports