Home
last modified time | relevance | path

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

12

/f-stack/freebsd/contrib/openzfs/lib/libspl/os/linux/
H A Dgethostid.c36 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 Dmodule-setup.sh.in39 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 Dmmp.kshlib80 typeset hostid=$1
84 if [ $(hostid) != "$hostid" ]; then
156 typeset hostid=$2
159 log_must mmp_set_hostid $hostid
H A Dmmp_hostid.ksh65 log_must mv $HOSTID_FILE $mntpnt_etc/hostid
75 log_must ln -s $mntpnt_etc/hostid $HOSTID_FILE
H A Dmmp.cfg24 export HOSTID_FILE="/etc/hostid"
/f-stack/freebsd/contrib/openzfs/cmd/zgenhostid/
H A Dzgenhostid.c143 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 Dlibzfs_status.c231 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 Dlibzfs_pool.c1986 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 DREADME.dracut.markdown42 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 Dspl-generic.c640 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 Dspa_config.c402 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 Dspa.c591 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 Dif_epair.c737 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 Dkern_xxx.c101 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, in osethostid()
102 sizeof(uap->hostid), NULL, 0)); in osethostid()
H A Dkern_mib.c497 SYSCTL_PROC(_kern, KERN_HOSTID, hostid,
H A Dkern_jail.c3143 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 Dzutil_import.c473 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 Dpf.h198 uint32_t hostid; member
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/include/
H A Dcommands.cfg155 hostid
/f-stack/lib/
H A Dff_glue.c1181 getcredhostid(struct ucred *cred, unsigned long *hostid) in getcredhostid() argument
1183 *hostid = 0; in getcredhostid()
/f-stack/freebsd/netpfil/pf/
H A Dpf_ioctl.c323 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 Dpf.h227 uint32_t hostid; member
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_main.c2596 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 Dcvmx-sriomaintx-defs.h2355 uint32_t hostid : 16; /**< Primary 16-bit Device ID */ member
2357 uint32_t hostid : 16;
/f-stack/tools/compat/include/net/
H A Dpfvar.h843 uint32_t hostid; member

12