From 17fc089e24a606bf2a901cb2dbe9b8b8447e6988 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 13 Mar 2005 16:45:41 +0000 Subject: 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(+) (limited to 'sbin') diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c index 126c2eb..b8c0488 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); } } -- cgit v1.1