Add podman system check for checking storage consistency

Add a `podman system check` that performs consistency checks on local
storage, optionally removing damaged items so that they can be
recreated.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai
2024-04-02 16:18:19 -04:00
parent c510959826
commit fec58a4571
15 changed files with 565 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ type ContainerEngine interface { //nolint:interfacebloat
SecretExists(ctx context.Context, nameOrID string) (*BoolReport, error)
Shutdown(ctx context.Context)
SystemDf(ctx context.Context, options SystemDfOptions) (*SystemDfReport, error)
SystemCheck(ctx context.Context, options SystemCheckOptions) (*SystemCheckReport, error)
Unshare(ctx context.Context, args []string, options SystemUnshareOptions) error
Version(ctx context.Context) (*SystemVersionReport, error)
VolumeCreate(ctx context.Context, opts VolumeCreateOptions) (*IDOrNameResponse, error)