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

Function vdev_top_update

freebsd/contrib/openzfs/module/zfs/vdev.c:1182–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182static void
1183vdev_top_update(vdev_t *tvd, vdev_t *vd)
1184{
1185 if (vd == NULL)
1186 return;
1187
1188 vd->vdev_top = tvd;
1189
1190 for (int c = 0; c < vd->vdev_children; c++)
1191 vdev_top_update(tvd, vd->vdev_child[c]);
1192}
1193
1194/*
1195 * Add a mirror/replacing vdev above an existing vdev. There is no need to

Callers 2

vdev_add_parentFunction · 0.85
vdev_remove_parentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected