/netbsd/sys/dev/dkwedge/ |
H A D | dkwedge_gpt.c | 262 strlcpy(dkw.dkw_wname, ent_guid_str, sizeof(dkw.dkw_wname)); in dkwedge_discover_gpt() 264 c = dkw.dkw_wname; in dkwedge_discover_gpt() 265 r = sizeof(dkw.dkw_wname) - 1; in dkwedge_discover_gpt() 281 strcmp(dkw.dkw_wname, ent_guid_str) != 0) { in dkwedge_discover_gpt() 282 char orig[sizeof(dkw.dkw_wname)]; in dkwedge_discover_gpt() 283 strlcpy(orig, dkw.dkw_wname, sizeof(orig)); in dkwedge_discover_gpt() 284 strlcpy(dkw.dkw_wname, ent_guid_str, sizeof(dkw.dkw_wname)); in dkwedge_discover_gpt() 294 dkw.dkw_wname); in dkwedge_discover_gpt()
|
H A D | dkwedge_bsdlabel.c | 253 snprintf((char *)&dkw.dkw_wname, sizeof(dkw.dkw_wname), in addwedges() 254 "%.*s/%c", (int)sizeof(dkw.dkw_wname)-3, in addwedges() 257 snprintf((char *)&dkw.dkw_wname, sizeof(dkw.dkw_wname), in addwedges() 265 a->pdk->dk_name, dkw.dkw_wname); in addwedges()
|
H A D | dkwedge_rdb.c | 245 strlcpy(dkw.dkw_wname, pbp->partname + 1, in dkwedge_discover_rdb() 246 sizeof(dkw.dkw_wname)); in dkwedge_discover_rdb() 262 pdk->dk_name, dkw.dkw_wname); in dkwedge_discover_rdb() 265 pdk->dk_name, error, dkw.dkw_wname); in dkwedge_discover_rdb()
|
H A D | dkwedge_mbr.c | 143 snprintf(dkw.dkw_wname, sizeof(dkw.dkw_wname), in getparts() 151 a->pdk->dk_name, dkw.dkw_wname); in getparts()
|
H A D | dkwedge_apple.c | 226 strlcpy(dkw.dkw_wname, ae->pmPartName, sizeof(dkw.dkw_wname)); in dkwedge_discover_apple() 231 pdk->dk_name, dkw.dkw_wname); in dkwedge_discover_apple()
|
H A D | dk.c | 452 if (strcmp(lsc->sc_wname, dkw->dkw_wname) != 0) in dkwedge_add() 480 memcpy(sc->sc_wname, dkw->dkw_wname, sizeof(sc->sc_wname)); in dkwedge_add() 893 memcpy(dkw.dkw_wname, sc->sc_wname, sizeof(dkw.dkw_wname)); in dkwedge_list() 894 dkw.dkw_wname[sizeof(dkw.dkw_wname) - 1] = '\0'; in dkwedge_list() 1776 memcpy(dkw->dkw_wname, sc->sc_wname, sizeof(dkw->dkw_wname)); in dkioctl() 1777 dkw->dkw_wname[sizeof(dkw->dkw_wname) - 1] = '\0'; in dkioctl()
|
/netbsd/sbin/dkctl/ |
H A D | dkctl.c | 557 if (strlcpy((char *)dkw.dkw_wname, argv[1], sizeof(dkw.dkw_wname)) >= in disk_addwedge() 558 sizeof(dkw.dkw_wname)) in disk_addwedge() 560 sizeof(dkw.dkw_wname) - 1); in disk_addwedge() 623 dkw.dkw_wname); /* XXX Unicode */ in disk_getwedgeinfo() 697 dkw[i].dkw_wname, /* XXX Unicode */ in disk_listwedges()
|
/netbsd/sys/dev/altmem/ |
H A D | altmem.c | 193 strlcpy(dkw->dkw_wname, "altmem", sizeof(dkw->dkw_wname)); in altmemioctl()
|
/netbsd/sbin/dkscan_bsdlabel/ |
H A D | dkscan_util.c | 83 dkw->dkw_wname, dkw->dkw_ptype, dkw->dkw_offset, dkw->dkw_size); in dkwedge_add()
|
/netbsd/usr.sbin/sysinst/ |
H A D | gpt.c | 1413 strlcpy((char*)&dkw.dkw_wname, p->gp_id, sizeof(dkw.dkw_wname)); in gpt_add_wedge() 1416 if (dkw.dkw_wname[0] == 0) { in gpt_add_wedge() 1418 strlcpy((char*)&dkw.dkw_wname, in gpt_add_wedge() 1419 p->gp_label, sizeof(dkw.dkw_wname)); in gpt_add_wedge() 1421 if (dkw.dkw_wname[0] == 0) { in gpt_add_wedge() 1422 snprintf((char*)dkw.dkw_wname, sizeof dkw.dkw_wname, in gpt_add_wedge()
|
H A D | disks.c | 494 dkw.dkw_wname, dkw.dkw_devname, dkw.dkw_parent); in get_wedge_descr() 505 strcpy(name, (const char *)dkw.dkw_wname); in get_name_and_parent() 525 strcpy(swap_name, (const char*)dkw[i].dkw_wname); in find_swap_part_on()
|
H A D | mbr.c | 3004 snprintf((char*)dkw.dkw_wname, sizeof dkw.dkw_wname, in add_wedge()
|
/netbsd/sys/kern/ |
H A D | subr_disk_open.c | 161 dkw->dkw_wname[0] = '\0'; in getdiskinfo()
|
/netbsd/lib/libutil/ |
H A D | getfsspecname.c | 152 if (strcmp(vname, (char *)dkw.dkw_wname) == 0) { in getfsspecname()
|
/netbsd/sys/sys/ |
H A D | disk.h | 159 uint8_t dkw_wname[128]; /* wedge name (Unicode, UTF-8) */ member
|
/netbsd/sys/dev/dm/ |
H A D | device-mapper.c | 496 strlcpy(dkw->dkw_wname, dmv->name, DM_NAME_LEN); in disk_ioctl_switch()
|
/netbsd/sys/miscfs/specfs/ |
H A D | spec_vnops.c | 588 strlcpy(mp->mnt_stat.f_mntfromlabel, dkw.dkw_wname, in spec_node_setmountedfs()
|