| 1285 | } |
| 1286 | |
| 1287 | static void |
| 1288 | zfs_post_common(spa_t *spa, vdev_t *vd, const char *type, const char *name, |
| 1289 | nvlist_t *aux) |
| 1290 | { |
| 1291 | #ifdef _KERNEL |
| 1292 | nvlist_t *resource; |
| 1293 | |
| 1294 | resource = zfs_event_create(spa, vd, type, name, aux); |
| 1295 | if (resource) |
| 1296 | zfs_zevent_post(resource, NULL, zfs_zevent_post_cb); |
| 1297 | #endif |
| 1298 | } |
| 1299 | |
| 1300 | /* |
| 1301 | * The 'resource.fs.zfs.removed' event is an internal signal that the given vdev |
no test coverage detected