Home
last modified time | relevance | path

Searched refs:lg_name (Results 1 – 21 of 21) sorted by relevance

/freebsd/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c286 gpart_partition(const char *lg_name, const char *scheme) in gpart_partition() argument
323 gctl_ro_param(r, "arg0", -1, lg_name); in gpart_partition()
338 get_part_metadata(lg_name, 1)->bootcode = 1; in gpart_partition()
356 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_activate()
368 if (strcmp(gc->lg_name, "index") == 0) { in gpart_activate()
376 gctl_ro_param(r, "arg0", -1, pp->lg_geom->lg_name); in gpart_activate()
389 gpart_set_root(const char *lg_name, const char *attribute) in gpart_set_root() argument
396 gctl_ro_param(r, "arg0", -1, lg_name); in gpart_set_root()
425 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_bootcode()
453 gctl_ro_param(r, "arg0", -1, gp->lg_name); in gpart_bootcode()
[all …]
H A Dpart_wizard.c118 if (strcmp(classp->lg_name, "DISK") != 0 && in boot_disk_select()
119 strcmp(classp->lg_name, "RAID") != 0 && in boot_disk_select()
120 strcmp(classp->lg_name, "MD") != 0) in boot_disk_select()
130 if (strcmp(gc->lg_name, "type") == 0) in boot_disk_select()
132 if (strcmp(gc->lg_name, "descr") == 0) in boot_disk_select()
137 if (strcmp(classp->lg_name, "MD") == 0 && in boot_disk_select()
140 if (strncmp(pp->lg_name, "cd", 2) == 0) in boot_disk_select()
147 fd = g_open(pp->lg_name, 1); in boot_disk_select()
154 disks[n-1].name = pp->lg_name; in boot_disk_select()
157 if (strncmp(pp->lg_name, "ad", 2) == 0) in boot_disk_select()
[all …]
H A Dpartedit.c469 if (strcmp(classp->lg_name, "PART") == 0) in apply_workaround()
473 if (strcmp(classp->lg_name, "PART") != 0) { in apply_workaround()
482 if (strcmp(gc->lg_name, "scheme") == 0) { in apply_workaround()
484 } else if (strcmp(gc->lg_name, "modified") == 0) { in apply_workaround()
492 gpart_set_root(gp->lg_name, "lenovofix"); in apply_workaround()
494 gpart_set_root(gp->lg_name, "active"); in apply_workaround()
514 if (strcmp(classp->lg_name, "DISK") != 0 && in read_geom_mesh()
515 strcmp(classp->lg_name, "MD") != 0) in read_geom_mesh()
534 if (strcmp(gp->lg_class->lg_name, "PART") == 0 && in add_geom_children()
537 if (strcmp(gc->lg_name, "scheme") == 0) in add_geom_children()
[all …]
H A Dpartedit.h76 int gpart_partition(const char *lg_name, const char *scheme);
79 void gpart_set_root(const char *lg_name, const char *attribute);
H A Dscripted.c52 if (strcmp(pp->lg_name, name) == 0) in provider_for_name()
87 if (strcmp(classp->lg_name, "PART") == 0) in part_config()
91 if (strcmp(gpart->lg_name, disk) == 0) in part_config()
/freebsd/lib/libefivar/
H A Defivar-dp-xlate.c64 if (strcmp(conf->lg_name, attr) != 0) in geom_pp_attr()
83 if (strcasecmp(classp->lg_name, G_PART) == 0) in find_provider_by_efimedia()
117 if (strcmp(pp->lg_name, name) == 0) in find_provider_by_name()
220 if (strcmp(glabel->lg_name, G_LABEL) == 0) in efi_hd_to_unix()
238 if (strcmp(provider->lg_name, mnt[i].f_mntfromname + 5) == 0) { in efi_hd_to_unix()
239 newdev = provider->lg_name; in efi_hd_to_unix()
253 if (strcmp(gp->lg_name, provider->lg_name) != 0) { in efi_hd_to_unix()
257 if (strcmp(pp->lg_name, mnt[i].f_mntfromname + 5) == 0) { in efi_hd_to_unix()
258 newdev = pp->lg_name; in efi_hd_to_unix()
272 newdev = provider->lg_name; in efi_hd_to_unix()
[all …]
/freebsd/sbin/geom/core/
H A Dgeom.c679 if (strcmp(pp->lg_name, name) == 0) in find_geom_by_provider()
697 max_width = width = indent + strlen(gp->lg_name); in compute_tree_width_geom()
750 width - indent, width - indent, gp->lg_name, in show_tree_geom()
751 GEOM_CLASS_WIDTH, GEOM_CLASS_WIDTH, gp->lg_class->lg_name); in show_tree_geom()
757 width - indent, width - indent, gp->lg_name, in show_tree_geom()
758 GEOM_CLASS_WIDTH, GEOM_CLASS_WIDTH, gp->lg_class->lg_name, in show_tree_geom()
759 pp->lg_name); in show_tree_geom()
863 if (strcmp(classp->lg_name, name) == 0) in find_class()
878 if (strcmp(gp->lg_name, name) == 0) in find_geom()
890 printf("Name: %s\n", pp->lg_name); in list_one_provider()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_partition_tbl.c355 if (strcmp(classp->lg_name, name) == 0) in find_class()
373 if (strcmp(gp->lg_name, disk_dev_name) != 0) in get_mbr()
381 if (conf->lg_name == NULL || in get_mbr()
383 strcmp(conf->lg_name, "type") != 0) in get_mbr()
395 HRDBG("-> MBR PROVIDER Name: %s", pp->lg_name); in get_mbr()
401 conf->lg_name, conf->lg_val); in get_mbr()
403 handle_chunk(ds_index, pp->lg_name, in get_mbr()
424 if (strncmp(gp->lg_name, disk_dev_name, in get_bsd_sun()
429 if (pp->lg_name == NULL) in get_bsd_sun()
431 handle_chunk(ds_index, pp->lg_name, pp->lg_mediasize); in get_bsd_sun()
/freebsd/lib/geom/part/
H A Dgeom_part.c202 if (strcmp(classp->lg_name, name) == 0) in find_class()
217 if (strcmp(gp->lg_name, name) != 0) in find_geom()
233 if (!strcmp(gc->lg_name, "wither")) in geom_is_withered()
245 if (!strcmp(gc->lg_name, cfg)) in find_geomcfg()
257 if (!strcmp(gc->lg_name, cfg)) in find_provcfg()
306 if (strcmp(gc->lg_name, "attrib") != 0) in fmtattrib()
388 gp->lg_name); in gpart_autofill_resize()
541 gp->lg_name); in gpart_autofill()
546 gp->lg_name); in gpart_autofill()
634 errx(EXIT_FAILURE, "Scheme not found for geom %s", gp->lg_name); in gpart_show_geom()
[all …]
/freebsd/lib/libgeom/
H A Dlibgeom.h89 char *lg_name; member
95 char *lg_name; member
104 char *lg_name; member
124 char *lg_name; member
H A Dgeom_xml2tree.c215 mt->provider->lg_name = p; in EndElement()
218 mt->geom->lg_name = p; in EndElement()
221 mt->class->lg_name = p; in EndElement()
282 gc->lg_name = strdup(name); in EndElement()
283 if (gc->lg_name == NULL) { in EndElement()
503 free(cf->lg_name); in delete_config()
525 if (cl->lg_name) free(cl->lg_name); in geom_deletetree()
532 if (ge->lg_name) free(ge->lg_name); in geom_deletetree()
539 if (pr->lg_name) free(pr->lg_name); in geom_deletetree()
H A Dgeom_util.c236 fd = g_open(pp->lg_name, dowrite); in g_open_by_ident()
249 if (name != NULL && strlcpy(name, pp->lg_name, in g_open_by_ident()
/freebsd/sbin/ggate/shared/
H A Dggate.c316 if (strcmp(class->lg_name, name) == 0) in find_class()
328 if (strcmp(conf->lg_name, name) == 0) in get_conf()
344 printf("%s\n", pp->lg_name); in show_config()
347 printf(" NAME: %s\n", pp->lg_name); in show_config()
384 if (unit != -1 && strcmp(gp->lg_name, name) != 0) in g_gate_list()
/freebsd/sbin/mdconfig/
H A Dmdconfig.c528 if (strcmp(gcl->lg_name, CLASS_NAME_MD) != 0) in md_list()
531 retcode = md_find(units, pp->lg_name); in md_list()
549 if (nflag && strncmp(pp->lg_name, MD_NAME, 2) == 0) in md_list()
550 printf("%s", pp->lg_name + 2); in md_list()
552 printf("%s", pp->lg_name); in md_list()
567 print_options(pp->lg_name, file); in md_list()
604 if (strcmp(gce->lg_name, name) == 0) in geom_config_get()
/freebsd/usr.sbin/gstat/
H A Dgstat.c337 if ((regexec(&f_re, pp->lg_name, 0, NULL, 0) in main()
388 pp->lg_name); in main()
393 cp->lg_geom->lg_class->lg_name, in main()
394 cp->lg_geom->lg_name, in main()
395 cp->lg_provider->lg_name); in main()
/freebsd/sys/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_import_os.c214 if (skip_zvols && strcmp(mp->lg_name, "ZFS::ZVOL") == 0) in zpool_find_import_blkid()
218 strlcpy(end, pp->lg_name, pathleft); in zpool_find_import_blkid()
/freebsd/lib/geom/mirror/
H A Dgeom_mirror.c412 if (strcmp(classp->lg_name, name) == 0) in find_class()
424 if (strcmp(gp->lg_name, name) == 0) in find_geom()
484 pp->lg_name); in mirror_resize()
/freebsd/cddl/usr.sbin/zfsd/
H A Dzfsd.cc287 string evString(evStart + pp->lg_name + "\n"); in RescanSystem()
/freebsd/usr.sbin/boot0cfg/
H A Dboot0cfg.c358 if (strcmp(class->lg_name, name) == 0) { in geom_class_available()
/freebsd/sbin/fdisk/
H A Dfdisk.c782 if (strcmp(class->lg_name, name) == 0) { in geom_class_available()
/freebsd/sbin/bsdlabel/
H A Dbsdlabel.c358 if (strcmp(class->lg_name, name) == 0) { in geom_class_available()