diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-11 22:14:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-11 22:14:21 +0000 |
commit | b2bb08b487890b3c3ed6adca7372f3d742354a76 (patch) | |
tree | 280bc6b94147bec7a6604aca4904a14396b0a186 /sys/fs/cd9660 | |
parent | 736396fc05cd36377f15dab4007d33d067689c92 (diff) | |
download | FreeBSD-src-b2bb08b487890b3c3ed6adca7372f3d742354a76.zip FreeBSD-src-b2bb08b487890b3c3ed6adca7372f3d742354a76.tar.gz |
- Change witness_displaydescendants() to accept the indentation level as
a parameter instead of using the level of a given witness. When
recursing, pass an indent level of indent + 1.
- Make use of the information witness_levelall() provides in
witness_display_list() to use an O(n) algorithm instead of an O(n^2)
algo to decide which witnesses to display hierarchies from. Basically,
we only display a hierarchy for witnesses with a level of 0.
- Add a new per-witness flag that is reset at the start of
witness_display() for all witness's and is set the first time a witness
is displayed in witness_displaydescendants(). If a witness is
encountered more than once in the lock order tree (which happens often),
witness_displaydescendants() marks the later occurrences with the string
"(already displayed)" and doesn't display the subtree under that
witness. This avoids duplicating large amounts of the lock order tree
in the 'show witness' output in DDB.
All these changes serve to make 'show witness' a lot more readable and
useful than it was previously.
Diffstat (limited to 'sys/fs/cd9660')
0 files changed, 0 insertions, 0 deletions