Lines Matching defs:class
161 zfs_agent_post_event(const char *class, const char *subclass, nvlist_t *nvl)
175 if (strcmp(class, "sysevent.fs.zfs.vdev_check") == 0) {
176 class = EC_ZFS;
188 if ((strcmp(class, EC_DEV_REMOVE) == 0) &&
199 class = "resource.fs.zfs.removed";
202 (void) nvlist_add_string(payload, FM_CLASS, class);
263 EC_DEV_REMOVE, class);
266 (void) strlcpy(event->ae_class, class, sizeof (event->ae_class));
279 zfs_agent_dispatch(const char *class, const char *subclass, nvlist_t *nvl)
286 if (strstr(class, "ereport.fs.zfs.") != NULL ||
287 strstr(class, "resource.fs.zfs.") != NULL ||
288 strcmp(class, "sysevent.fs.zfs.vdev_remove") == 0 ||
289 strcmp(class, "sysevent.fs.zfs.vdev_remove_dev") == 0 ||
290 strcmp(class, "sysevent.fs.zfs.pool_destroy") == 0) {
291 fmd_module_recv(fmd_module_hdl("zfs-diagnosis"), nvl, class);
302 if (strcmp(class, FM_LIST_SUSPECT_CLASS) == 0 ||
303 strcmp(class, "resource.fs.zfs.removed") == 0 ||
304 strcmp(class, "resource.fs.zfs.statechange") == 0 ||
305 strcmp(class, "sysevent.fs.zfs.vdev_remove") == 0) {
306 fmd_module_recv(fmd_module_hdl("zfs-retire"), nvl, class);
315 if (strstr(class, "EC_dev_") != NULL ||
316 strcmp(class, EC_ZFS) == 0) {
317 (void) zfs_slm_event(class, subclass, nvl);