Skip to main content

Module fsck

Module fsck 

Source
Expand description

Β§Perform consistency checking.

This is an internal module, backing the experimental bootc internals fsck command.

StructsΒ§

CheckFinding πŸ”’
A problem a check found in the system.
FsckCheck πŸ”’
ObjectsVerityState πŸ”’

EnumsΒ§

CheckFindingCode πŸ”’
The kind of problem a check found.
FsckFnImpl πŸ”’

ConstantsΒ§

MAX_PRINTED_FINDINGS πŸ”’
How many findings of one check are printed; the rest are counted.
RESOLVCONF_SUBJECT πŸ”’
The subject of the resolv.conf check’s finding.

StaticsΒ§

CHECK_FSVERITY πŸ”’
CHECK_RESOLVCONF πŸ”’
FSCK_CHECKS πŸ”’

FunctionsΒ§

check_fsverity πŸ”’
check_fsverity_inner πŸ”’
check_resolvconf πŸ”’
See https://github.com/bootc-dev/bootc/pull/1096 and https://github.com/containers/bootc/pull/1167 Basically verify that if /usr/etc/resolv.conf exists, it is not a zero-sized file that was probably injected by buildah and that bootc should have removed.
check_resolvconf_in πŸ”’
The resolv.conf check proper, on the /usr directory usr.
fsck πŸ”’
print_check_result πŸ”’
Print the result of the check name, returning whether it passed.
verity_state_of_all_objects πŸ”’
verity_state_of_objects πŸ”’
Check the fsverity state of all regular files in this object directory.

Type AliasesΒ§

AsyncFsckFn πŸ”’
FsckFn πŸ”’
FsckResult πŸ”’
Like the lints, checks have two levels of errors: the outer Result is for unexpected runtime errors, which stop the check; every problem the check finds in the system is collected as a finding, and the check runs to completion. No findings means the check passed.