asomers / gstat-rs

An enhanced version of FreeBSD's gstat(8) utility
BSD 2-Clause "Simplified" License
14 stars 0 forks source link

Fix detecting GEOM consumers #7

Closed asomers closed 2 years ago

asomers commented 2 years ago

Previously we just looked at the lg_geom field and assumed that non-null meant the GIdent was a provider. But that field is actually uninitialized for providers. This led to displaying some consumers, with blank names. Fix by checking for providerness in the Gident::{name, rank} methods.