diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-11-20 13:16:35 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-12-14 14:18:44 +0000 |
commit | fb7692bd448ef0a395485a79a050193e50e417ac (patch) | |
tree | f030cfe21a36eb9b4c782a1afc05e1351b2904c9 /bash/ostree | |
parent | 38152d71aa0fc1167313723ec190b65421324472 (diff) | |
download | ostree-fb7692bd448ef0a395485a79a050193e50e417ac.tar.gz |
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
Diffstat (limited to 'bash/ostree')
-rw-r--r-- | bash/ostree | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/ostree b/bash/ostree index c132a43f..2a67d1aa 100644 --- a/bash/ostree +++ b/bash/ostree @@ -963,6 +963,7 @@ _ostree_fsck() { --add-tombstones --delete --quiet -q + --verify-back-refs " local options_with_args=" |