mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 03:00:44 +00:00
We check superblock magic, crc, flags. data device superblock is checked but a little less thorough. We check whether the device is still mounted, since that would make checking invalid to begin with. Quorum blocks are validated to have sane contents. We add a global problem counter so we can trivially measure and report whether any problem was found at all, instead of iterating over all the problems and checking each individual count. We pick the standard exit code values from `fsck` and mirror their intentional behavior. This results in `fsck.scoutfs` can now be trivially created by making it a wrapper around `scoutfs check`. Signed-off-by: Auke Kok <auke.kok@versity.com> Signed-off-by: Hunter Shaffer <hunter.shaffer@versity.com>