Lines Matching refs:lg_name
256 gpart_partition(const char *lg_name, const char *scheme)
287 gctl_ro_param(r, "arg0", -1, lg_name);
302 get_part_metadata(lg_name, 1)->bootcode = 1;
320 if (strcmp(gc->lg_name, "scheme") == 0) {
332 if (strcmp(gc->lg_name, "index") == 0) {
340 gctl_ro_param(r, "arg0", -1, pp->lg_geom->lg_name);
353 gpart_set_root(const char *lg_name, const char *attribute)
360 gctl_ro_param(r, "arg0", -1, lg_name);
388 if (strcmp(gc->lg_name, "scheme") == 0) {
415 gctl_ro_param(r, "arg0", -1, gp->lg_name);
435 if (strcmp(gc->lg_name, "scheme") == 0) {
446 if (strcmp(gc->lg_name, "index") == 0) {
454 partcode_path(scheme, fstype), indexstr, pp->lg_geom->lg_name);
457 pp->lg_name);
477 gctl_ro_param(r, "arg0", -1, lg_geom->lg_name);
485 gctl_ro_param(r, "arg0", -1, lg_geom->lg_name);
501 delete_part_metadata(lg_geom->lg_name);
540 if (strcmp(cp->lg_geom->lg_class->lg_name, "PART") == 0) {
544 if (strcmp(gc->lg_name, "scheme") == 0) {
550 gpart_partition(cp->lg_geom->lg_name, NULL);
555 if (strcmp(pp->lg_geom->lg_class->lg_name, "PART") == 0)
562 gpart_partition(cp->lg_geom->lg_name, NULL);
566 if (geom == NULL && strcmp(pp->lg_geom->lg_class->lg_name, "PART") == 0)
571 gpart_partition(pp->lg_name, NULL);
576 if (strcmp(gc->lg_name, "scheme") == 0) {
587 if (strcmp(gc->lg_name, "type") == 0) {
591 if (strcmp(gc->lg_name, "label") == 0 && gc->lg_val != NULL) {
595 if (strcmp(gc->lg_name, "index") == 0)
600 if (md->name != NULL && strcmp(md->name, pp->lg_name) == 0) {
640 gctl_ro_param(r, "arg0", -1, geom->lg_name);
656 set_default_part_metadata(pp->lg_name, scheme, items[0].text,
665 gpart_partition(pp->lg_name, "BSD");
787 if (strcmp(gc->lg_name, "start") == 0) {
792 if (strcmp(gc->lg_name, "start") == 0) {
820 if (strcmp(gc->lg_name, "first") == 0)
822 if (strcmp(gc->lg_name, "last") == 0)
840 if (strcmp(gc->lg_name, "start") == 0)
842 if (strcmp(gc->lg_name, "end") == 0)
904 if (strcmp(gc->lg_name, "type") == 0)
915 md = get_part_metadata(ppi->lg_name, 0);
927 set_default_part_metadata(ppi->lg_name, scheme,
1020 if (strcmp(cp->lg_geom->lg_class->lg_name, "PART") == 0) {
1025 if (geom == NULL && strcmp(pp->lg_geom->lg_class->lg_name, "PART") == 0)
1032 if (strcmp(gc->lg_name, "scheme") == 0)
1037 if (gpart_partition(pp->lg_name, NULL) == 0)
1212 gctl_ro_param(r, "arg0", -1, geom->lg_name);
1274 is_partition = (strcmp(pp->lg_geom->lg_class->lg_name, "PART") == 0);
1279 if (strcmp(cp->lg_geom->lg_class->lg_name, "PART") == 0) {
1292 gctl_ro_param(r, "arg0", -1, geom->lg_name);
1312 gctl_ro_param(r, "class", -1, pp->lg_geom->lg_class->lg_name);
1313 gctl_ro_param(r, "arg0", -1, pp->lg_geom->lg_name);
1318 if (strcmp(gc->lg_name, "index") == 0) {
1334 delete_part_metadata(pp->lg_name);
1347 if (strcmp(classp->lg_name, "PART") == 0)
1351 if (strcmp(classp->lg_name, "PART") != 0) {
1360 if (strcmp(gc->lg_name, "modified") == 0) {
1371 gctl_ro_param(r, "arg0", -1, gp->lg_name);
1394 if (strcmp(classp->lg_name, "PART") == 0)
1407 if (strcmp(classp->lg_name, "PART") != 0) {
1416 if (strcmp(gc->lg_name, "modified") == 0) {
1426 md = get_part_metadata(gp->lg_name, 0);
1432 md = get_part_metadata(pp->lg_name, 0);
1441 if (strcmp(cp->lg_geom->lg_class->lg_name,
1451 gctl_ro_param(r, "arg0", -1, gp->lg_name);