Searched defs:hostid (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgethostid.c44 unsigned long hostid; local
52 hostid = strtoul(name, &end, 10);
55 return ((long)hostid);
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dgethostid.c56 unsigned long hostid; local
68 hostid = strtoul(name, &end, 10);
69 if (hostid == 0 && end == name) {
72 return ((long) hostid);
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c112 ulong_t hostid; local
130 * Convert the hostid to hex. The returned string must match
131 * the string returned by hostid(1).
133 hostid = strtoul(hostidstr, 0, 0);
134 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid);
135 reply.hostid = hostidstr;
295 ulong_t hostid; local
315 * Convert the hostid to hex. The returned string must match
316 * the string returned by hostid(1).
318 hostid
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c211 uint64_t hostid = 0; local
256 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
257 if (hostid != 0 && (unsigned long)hostid != system_hostid &&
H A Dlibzfs_util.c1632 * Allow the hostid to be subverted for testing.
1636 ulong_t hostid = strtoull(env, NULL, 16); local
1637 return (hostid & 0xFFFFFFFF);
H A Dlibzfs_import.c427 uint64_t hostid; local
510 * hostid (if available)
539 hostid = 0;
541 ZPOOL_CONFIG_HOSTID, &hostid) == 0) {
543 ZPOOL_CONFIG_HOSTID, hostid);
790 if (hostid != 0) {
792 hostid) == 0);
H A Dlibzfs_pool.c687 "requires a non-zero system hostid"));
1930 uint64_t hostid = 0; local
1943 hostid = fnvlist_lookup_uint64(nvinfo,
1949 "orted on host '%s' (hostid=%lx).\n"
1952 hostname, (unsigned long) hostid);
1957 "the\nsystem's hostid is not "
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c367 unsigned long hostid = 0; local
417 hostid = spa_get_hostid();
418 if (hostid != 0) {
419 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);
H A Dspa.c2429 uint64_t hostid = 0; local
2474 * on the same host which last imported it. Since the hostid from
2478 hostid = fnvlist_lookup_uint64(label, ZPOOL_CONFIG_HOSTID);
2480 if (hostid == spa_get_hostid())
2648 * spa->spa_load_info nvlist. If the remote hostname or hostid are
2654 * ZPOOL_CONFIG_MMP_HOSTID - hostid from the active pool
2658 uint64_t hostid = 0; local
2669 hostid = fnvlist_lookup_uint64(mmp_label,
2672 ZPOOL_CONFIG_MMP_HOSTID, hostid);
2693 uint64_t hostid; local
[all...]
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c98 int hostidf = 0; /* 0 == print hostid with other info, */
99 /* 1 == print just the hostid */
204 char hostid[256], *end; local
239 * Prints hostid of machine.
241 if (sysinfo(SI_HW_SERIAL, hostid, sizeof (hostid)) == -1) {
242 fprintf(stderr, "hostid: sysinfo failed\n");
245 hostval = strtoul(hostid, &end, 10);
246 if (hostval == 0 && end == hostid) {
247 fprintf(stderr, "hostid
[all...]
/illumos-gate/usr/src/cmd/make/bin/
H A Dglobals.cc178 long int hostid; variable
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c201 hostid_t hostid; member in struct:host_id_list
283 if (hostp->hostid.platform &&
284 strcmp(hostp->hostid.platform, platform) == 0 &&
285 hostp->hostid.server &&
286 strcmp(hostp->hostid.server, server) == 0 &&
287 (chassis == NULL || hostp->hostid.chassis == NULL ||
288 strcmp(chassis, hostp->hostid.chassis) == 0) &&
289 (product_sn == NULL || hostp->hostid.product_sn == NULL ||
290 strcmp(product_sn, hostp->hostid.product_sn) == 0) &&
291 (domain == NULL || hostp->hostid
504 new_record_init(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected) argument
685 catalog_new_record(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected, boolean_t dummy_fru) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dstartup.c162 static char hostid_file[] = "/etc/hostid";
1756 * Originally clconf_init() apparently needed the hostid. But
1758 * By placing the hostid logic here, we are able to make use of
1762 cmn_err(CE_WARN, "Unable to set hostid");
2382 * for reading the hostid from the legacy file (/kernel/misc/sysinit).
2874 * to set one based on the contents of /etc/hostid. If this file does
2875 * not exist, assume that we are to generate a new hostid and set
2880 * /etc/hostid does not exist, we will attempt to get a serial number
2888 * In an attempt to make the hostid less prone to abuse
2889 * (for license circumvention, etc), we store it in /etc/hostid
2966 int32_t hostid = (int32_t)HW_INVALID_HOSTID; local
[all...]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dvplat.c4561 * Sets the hostid of the new zone based on its configured value. The zone's
4574 unsigned int hostid; local
4581 report_prop_err(zlogp, "hostid", hostidp, res);
4585 hostid = (unsigned int)strtoul(hostidp, NULL, 16);
4586 if ((res = zone_setattr(zoneid, ZONE_ATTR_HOSTID, &hostid,
4587 sizeof (hostid))) != 0) {
4589 "zone hostid is not valid: %s: %d", hostidp, res);
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_main.c2095 uint64_t hostid = 0; local
2194 "when the system hostid is not set.\n"));
2340 hostid = fnvlist_lookup_uint64(nvinfo,
2344 "exported from %s (hostid=%lx)\n\tbefore it "
2346 (unsigned long) hostid);
2350 "svc:/system/hostid service.\n"));
2405 uint64_t hostid = 0; local
2409 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
2411 if (state != POOL_STATE_EXPORTED && hostid != get_system_hostid())
2459 uint64_t hostid local
2481 uint64_t hostid = 0; local
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_if.c17402 ulong_t hostid; local
17408 (void) ddi_strtoul(hw_serial, NULL, 10, &hostid);
17409 ic.ic_hostid = htonl((uint32_t)hostid);
/illumos-gate/usr/src/uts/common/os/
H A Dsunddi.c7823 uint32_t hostid; local
7837 hostid = zone_get_hostid(NULL);
7838 *cp++ = hibyte(hiword(hostid));
7839 *cp++ = lobyte(hiword(hostid));
7840 *cp++ = hibyte(loword(hostid));
7841 *cp++ = lobyte(loword(hostid));

Completed in 451 milliseconds