Remove wal from the siadir
Overview
Remove syncing and the wal from the siadir.
Design or Proposal
Since all the information in the .siadir
files can be recomputed we don't need to have as strict protections around disk corruption. To improve performance, specifically around the bubble code, we can remove the wal and the fsync calls in the .siadir, which would remove 3 fsyncs total from siadir disk writes.
Since we are removing the wal protection, we will add a checksum at the beginning of the file. This will be a checksum of the .siadir metadata, and if it does not match then we will recalculate the .siaidir information.