| /f-stack/freebsd/contrib/openzfs/lib/libspl/os/linux/ |
| H A D | gethostid.c | 36 unsigned long hostid; in get_spl_hostid() local 44 hostid = strtoull(env, NULL, 0); in get_spl_hostid() 45 return (hostid & HOSTID_MASK); in get_spl_hostid() 52 if (fscanf(f, "%lu", &hostid) != 1) in get_spl_hostid() 53 hostid = 0; in get_spl_hostid() 57 return (hostid & HOSTID_MASK); in get_spl_hostid() 74 unsigned long hostid; in get_system_hostid() local 79 rc = read(fd, &hostid, hostid_size); in get_system_hostid() 81 system_hostid = (hostid & HOSTID_MASK); in get_system_hostid()
|
| /f-stack/freebsd/contrib/openzfs/contrib/dracut/90zfs/ |
| H A D | module-setup.sh.in | 39 dracut_install hostid 88 if [ -f @sysconfdir@/hostid ]; then 89 inst @sysconfdir@/hostid 90 type mark_hostonly >/dev/null 2>&1 && mark_hostonly @sysconfdir@/hostid 93 type mark_hostonly >/dev/null 2>&1 && mark_hostonly @sysconfdir@/hostid
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp.kshlib | 80 typeset hostid=$1 84 if [ $(hostid) != "$hostid" ]; then 156 typeset hostid=$2 159 log_must mmp_set_hostid $hostid
|
| H A D | mmp_hostid.ksh | 65 log_must mv $HOSTID_FILE $mntpnt_etc/hostid 75 log_must ln -s $mntpnt_etc/hostid $HOSTID_FILE
|
| H A D | mmp.cfg | 24 export HOSTID_FILE="/etc/hostid"
|
| /f-stack/freebsd/contrib/openzfs/cmd/zgenhostid/ |
| H A D | zgenhostid.c | 143 uint32_t hostid = input_i; in main() local 144 int written = fwrite(&hostid, 1, 4, fp); in main()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_status.c | 231 uint64_t hostid = 0; in check_status() local 319 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in check_status() 320 if (hostid != 0 && (unsigned long)hostid != system_hostid && in check_status()
|
| H A D | libzfs_pool.c | 1986 uint64_t hostid = 0; in zpool_import_props() local 1999 hostid = fnvlist_lookup_uint64(nvinfo, in zpool_import_props() 2008 hostname, (unsigned long) hostid); in zpool_import_props()
|
| /f-stack/freebsd/contrib/openzfs/contrib/dracut/ |
| H A D | README.dracut.markdown | 42 by the zfs module. This can save you a trip to a bootcd if hostid has 48 * `spl_hostid`: By default, the hostid used by the SPL module is read from 49 /etc/hostid inside the initramfs. This file is placed there from the host 51 host which builds it. If a different hostid is desired, one may be set in 53 format should be hex exactly as found in the `/etc/hostid` file, IE 56 Note that changing the hostid between boots will most likely lead to an 57 un-importable pool since the last importing hostid won't match. In order 60 before rebooting with the new hostid. 93 and z* programs. Also triggers inclusion of `/etc/hostid` and the zpool 134 Currently this file also includes `/etc/hostid` and `/etc/zfs/zpool.cache` [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-generic.c | 640 hostid_read(uint32_t *hostid) in hostid_read() argument 677 *hostid = (value & HW_HOSTID_MASK); in hostid_read() 690 uint32_t hostid; in zone_get_hostid() local 697 if (hostid_read(&hostid) == 0) in zone_get_hostid() 698 return (hostid); in zone_get_hostid()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | spa_config.c | 402 unsigned long hostid = 0; in spa_config_generate() local 450 hostid = spa_get_hostid(spa); in spa_config_generate() 451 if (hostid != 0) in spa_config_generate() 452 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid); in spa_config_generate()
|
| H A D | spa.c | 591 uint32_t hostid = zone_get_hostid(NULL); in spa_prop_validate() local 592 if (hostid) in spa_prop_validate() 593 spa->spa_hostid = hostid; in spa_prop_validate() 2934 uint64_t hostid = 0; in spa_activity_check_required() local 2985 if (hostid == spa_get_hostid(spa)) in spa_activity_check_required() 3166 uint64_t hostid = 0; in spa_activity_check() local 3180 ZPOOL_CONFIG_MMP_HOSTID, hostid); in spa_activity_check() 3201 uint64_t hostid; in spa_verify_host() local 3206 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { in spa_verify_host() 3212 if (hostid != 0 && myhostid != 0 && hostid != myhostid) { in spa_verify_host() [all …]
|
| /f-stack/freebsd/net/ |
| H A D | if_epair.c | 737 uint64_t hostid; in epair_clone_create() local 851 getcredhostid(curthread->td_ucred, (unsigned long *)&hostid); in epair_clone_create() 852 if (hostid == 0) in epair_clone_create() 853 arc4rand(&hostid, sizeof(hostid), 0); in epair_clone_create() 861 key[1] = (uint32_t)(hostid & 0xffffffff); in epair_clone_create() 862 key[2] = (uint32_t)((hostid >> 32) & 0xfffffffff); in epair_clone_create()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_xxx.c | 101 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, in osethostid() 102 sizeof(uap->hostid), NULL, 0)); in osethostid()
|
| H A D | kern_mib.c | 497 SYSCTL_PROC(_kern, KERN_HOSTID, hostid,
|
| H A D | kern_jail.c | 3143 getcredhostid(struct ucred *cred, unsigned long *hostid) in getcredhostid() argument 3147 *hostid = cred->cr_prison->pr_hostid; in getcredhostid() 4007 SYSCTL_JAIL_PARAM(_host, hostid, CTLTYPE_ULONG | CTLFLAG_RW,
|
| /f-stack/freebsd/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_import.c | 473 uint64_t hostid; in get_configs() local 584 hostid = 0; in get_configs() 586 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { in get_configs() 588 ZPOOL_CONFIG_HOSTID, hostid); in get_configs() 835 if (hostid != 0) { in get_configs() 837 hostid) == 0); in get_configs()
|
| /f-stack/tools/compat/include/netpfil/pf/ |
| H A D | pf.h | 198 uint32_t hostid; member
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/include/ |
| H A D | commands.cfg | 155 hostid
|
| /f-stack/lib/ |
| H A D | ff_glue.c | 1181 getcredhostid(struct ucred *cred, unsigned long *hostid) in getcredhostid() argument 1183 *hostid = 0; in getcredhostid()
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_ioctl.c | 323 V_pf_status.hostid = arc4random(); in pfattach_vnet() 2353 V_pfsync_clear_states_ptr(V_pf_status.hostid, psk->psk_ifname); in pfioctl() 2367 psk->psk_pfcmp.creatorid = V_pf_status.hostid; in pfioctl() 2517 s->hostid = V_pf_status.hostid; in pfioctl() 4130 u_int32_t *hostid = (u_int32_t *)addr; in pfioctl() local 4133 if (*hostid == 0) in pfioctl() 4134 V_pf_status.hostid = arc4random(); in pfioctl() 4136 V_pf_status.hostid = *hostid; in pfioctl()
|
| H A D | pf.h | 227 uint32_t hostid; member
|
| /f-stack/freebsd/contrib/openzfs/cmd/zpool/ |
| H A D | zpool_main.c | 2596 uint64_t hostid = 0; in show_import() local 2874 hostid = fnvlist_lookup_uint64(nvinfo, in show_import() 2880 (unsigned long) hostid); in show_import() 2942 uint64_t hostid = 0; in zfs_force_import_required() local 2946 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in zfs_force_import_required() 2996 uint64_t hostid = 0; in do_import() local 3003 hostid = fnvlist_lookup_uint64(nvinfo, in do_import() 3010 name, hostname, (unsigned long) hostid); in do_import() 3019 uint64_t hostid = 0; in do_import() local 3030 hostid = fnvlist_lookup_uint64(config, in do_import() [all …]
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-sriomaintx-defs.h | 2355 uint32_t hostid : 16; /**< Primary 16-bit Device ID */ member 2357 uint32_t hostid : 16;
|
| /f-stack/tools/compat/include/net/ |
| H A D | pfvar.h | 843 uint32_t hostid; member
|