VDEV_TYPE_ROOT
fnvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT);
VDEV_TYPE_ROOT);
nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 ||
if (strcmp(type, VDEV_TYPE_ROOT) != 0) {
if ((strcmp(type, VDEV_TYPE_ROOT) == 0) && children > 1) {
VDEV_TYPE_ROOT) == 0);
VERIFY(nvlist_add_string(root, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) == 0);
VDEV_TYPE_ROOT) == 0);
if (strcmp(type, VDEV_TYPE_ROOT) != 0 || count != 1)
VDEV_TYPE_ROOT) != 0)
VDEV_TYPE_ROOT) != 0 ||
VDEV_TYPE_ROOT) == 0);
.vdev_op_type = VDEV_TYPE_ROOT, /* name of this vdev type */