MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zfs_post_common

Function zfs_post_common

freebsd/contrib/openzfs/module/zfs/zfs_fm.c:1287–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1285}
1286
1287static void
1288zfs_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

Callers 3

zfs_post_removeFunction · 0.85
zfs_post_autoreplaceFunction · 0.85
zfs_post_state_changeFunction · 0.85

Calls 2

zfs_event_createFunction · 0.85
zfs_zevent_postFunction · 0.85

Tested by

no test coverage detected