Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
/ fsck.sfs Public archive
forked from m-ildefons/fsck.s3gw

fsck like tool to check for consistency problems on the backing store of the s3gw and fix them

License

Notifications You must be signed in to change notification settings

s3gw-tech/fsck.sfs

 
 

Repository files navigation

fsck.sfs

fsck like tool to check for consistency problems on the backing store of the s3gw and fix them

Usage

Allowed Options:
  -h [ --help ]         print this help text
  -F [ --fix ]          fix any inconsistencies found
  -p [ --path ] arg     path to check
  -q [ --quiet ]        run silently
  -v [ --verbose ]      more verbose output

Must supply path to check.

Checks

Check Fix Description
metadata integrity N/A runs sqlite integrity check on metadata
metadata version N/A checks metadata schema version is supported by fsck.sfs
orphaned objects move orphaned objects to "lost+found" directory locates objects that are not listed in the metadata
orphaned metadata unimplemented locates metadata for which objects don't actually exist
object integrity unimplemented verifies object metadata against file contents on disk

Development

Build the tool with CMake:

cd fsck.sfs
cmake -S src -B build
cmake --build build

Run the tool you just built:

build/fsck.sfs /path/to/store

Or, build and run it in a container using Docker or Podman:

# Docker
docker build -t fsck.sfs .
docker run -v /path/to/store:/volume fsck.sfs /volume

# Podman
podman build -t fsck.sfs .
podman run -v /path/to/store:/volume fsck.sfs /volume

About

fsck like tool to check for consistency problems on the backing store of the s3gw and fix them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.1%
  • Shell 12.8%
  • CMake 2.8%
  • Dockerfile 2.3%