public class DfsFsck extends Object
Constructor and Description |
---|
DfsFsck(DfsRepository repository)
Initialize DFS fsck.
|
Modifier and Type | Method and Description |
---|---|
FsckError |
check(ProgressMonitor pm)
Verify the integrity and connectivity of all objects in the object
database.
|
void |
setConnectivityOnly(boolean connectivityOnly)
Whether fsck should bypass object validity and integrity checks and only
check connectivity.
|
void |
setObjectChecker(ObjectChecker objChecker)
Use a customized object checker instead of the default one.
|
public DfsFsck(DfsRepository repository)
repository
- the dfs repository to check.public FsckError check(ProgressMonitor pm) throws IOException
pm
- callback to provide progress feedback during the check.IOException
- if encounters IO errors during the process.public void setObjectChecker(ObjectChecker objChecker)
check(ProgressMonitor)
call.objChecker
- A customized object checker.public void setConnectivityOnly(boolean connectivityOnly)
connectivityOnly
- whether fsck should bypass object validity and integrity
checks and only check connectivity. The default is
false
, meaning to run all checks.Copyright © 2020 Eclipse JGit Project. All rights reserved.