mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
In GEOM debugging output, show consumer for cloned and duplicated bio's.
When using bio's created by g_clone_bio() or g_duplicate_bio() their consumer device (the device to which their I/O requests are sent) is listed by the geom debugging facility as [unknown]. If available, this update lists the consumer associated with the bio's parent. MFC after: 2 weeks Sponsored by: Netflix
This commit is contained in:
parent
e58d0869c6
commit
85f7e9a4f0
@ -1017,6 +1017,8 @@ g_format_bio(struct sbuf *sb, const struct bio *bp)
|
||||
|
||||
if (bp->bio_to != NULL)
|
||||
pname = bp->bio_to->name;
|
||||
else if (bp->bio_parent != NULL && bp->bio_parent->bio_to != NULL)
|
||||
pname = bp->bio_parent->bio_to->name;
|
||||
else
|
||||
pname = "[unknown]";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user