Lines Matching +full:continue +full:- +full:on +full:- +full:error
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
75 int error; in part_wizard() local
86 error = geom_gettree(&mesh); in part_wizard()
87 if (error != 0) in part_wizard()
107 error = geom_gettree(&mesh); in part_wizard()
108 if (error != 0) { in part_wizard()
113 error = wizard_makeparts(&mesh, schemeroot, fstype, 1); in part_wizard()
116 if (error) in part_wizard()
138 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in boot_disk_select()
139 if (strcmp(classp->lg_name, "DISK") != 0 && in boot_disk_select()
140 strcmp(classp->lg_name, "RAID") != 0 && in boot_disk_select()
141 strcmp(classp->lg_name, "MD") != 0) in boot_disk_select()
142 continue; in boot_disk_select()
144 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in boot_disk_select()
145 if (LIST_EMPTY(&gp->lg_provider)) in boot_disk_select()
146 continue; in boot_disk_select()
148 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in boot_disk_select()
150 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in boot_disk_select()
151 if (strcmp(gc->lg_name, "type") == 0) in boot_disk_select()
152 type = gc->lg_val; in boot_disk_select()
153 if (strcmp(gc->lg_name, "descr") == 0) in boot_disk_select()
154 desc = gc->lg_val; in boot_disk_select()
157 /* Skip swap-backed md and WORM devices */ in boot_disk_select()
158 if (strcmp(classp->lg_name, "MD") == 0 && in boot_disk_select()
160 continue; in boot_disk_select()
161 if (strncmp(pp->lg_name, "cd", 2) == 0) in boot_disk_select()
162 continue; in boot_disk_select()
168 fd = g_open(pp->lg_name, 1); in boot_disk_select()
169 if (fd == -1) { in boot_disk_select()
170 continue; in boot_disk_select()
175 disks[n-1].name = pp->lg_name; in boot_disk_select()
176 humanize_number(diskdesc, 7, pp->lg_mediasize, in boot_disk_select()
178 if (strncmp(pp->lg_name, "ad", 2) == 0) in boot_disk_select()
180 else if (strncmp(pp->lg_name, "md", 2) == 0) in boot_disk_select()
189 disks[n-1].prefix = ""; in boot_disk_select()
190 disks[n-1].on = false; in boot_disk_select()
191 disks[n-1].depth = 0; in boot_disk_select()
192 disks[n-1].desc = strdup(diskdesc); in boot_disk_select()
193 disks[n-1].bottomdesc = ""; in boot_disk_select()
201 "Select the disk on which to install " OSNAME ".", 0, 0, 0, in boot_disk_select()
225 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in provider_for_name()
226 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in provider_for_name()
227 if (LIST_EMPTY(&gp->lg_provider)) in provider_for_name()
228 continue; in provider_for_name()
230 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) in provider_for_name()
231 if (strcmp(pp->lg_name, name) == 0) in provider_for_name()
257 LIST_FOREACH(classp, &mesh->lg_class, lg_class) in wizard_partition()
258 if (strcmp(classp->lg_name, "PART") == 0) in wizard_partition()
262 LIST_FOREACH(gpart, &classp->lg_geom, lg_geom) in wizard_partition()
263 if (strcmp(gpart->lg_name, disk) == 0) in wizard_partition()
268 LIST_FOREACH(gc, &gpart->lg_config, lg_config) { in wizard_partition()
269 if (strcmp(gc->lg_name, "scheme") == 0) { in wizard_partition()
270 scheme = gc->lg_val; in wizard_partition()
302 "The existing partition scheme on this " in wizard_partition()
303 "disk (%s) is not bootable on this platform. To install " in wizard_partition()
305 "data on the disk. Are you sure you want to proceed?", in wizard_partition()
307 conf.title = "Non-bootable Disk"; in wizard_partition()
343 choice /* Non-interactive for "Entire Disk" */); in wizard_partition()
360 char *fsnames[] = {"freebsd-ufs", "freebsd-zfs"}; in wizard_makeparts()
365 int error, retval; in wizard_makeparts() local
375 LIST_FOREACH(classp, &mesh->lg_class, lg_class) in wizard_makeparts()
376 if (strcmp(classp->lg_name, "PART") == 0) in wizard_makeparts()
379 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) in wizard_makeparts()
380 if (strcmp(gp->lg_name, disk) == 0) in wizard_makeparts()
385 available = gpart_max_free(gp, NULL)*pp->lg_sectorsize; in wizard_makeparts()
393 "There is not enough free space on %s to " in wizard_makeparts()
404 return (!retval); /* Editor -> return 0 */ in wizard_makeparts()
410 humanize_number(rootsizestr, 7, available - swapsize - 1024*1024, in wizard_makeparts()
413 error = geom_gettree(&submesh); in wizard_makeparts()
414 if (error != 0) in wizard_makeparts()
415 return (error); in wizard_makeparts()
420 error = geom_gettree(&submesh); in wizard_makeparts()
421 if (error != 0) in wizard_makeparts()
422 return (error); in wizard_makeparts()
424 gpart_create(pp, "freebsd-swap", swapsizestr, NULL, NULL, 0); in wizard_makeparts()