When listing all devices (geoms) from the given class, skip geoms without

providers.
This prevents from listing geoms like <name>.sync which can be confusing.
It still allows to show details about it by giving its name when listing.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2005-03-13 16:45:41 +00:00
parent 1c4bb40841
commit 5fd66a44d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143522

View File

@ -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);
}
}