From 5fd66a44d8539c4efa4420cb17486015d5e0e11a Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sun, 13 Mar 2005 16:45:41 +0000 Subject: [PATCH] When listing all devices (geoms) from the given class, skip geoms without providers. This prevents from listing geoms like .sync which can be confusing. It still allows to show details about it by giving its name when listing. MFC after: 1 week --- sbin/geom/core/geom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c index 126c2ebaeb76..b8c048895f8a 100644 --- a/sbin/geom/core/geom.c +++ b/sbin/geom/core/geom.c @@ -736,6 +736,8 @@ std_list(struct gctl_req *req, unsigned flags __unused) } } else { LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { + if (LIST_EMPTY(&gp->lg_provider)) + continue; show_one_geom(gp); } }