Lines Matching defs:NULL
78 void *buf = NULL;
91 (rootdir != NULL) ? "./" : "", spa_config_path);
122 nvpair = NULL;
123 while ((nvpair = nvlist_next_nvpair(nvlist, nvpair)) != NULL) {
129 if (spa_lookup(nvpair_name(nvpair)) != NULL)
131 (void) spa_add(nvpair_name(nvpair), child, NULL);
138 if (buf != NULL)
155 * If the nvlist is empty (NULL), then remove the old cachefile.
157 if (nvl == NULL) {
178 0, RLIM64_INFINITY, kcred, NULL);
180 err = VOP_FSYNC(vp, FSYNC, kcred, NULL);
183 (void) VOP_CLOSE(vp, oflags, 1, 0, kcred, NULL);
213 if (rootdir == NULL || !(spa_mode_global & FWRITE))
222 for (dp = list_head(&target->spa_config_list); dp != NULL;
224 spa_t *spa = NULL;
225 if (dp->scd_path == NULL)
231 nvl = NULL;
232 while ((spa = spa_next(spa)) != NULL) {
246 if (spa->spa_config == NULL ||
247 tdp->scd_path == NULL ||
253 if (nvl == NULL)
275 target, NULL, NULL, 0, 0);
291 while ((tdp = list_next(&target->spa_config_list, dp)) != NULL) {
293 if (tdp->scd_path != NULL)
301 spa_event_notify(target, NULL, ESC_ZFS_CONFIG_SYNC);
314 spa_t *spa = NULL;
317 return (NULL);
322 while ((spa = spa_next(spa)) != NULL) {
324 zone_dataset_visible(spa_name(spa), NULL)) {
361 if (vd == NULL) {
383 if (spa->spa_comment != NULL) {
389 hostid = zone_get_hostid(NULL);
395 (void) ddi_strtoul(hw_serial, NULL, 10, &hostid);
422 if (spa->spa_config_splitting != NULL)
440 if (spa->spa_config_splitting != NULL &&