Merge pull request #196 from fracai/more-check-stats

print additional, table-formatted stats for CHECK
This commit is contained in:
gilbertchen
2017-09-20 17:16:23 -04:00
committed by GitHub
3 changed files with 137 additions and 34 deletions

View File

@@ -812,12 +812,13 @@ func checkSnapshots(context *cli.Context) {
}
showStatistics := context.Bool("stats")
showTabular := context.Bool("tabular")
checkFiles := context.Bool("files")
searchFossils := context.Bool("fossils")
resurrect := context.Bool("resurrect")
backupManager.SetupSnapshotCache(preference.Name)
backupManager.SnapshotManager.CheckSnapshots(id, revisions, tag, showStatistics, checkFiles, searchFossils, resurrect)
backupManager.SnapshotManager.CheckSnapshots(id, revisions, tag, showStatistics, showTabular, checkFiles, searchFossils, resurrect)
runScript(context, preference.Name, "post")
}
@@ -1363,6 +1364,10 @@ func main() {
Name: "stats",
Usage: "show deduplication statistics (imply -all and all revisions)",
},
cli.BoolFlag {
Name: "tabular",
Usage: "show tabular usage and deduplication statistics (imply -stats, -all, and all revisions)",
},
cli.StringFlag {
Name: "storage",
Usage: "retrieve snapshots from the specified storage",