/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy_draid_damaged1.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 35 # introduce additional unrecoverable damage. 40 # - create draid pool 41 # - fill it with some directories/files 42 # - overwrite the maximum number of repairable devices 43 # - sequentially resilver each overwritten device one at a time; 47 # - verify that only the resilvering devices had invalid data 49 # - destroy the draid pool [all …]
|
H A D | redundancy_raidz.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 40 # - create raidz pool 41 # - fill it with some directories/files 42 # - verify self-healing by overwriting devices 43 # - verify resilver by replacing devices 44 # - verify scrub by zeroing devices 45 # - destroy the raidz pool 47 typeset -r devs=6 [all …]
|
H A D | redundancy_draid.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 40 # - create draid pool 41 # - fill it with some directories/files 42 # - verify self-healing by overwriting devices 43 # - verify resilver by replacing devices 44 # - verify scrub by zeroing devices 45 # - destroy the draid pool 47 typeset -r devs=6 [all …]
|
/freebsd/usr.sbin/bsdconfig/share/media/ |
H A D | ufs.subr | 3 # Copyright (c) 2012-2013 Devin Teske 58 # However, other forms may be valid (see mount(8) for additional 67 local devs ndevs 68 f_device_find "" $DEVICE_TYPE_UFS devs 69 f_count ndevs $devs 71 if [ ${ndevs:=0} -eq 0 ]; then 78 fstype=$( df -nT $ufs 2> /dev/null | 82 device_ufs set name ${fstype:-ufs} 91 elif [ $ndevs -eq 1 ]; then 92 f_struct_copy $devs device_media [all …]
|
H A D | wlan.subr | 3 # Copyright (c) 2013-2016 Devin Teske 128 " # END-QUOTE 162 f_eval_catch -k tmpfile $funcname mktemp 'mktemp -t "%s"' "$pgm" || 174 cat <<-EOF >> "$tmpfile" 189 # (see struct.subr for additional details) named `{struct_prefix}defaults'. See 197 # If a `blob-base64-*={ ... }' entry appears, a struct named 212 if [ ! -e "$file" ]; then 220 -v count_var="$count_var" \ 221 -v struct_prefix="$struct_prefix" \ 222 -v list_properties="$list_properties" ' [all …]
|
H A D | tcpip.subr | 3 # Copyright (c) 2012-2013 Devin Teske 91 # Returns zero if the given argument (a fully-qualified hostname) is compliant 92 # with standards set-forth in RFC's 952 and 1123 of the Network Working Group: 94 # RFC 952 - DoD Internet host table specification 97 # RFC 1123 - Requirements for Internet Hosts - Application and Support 124 [ ${#fqhn} -gt 255 ] && return 255 129 [ ${#label} -gt 63 ] && return 63 135 case "$label" in -*|*-) return 2; esac 138 case "$label" in *[!0-9a-zA-Z-]*) return 1; esac 146 # Convert an IPv4 address or mask from dotted-quad notation (e.g., `127.0.0.1' [all …]
|
/freebsd/usr.sbin/bsdconfig/networking/share/ |
H A D | device.subr | 3 # Copyright (c) 2006-2016 Devin Teske 62 # and non-NULL, initially highlight $default interface. 78 local dev devs if iflist= # Calculated below 80 f_device_find "" $DEVICE_TYPE_NETWORK devs 81 for dev in $devs; do 85 lo[0-9]*|ppp[0-9]*|sl[0-9]*) continue ;; 145 --title \"\$DIALOG_TITLE\" \ 146 --backtitle \"\$DIALOG_BACKTITLE\" \ 147 --hline \"\$hline\" \ 148 --ok-label \"\$msg_ok\" \ [all …]
|
/freebsd/sys/conf/ |
H A D | kmod.mk | 7 # CLEANFILES Additional files to remove for the clean and cleandir targets. 29 # loaded [/sbin/kldstat -q -n] 72 KMODISLOADED?= /sbin/kldstat -q -n 75 XARGS_J?= -J 89 .if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) 90 CFLAGS+= -fno-strict-aliasing 92 WERROR?= -Werror 111 -I${SYSDIR}/compat/linuxkpi/common/include \ 112 -I${SYSDIR}/compat/linuxkpi/dummy/include \ 113 -include ${SYSDIR}/compat/linuxkpi/common/include/linux/kconfig.h [all …]
|
/freebsd/usr.sbin/usbconfig/ |
H A D | dump.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 59 #define DUMP0(n,type,field,...) dump_field(pdev, " ", #field, n->field); 60 #define DUMP0L(n,type,field,...) dump_fieldl(pdev, " ", #field, n->field); 61 #define DUMP1(n,type,field,...) dump_field(pdev, " ", #field, n->field); 62 #define DUMP2(n,type,field,...) dump_field(pdev, " ", #field, n->field); 63 #define DUMP3(n,type,field,...) dump_field(pdev, " ", #field, n->field); 73 STAILQ_HEAD(,usb_product_info) devs; 100 return ("VARIABLE (52-480Mbps)"); in dump_speed() 168 printf(" <ASYNC-ISOCHRONOUS>\n"); in _dump_field() [all …]
|
/freebsd/usr.sbin/bsdconfig/share/ |
H A D | device.subr | 3 # Copyright (c) 2012-2016 Devin Teske 124 # $var_to_set is non-NULL, upon success holds the name of the struct created. 126 # `DEVICE' structure-type to be assigned (defined above). 144 if f_device_find -1 "$__name" "$__type" __device; then 174 while [ $n -le $NDEVICES ]; do 178 # XXX This potentially leaks $dev->private if it's being 197 while [ $n -le $NDEVICES ]; do 216 while [ $i -lt $NDEVICES ]; do 222 NDEVICES=$(( $NDEVICES - 1 )) 261 for devname in $( ifconfig -l ); do [all …]
|
/freebsd/sys/dev/hyperv/utilities/ |
H A D | hv_kvp.c | 1 /*- 2 * Copyright (c) 2014,2016-2017 Microsoft Corp. 98 .ic_desc = "Hyper-V KVP" 195 return (sc->req_in_progress); in hv_kvp_req_in_progress() 209 sc->req_in_progress = true; in hv_kvp_transaction_init() 210 sc->host_msg_len = rcv_len; in hv_kvp_transaction_init() 211 sc->host_msg_id = request_id; in hv_kvp_transaction_init() 212 sc->rcv_buf = rcv_buf; in hv_kvp_transaction_init() 213 sc->host_kvp_msg = (struct hv_kvp_msg *)&rcv_buf[ in hv_kvp_transaction_init() 228 utf8_to_utf16((uint16_t *)host_ip_msg->kvp_ip_val.ip_addr, in hv_kvp_convert_utf8_ipinfo_to_utf16() [all …]
|
/freebsd/sys/dev/sound/pci/hda/ |
H A D | hdaa.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2008-2012 Alexander Motin <mav@FreeBSD.org> 50 #define hdaa_lock(devinfo) snd_mtxlock((devinfo)->lock) 51 #define hdaa_unlock(devinfo) snd_mtxunlock((devinfo)->lock) 52 #define hdaa_lockassert(devinfo) snd_mtxassert((devinfo)->lock) 82 static const char *HDA_DEVS[16] = {"Line-out", "Speaker", "Headphones", "CD", 83 "SPDIF-out", "Digital-out", "Modem-line", "Modem-handset", "Line-in", 84 "AUX", "Mic", "Telephony", "SPDIF-in", "Digital-in", "Res.E", "Other"}; 90 "DIN", "XLR", "RJ-11", "Combo", "0xc", "0xd", "0xe", "Other" }; [all …]
|
/freebsd/sys/contrib/xen/ |
H A D | sysctl.h | 24 * Copyright (c) 2002-2006, K Fraser 45 /* IN: Non-zero -> clear after reading. */ 47 /* IN: Non-zero -> start index specified by @index field. */ 142 /* Sub-operations: */ 204 int32_t node; /* NUMA node of interest (-1 for all nodes). */ 240 * Indexing is 1-biased (PC1/CC1 being at index 0). 278 * every non-primary sibling thread (those with a thread id which is not 375 * cpuidle max C-state and max C-sub-state access command: 376 * Set cpuid to 0 for max C-state. 377 * Set cpuid to 1 for max C-sub-state. [all …]
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_sa.c | 1 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 97 * Additional options that can be set for config: SA_1FM_AT_EOT 105 if (((ccb)->ccb_h.status & CAM_DEV_QFRZN) != 0) \ 106 cam_release_devq((ccb)->ccb_h.path, 0, 0, 0, FALSE) 182 * CODES. (If the drive supports it, SPC-4/LTO-5 and newer should.) 185 * 4. Instance-specific loader tunables, used for say sa5. 321 indent -= 2; \ 371 #define SA_PROT_ENABLED(softc) ((softc->flags & SA_FLAG_PROTECT_SUPP) \ 372 && (softc->prot_info.cur_prot_state.initialized != 0) \ [all …]
|
/freebsd/sys/dev/usb/net/ |
H A D | uhso.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 120 * can be detected during run-time. 144 * Multiplexed serial port destination sub-port names 299 static int uhso_debug = -1; 395 /* Config for the raw IP-packet interface */ 519 if (uaa->usb_mode != USB_MODE_HOST) in uhso_probe() 521 if (uaa->info.bConfigIndex != 0) in uhso_probe() 523 if (uaa->info.bDeviceClass != 0xff) in uhso_probe() 535 if (uhso_probe_iface_auto(uaa->device, in uhso_probe() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 44 * This file contains all the routines used when modifying on-disk SPA state. 114 * moves it to some Illumos-specific place, or removes it entirely. 120 * prevent CPU-intensive kernel threads from affecting latency on interactive 167 * are so high frequency and short-lived that the taskq itself can become a 169 * additional degree of parallelism specified by the number of threads per- 222 * This is used by zdb to analyze non-idle pools. 244 * A non-zero value for zfs_max_missing_tvds means that we allow importing 245 * pools with missing top-level vdevs. This is strictly intended for advanced [all …]
|
H A D | vdev.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 68 * One metaslab from each (normal-class) vdev is used by the ZIL. These are 88 /* default target for number of metaslabs per top-level vdev */ 91 /* minimum number of metaslabs per top-level vdev */ 94 /* practical upper limit of total metaslabs per top-level vdev */ 138 * vdev-wide space maps that have lots of entries written to them at 146 * will cause pool corruption on power loss if a volatile out-of-order 183 if (vd->vdev_path != NULL) { in vdev_dbgmsg() 184 zfs_dbgmsg("%s vdev '%s': %s", vd->vdev_ops->vdev_op_type, in vdev_dbgmsg() [all …]
|