mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
cmd_list_journal: handle jset_entries with bad lengths
Some checks failed
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled
Some checks failed
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
241bcd0183
commit
6cb4160e0c
@ -222,7 +222,8 @@ static void journal_entries_print(struct bch_fs *c, unsigned nr_entries,
|
||||
|
||||
struct jset_entry *entry = p->j.start;
|
||||
struct jset_entry *end = vstruct_last(&p->j);
|
||||
while (entry != end) {
|
||||
while (entry < end &&
|
||||
vstruct_next(entry) <= end) {
|
||||
|
||||
/*
|
||||
* log entries denote the start of a new transaction
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user