This is the command line interface of database sanitizer
Details
Details
- Reviewers
mlaurent - Group Reviewers
Baloo Frameworks - Maniphest Tasks
- T8250: Sanitize the database
- Commits
- R293:b050c0ab0ef7: Introduce baloodb CLI tool
Run on command line
Example:
$ baloodb list --missing-only --device-id 2049 '/otto/' Listing database contents... Missing: device: 2049 inode: 5053 url: /tmp/otto/A Missing: device: 2049 inode: 9441 url: /tmp/otto/B Missing: device: 2049 inode: 9464 url: /tmp/otto/B/B.txt Found 3 matching items Elapsed: 87.7154 secs
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
This is really nice, I like it! Should make debugging a lot easier. Noticed a couple of things:
$ baloodb -v baloodb $ baloodb devices command "devices" Listing database contents... Device:2049 14855 items Found 14855 matching items Elapsed: 0.326553 secs
Comment Actions
This is how the output now does and nearly should look.
$ baloodb devices Listing database contents... Device:22 3 items Device:43 76 items Device:42 3627 items Device:41 40 items Device:2053 6438 items Device:2049 22 items Device:2069 1533 items Device:2066 11643 items Device:2064 99 items Device:2086 220 items Device:2098 1450 items Found 25151 matching items Elapsed: 4.42067 secs
or
$ baloodb devices 2>/dev/null Device:22 3 items Device:41 40 items Device:42 3627 items Device:43 76 items Device:2069 1533 items Device:2064 99 items Device:2066 11643 items Device:2053 6438 items Device:2049 22 items Device:2098 1450 items Device:2086 220 items
The "found items" count has to be fixed in D11285. Are there more things?
Comment Actions
Should there be a note in --help message like "This is an experimental tool. The command line interface is subject to change."?
src/tools/baloodb/main.cpp | ||
---|---|---|
66 | No reason. Will change to std::vector. |
src/tools/baloodb/CMakeLists.txt | ||
---|---|---|
17 | It's the default variable. |