ostree/fsck: Add --verify-back-refs option
This new option verifies that the refs listed in the ref-bindings for each commit all point to that commit (i.e. there aren’t multiple commits listing the same ref in their ref-bindings, and there aren’t any commits with non-empty ref-bindings which aren’t pointed at by a ref). This is useful when generating a new repository from scratch, but not useful when adding new commits to an existing repository (since the old commits will still, correctly, have ref-bindings from when the refs pointed at them). That’s why it has to be enabled explicitly using --verify-back-refs, rather than being on by default. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1347 Approved by: cgwalters
This commit is contained in:
1 parent
38152d71aa
commit
fb7692bd44
3 files changed
+85
No files matched your search
@@ -963,6 +963,7 @@ _ostree_fsck() {
|
||||
--add-tombstones
|
||||
--delete
|
||||
--quiet -q
|
||||
--verify-back-refs
|
||||
"
|
||||
|
||||
local options_with_args="
|
||||
|
||||
Reference in new issue
Block a user