/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/ |
H A D | mmp.kshlib | 103 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 D | setup.ksh | 34 SunOS) hostid >/var/tmp/zfs_test_hostid.txt
|
H A D | mmp.cfg | 24 export HOSTID_FILE="/etc/hostid"
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | gethostid.c | 54 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 D | svc-hostid | 36 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 D | Makefile | 28 MANIFEST = hostid.xml 29 METHOD = svc-hostid
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | gethostid.c | 44 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 D | faulty.c | 202 hostid_t hostid; member 284 if (hostp->hostid.platform && in find_hostid_in_list() 285 strcmp(hostp->hostid.platform, platform) == 0 && 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() 288 (chassis == NULL || hostp->hostid.chassis == NULL || in find_hostid_in_list() 289 strcmp(chassis, hostp->hostid.chassis) == 0) && in find_hostid_in_list() 290 (product_sn == NULL || hostp->hostid.product_sn == NULL || in find_hostid_in_list() 291 strcmp(product_sn, hostp->hostid.product_sn) == 0) && in find_hostid_in_list() 292 (domain == NULL || hostp->hostid.domain == NULL || in find_hostid_in_list() [all …]
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_status.c | 212 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 D | sysdef.c | 202 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 D | ndmpd_config.c | 112 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 D | zutil_pool.c | 160 ulong_t hostid = strtoull(env, NULL, 16); in get_system_hostid() local 161 return (hostid & 0xFFFFFFFF); in get_system_hostid()
|
H A D | zutil_import.c | 488 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 D | spa_config.c | 368 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 D | filelist.safe | 8 etc/hostid
|
H A D | filelist.ramdisk | 20 etc/hostid
|
/illumos-gate/usr/src/cmd/hostid/ |
H A D | Makefile | 26 PROG= hostid
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | startup.c | 2820 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 D | Makefile | 105 hostid \
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 301 <TSTATE>hostid { return HOSTID; } 302 <CSTATE>hostid { return HOSTID; }
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | globals.cc | 178 long int hostid; variable
|
/illumos-gate/usr/src/cmd/ |
H A D | Makefile.check | 113 hostid/smf \
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | commands.cfg | 62 hostid
|
/illumos-gate/usr/src/contrib/bhyve/dev/nvme/ |
H A D | nvme.h | 1795 uint64_t hostid; /* Host Identifier */ member 1806 uint64_t hostid[2]; /* Host Identifier */ member 2315 s->ctrlr[i].hostid = le64toh(s->ctrlr[i].hostid); in nvme_resv_status_swapbytes() 2334 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 D | mptsas_var.h | 1231 #define MPTSAS_SET_HOST_ID(hostid) (hostid | ((1 << hostid) << 16)) argument
|