Home
last modified time | relevance | path

Searched refs:hostid (Results 1 – 25 of 43) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/
H A Dmmp.kshlib103 typeset hostid=$1
107 a=${hostid:6:2}
108 b=${hostid:4:2}
109 c=${hostid:2:2}
110 d=${hostid:0:2}
114 if [ $(hostid) != "$hostid" ]; then
125 typeset dec=$(mdb -e "$hostid=E" | sed -e 's/ *//g')
209 typeset hostid=$2
211 log_must mmp_set_hostid $hostid
H A Dsetup.ksh34 SunOS) hostid >/var/tmp/zfs_test_hostid.txt
H A Dmmp.cfg24 export HOSTID_FILE="/etc/hostid"
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dgethostid.c54 unsigned long hostid; in gethostid() local
66 hostid = strtoul(name, &end, 10); in gethostid()
67 if (hostid == 0 && end == name) { in gethostid()
70 return ((long) hostid); in gethostid()
/illumos-gate/usr/src/cmd/hostid/smf/
H A Dsvc-hostid36 if [ -f /etc/hostid ]; then
39 host=`/usr/bin/hostid`
40 echo "# DO NOT EDIT" > /etc/hostid
42 printf "\"%s\"\n" $r >> /etc/hostid
H A DMakefile28 MANIFEST = hostid.xml
29 METHOD = svc-hostid
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgethostid.c44 unsigned long hostid; in gethostid() local
52 hostid = strtoul(name, &end, 10); in gethostid()
55 return ((long)hostid); in gethostid()
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c202 hostid_t hostid; member
284 if (hostp->hostid.platform && in find_hostid_in_list()
286 hostp->hostid.server && in find_hostid_in_list()
287 strcmp(hostp->hostid.server, server) == 0 && in find_hostid_in_list()
294 rt = &hostp->hostid; in find_hostid_in_list()
301 hostp->hostid.platform = strdup(platform); in find_hostid_in_list()
302 hostp->hostid.product_sn = in find_hostid_in_list()
304 hostp->hostid.server = strdup(server); in find_hostid_in_list()
309 rt = &hostp->hostid; in find_hostid_in_list()
508 hostid_t *hostid, boolean_t injected) in new_record_init() argument
[all …]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c212 uint64_t hostid = 0; in check_status() local
257 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in check_status()
258 if (hostid != 0 && (unsigned long)hostid != system_hostid && in check_status()
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c202 char hostid[256], *end; in main() local
239 if (sysinfo(SI_HW_SERIAL, hostid, sizeof (hostid)) == -1) { in main()
243 hostval = strtoul(hostid, &end, 10); in main()
244 if (hostval == 0 && end == hostid) { in main()
246 "sysinfo not numeric: \"%s\"\n", hostid); in main()
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c112 ulong_t hostid; in ndmpd_config_get_host_info_v2() local
133 hostid = strtoul(hostidstr, 0, 0); in ndmpd_config_get_host_info_v2()
134 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid); in ndmpd_config_get_host_info_v2()
135 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v2()
295 ulong_t hostid; in ndmpd_config_get_host_info_v3() local
318 hostid = strtoul(hostidstr, 0, 0); in ndmpd_config_get_host_info_v3()
319 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid); in ndmpd_config_get_host_info_v3()
320 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v3()
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_pool.c160 ulong_t hostid = strtoull(env, NULL, 16); in get_system_hostid() local
161 return (hostid & 0xFFFFFFFF); in get_system_hostid()
H A Dzutil_import.c488 uint64_t hostid; in get_configs() local
600 hostid = 0; in get_configs()
602 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { in get_configs()
604 ZPOOL_CONFIG_HOSTID, hostid); in get_configs()
851 if (hostid != 0) { in get_configs()
853 hostid) == 0); in get_configs()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c368 unsigned long hostid = 0; in spa_config_generate() local
418 hostid = spa_get_hostid(); in spa_config_generate()
419 if (hostid != 0) { in spa_config_generate()
420 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid); in spa_config_generate()
/illumos-gate/usr/src/cmd/boot/filelist/i386/
H A Dfilelist.safe8 etc/hostid
H A Dfilelist.ramdisk20 etc/hostid
/illumos-gate/usr/src/cmd/hostid/
H A DMakefile26 PROG= hostid
/illumos-gate/usr/src/uts/i86pc/os/
H A Dstartup.c2820 int32_t hostid = (int32_t)HW_INVALID_HOSTID; in set_soft_hostid() local
2840 hostid = (int32_t)atoi(hw_serial); in set_soft_hostid()
2848 if ((hostid == HW_INVALID_HOSTID) && in set_soft_hostid()
2853 hostid = uuid_to_hostid(smsys.smbs_uuid); in set_soft_hostid()
2861 if (hostid == HW_INVALID_HOSTID) { in set_soft_hostid()
2862 hostid = tsc_read() & 0x0CFFFFF; in set_soft_hostid()
2898 hostid = (int32_t)tmp; in set_soft_hostid()
2912 if (hostid == HW_INVALID_HOSTID) /* didn't find a hostid */ in set_soft_hostid()
2923 return (hostid); in set_soft_hostid()
/illumos-gate/usr/src/ucbcmd/
H A DMakefile105 hostid \
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l301 <TSTATE>hostid { return HOSTID; }
302 <CSTATE>hostid { return HOSTID; }
/illumos-gate/usr/src/cmd/make/bin/
H A Dglobals.cc178 long int hostid; variable
/illumos-gate/usr/src/cmd/
H A DMakefile.check113 hostid/smf \
/illumos-gate/usr/src/test/zfs-tests/include/
H A Dcommands.cfg62 hostid
/illumos-gate/usr/src/contrib/bhyve/dev/nvme/
H A Dnvme.h1543 uint64_t hostid; /* Host Identifier */ member
1554 uint64_t hostid[2]; /* Host Identifier */ member
2088 s->ctrlr[i].hostid = le64toh(s->ctrlr[i].hostid); in nvme_resv_status_swapbytes()
2107 nvme_le128toh((void *)s->ctrlr[i].hostid); in nvme_resv_status_ext_swapbytes()
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_var.h1222 #define MPTSAS_SET_HOST_ID(hostid) (hostid | ((1 << hostid) << 16)) argument

12