Lines Matching full:scheme

80 scheme_supports_labels(const char *scheme)  in scheme_supports_labels()  argument
82 if (strcmp(scheme, "APM") == 0) in scheme_supports_labels()
84 if (strcmp(scheme, "GPT") == 0) in scheme_supports_labels()
236 const char *scheme = NULL; in choose_part_type() local
257 conf.title = "Partition Scheme"; in choose_part_type()
259 "Select a partition scheme for this volume:", 0, 0, 0, in choose_part_type()
269 "This partition scheme (%s) is not " in choose_part_type()
280 scheme = items[choice].name; in choose_part_type()
282 return scheme; in choose_part_type()
286 gpart_partition(const char *lg_name, const char *scheme) in gpart_partition() argument
296 if (scheme == NULL) { in gpart_partition()
297 scheme = choose_part_type(default_scheme()); in gpart_partition()
299 if (scheme == NULL) in gpart_partition()
302 if (!is_scheme_bootable(scheme)) { in gpart_partition()
306 "This partition scheme (%s) is not " in gpart_partition()
308 "to proceed?", scheme); in gpart_partition()
314 /* Reset scheme so user can choose another */ in gpart_partition()
315 scheme = NULL; in gpart_partition()
325 gctl_ro_param(r, "scheme", -1, scheme); in gpart_partition()
332 scheme = NULL; in gpart_partition()
337 if (bootcode_path(scheme) != NULL) in gpart_partition()
347 const char *errstr, *scheme; in gpart_activate() local
356 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_activate()
357 scheme = gc->lg_val; in gpart_activate()
362 if (strcmp(scheme, "MBR") == 0 || strcmp(scheme, "EBR") == 0) in gpart_activate()
414 const char *errstr, *scheme; in gpart_bootcode() local
425 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_bootcode()
426 scheme = gc->lg_val; in gpart_bootcode()
431 bootcode = bootcode_path(scheme); in gpart_bootcode()
468 const char *scheme; in gpart_partcode() local
474 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_partcode()
475 scheme = gc->lg_val; in gpart_partcode()
480 /* Make sure this partition scheme needs partcode on this platform */ in gpart_partcode()
481 if (partcode_path(scheme, fstype) == NULL) in gpart_partcode()
493 partcode_path(scheme, fstype), indexstr, pp->lg_geom->lg_name); in gpart_partcode()
542 /* And any metadata associated with the partition scheme itself */ in gpart_destroy()
553 const char *errstr, *oldtype, *scheme; in gpart_edit() local
586 scheme = NULL; in gpart_edit()
588 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_edit()
589 scheme = gc->lg_val; in gpart_edit()
593 if (scheme == NULL || strcmp(scheme, "(none)") == 0) { in gpart_edit()
620 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_edit()
621 scheme = gc->lg_val; in gpart_edit()
626 nitems = scheme_supports_labels(scheme) ? 4 : 3; in gpart_edit()
665 if (strcmp(items[2].value, "/") == 0 && !is_fs_bootable(scheme, in gpart_edit()
707 set_default_part_metadata(pp->lg_name, scheme, items[0].value, in gpart_edit()
725 set_default_part_metadata(const char *name, const char *scheme, in set_default_part_metadata() argument
759 if (strcmp(type, bootpart_type(scheme, &default_bootmount)) == 0) { in set_default_part_metadata()
940 const char *scheme, int interactive) in add_boot_partition() argument
957 if (strcmp(gc->lg_val, bootpart_type(scheme, &bootmount)) != 0) in add_boot_partition()
976 set_default_part_metadata(ppi->lg_name, scheme, in add_boot_partition()
987 "This partition scheme requires a boot partition " in add_boot_partition()
1001 bootpart_size(scheme), "B", HN_AUTOSCALE, in add_boot_partition()
1004 gpart_create(pp, bootpart_type(scheme, &bootmount), in add_boot_partition()
1021 return (bootpart_size(scheme)); in add_boot_partition()
1036 const char *errstr, *scheme; in gpart_create() local
1083 /* Now get the partition scheme */ in gpart_create()
1084 scheme = NULL; in gpart_create()
1087 if (strcmp(gc->lg_name, "scheme") == 0) in gpart_create()
1088 scheme = gc->lg_val; in gpart_create()
1091 if (geom == NULL || scheme == NULL || strcmp(scheme, "(none)") == 0) { in gpart_create()
1122 if (strcmp(scheme, "MBR") == 0) { in gpart_create()
1127 nitems = scheme_supports_labels(scheme) ? 4 : 3; in gpart_create()
1230 * Error if this scheme needs nested partitions, this is one, and in gpart_create()
1243 /* If this is the root partition, check that this scheme is bootable */ in gpart_create()
1244 if (strcmp(items[2].value, "/") == 0 && !is_scheme_bootable(scheme)) { in gpart_create()
1248 "This partition scheme (%s) is not bootable " in gpart_create()
1250 scheme); in gpart_create()
1260 if (strcmp(items[2].value, "/") == 0 && !is_fs_bootable(scheme, in gpart_create()
1282 strcmp(items[2].value, "/") == 0) && bootpart_size(scheme) > 0) { in gpart_create()
1283 size_t bytes = add_boot_partition(geom, pp, scheme, in gpart_create()
1340 set_default_part_metadata(newpartname, scheme, in gpart_create()