/freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
H A D | qemu-3-deps.sh | 7 set -eu 10 echo "##[group]Running pacman -Syu" 12 sudo pacman -Syu --noconfirm 16 sudo pacman -Sy --noconfirm base-devel bc cpio cryptsetup dhclient dkms \ 17 fakeroot fio gdb inetutils jq less linux linux-headers lsscsi nfs-utils \ 18 parted pax perf python-packaging python-setuptools qemu-guest-agent ksh \ 19 samba sysstat rng-tools rsync wget xxhash 26 echo "##[group]Running apt-get update+upgrade" 27 sudo apt-get update -y 28 sudo apt-get upgrade -y [all …]
|
/freebsd/sys/contrib/openzfs/.github/workflows/ |
H A D | zfs-tests.yml | 1 name: zfs-tests-sanity 9 runs-on: ubuntu-latest 11 - uses: actions/checkout@v2 14 - name: Install dependencies 16 sudo apt-get update 17 sudo apt-get install --yes -qq build-essential autoconf libtool gdb lcov \ 20 nfs-kernel-server samba rng-tools xz-utils \ 21 zlib1g-dev uuid-dev libblkid-dev libselinux-dev \ 22 xfslibs-dev libattr1-dev libacl1-dev libudev-dev libdevmapper-dev \ 23 libssl-dev libffi-dev libaio-dev libelf-dev libmount-dev \ [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/ |
H A D | zutil_import_os.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 40 * pool guid -> toplevel vdev guid -> label txg 73 #include <libudev.h> 78 #define DEV_BYID_PATH "/dev/disk/by-id/" 84 * hpet - High Precision Event Timer 85 * watchdog[N] - Watchdog must be closed in a special way. 88 should_skip_dev(const char *dev) in should_skip_dev() argument 90 return ((strcmp(dev, "watchdog") == 0) || in should_skip_dev() 91 (strncmp(dev, "watchdog", 8) == 0 && isdigit(dev[8])) || in should_skip_dev() 92 (strcmp(dev, "hpet") == 0)); in should_skip_dev() [all …]
|
H A D | zutil_device_path_os.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 35 #include <libudev.h> 54 return (-1); in zfs_append_partition() 56 (void) strcat(path, "-part1"); in zfs_append_partition() 60 return (-1); in zfs_append_partition() 62 if (isdigit(path[len-1])) { in zfs_append_partition() 76 * forms: "-partX", "pX", or "X", where X is a string of digits. The second 79 * expression "^([hsv]|xv)d[a-z]+", i.e. a scsi, ide, virtio or xen disk. 91 if ((part = strstr(tmp, "-part")) && part != tmp) { in zfs_strip_partition() 94 part > tmp + 1 && isdigit(*(part-1))) { in zfs_strip_partition() [all …]
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | rdma-ndd.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 53 #include <libudev.h> 90 char *end = dest + len-1; in build_node_desc() 127 nd_file[sizeof(nd_file)-1] = '\0'; in update_node_desc() 132 return -EIO; in update_node_desc() 137 rc = -EIO; in update_node_desc() 147 syslog(LOG_INFO, "%s: change (%s) -> (%s)\n", in update_node_desc() 166 dev_dir[sizeof(dev_dir)-1] = '\0'; in set_rdma_node_desc() 171 return -ENOSYS; in set_rdma_node_desc() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
H A D | zutil_device_path_os.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 43 zfs_strip_partition(const char *dev) in zfs_strip_partition() argument 45 return (strdup(dev)); in zfs_strip_partition() 56 * On FreeBSD we only want to remove "/dev/" from the beginning of 62 if (strncmp(path, _PATH_DEV, sizeof (_PATH_DEV) - 1) == 0) in zfs_strip_path() 63 return (path + sizeof (_PATH_DEV) - 1); in zfs_strip_path() 93 * considered ready when libudev determines it has been initialized, all of 115 else if (NSEC2MSEC(gethrtime() - settle) >= settle_ms) in zpool_label_disk_wait() 122 } while (NSEC2MSEC(gethrtime() - start) < timeout_ms); in zpool_label_disk_wait()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | devname2devid.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 32 #include <libudev.h> 45 #define DEV_BYID_PATH "/dev/disk/by-id/" 48 udev_device_get_devid(struct udev_device *dev, char *bufptr, size_t buflen) in udev_device_get_devid() argument 54 /* The bus based by-id path is preferred */ in udev_device_get_devid() 55 bus = udev_device_get_property_value(dev, "ID_BUS"); in udev_device_get_devid() 63 * Example: 'dm-uuid-mpath-35000c5006304de3f' in udev_device_get_devid() 65 dm_uuid = udev_device_get_property_value(dev, "DM_UUID"); in udev_device_get_devid() 67 (void) snprintf(bufptr, buflen, "dm-uuid-%s", dm_uuid); in udev_device_get_devid() 74 * locate the bus specific by-id link in udev_device_get_devid() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_disk_event.c | 5 * Common Development and Distribution License Version 1.0 (CDDL-1.0). 6 * You can obtain a copy of the license from the top-level file 7 * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>. 22 #include <libudev.h> 30 #include <sys/sysevent/dev.h> 38 * A libudev monitor is established to monitor block device actions and pass 49 #define DEV_BYID_PATH "/dev/disk/by-id/" 95 * -------------- -------------------------------------------------------- 96 * DEV_NAME /dev/sdl 98 * DEV_IDENTIFIER ata-Hitachi_HTS725050A9A362_100601PCG420VLJ37DMC [all …]
|
/freebsd/contrib/libfido2/ |
H A D | README.adoc | 7 image:https://oss-fuzz-build-logs.storage.googleapis.com/badges/libfido2.svg["Fuzz Status (oss-fuzz)", link="https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:libfido2"] 9 *libfido2* provides library functionality and command-line tools to 19 *libfido2* is licensed under the BSD 2-clause license. See the LICENSE 35 * Go: https://github.com/keys-pub/go-libfido [all...] |
/freebsd/contrib/libfido2/src/ |
H A D | nfc_linux.c | 2 * Copyright (c) 2020-2022 Yubico AB. All rights reserved. 3 * Use of this source code is governed by a BSD-style 5 * SPDX-License-Identifier: BSD-2-Clause 15 #include <libudev.h> 28 uint32_t dev; member 36 get_parent_attr(struct udev_device *dev, const char *subsystem, in get_parent_attr() argument 42 if ((parent = udev_device_get_parent_with_subsystem_devtype(dev, in get_parent_attr() 51 get_usb_attr(struct udev_device *dev, const char *attr) in get_usb_attr() argument 53 return get_parent_attr(dev, "usb", "usb_device", attr); in get_usb_attr() 62 struct udev_device *dev = NULL; in copy_info() local [all …]
|
H A D | hid_linux.c | 2 * Copyright (c) 2019-2022 Yubico AB. All rights reserved. 3 * Use of this source code is governed by a BSD-style 5 * SPDX-License-Identifier: BSD-2-Clause 16 #include <libudev.h> 33 int s = -1; in get_report_descriptor() 35 if (ioctl(fd, IOCTL_REQ(HIDIOCGRDESCSIZE), &s) == -1) { in get_report_descriptor() 37 return (-1); in get_report_descriptor() 42 return (-1); in get_report_descriptor() 45 hrd->size = (unsigned)s; in get_report_descriptor() 47 if (ioctl(fd, IOCTL_REQ(HIDIOCGRDESC), hrd) == -1) { in get_report_descriptor() [all …]
|
/freebsd/contrib/libfido2/fuzz/ |
H A D | udev.c | 3 * Use of this source code is governed by a BSD-style 5 * SPDX-License-Identifier: BSD-2-Clause 15 #include <libudev.h> 43 #define ASSERT_TYPE(x, m) assert((x) != NULL && (x)->magic == (m)) 83 if (child->parent != NULL) in __wrap_udev_device_get_parent_with_subsystem_devtype() 84 return child->parent; in __wrap_udev_device_get_parent_with_subsystem_devtype() 85 if ((child->parent = calloc(1, sizeof(*child->parent))) == NULL) in __wrap_udev_device_get_parent_with_subsystem_devtype() 87 child->parent->magic = UDEV_DEVICE_MAGIC; in __wrap_udev_device_get_parent_with_subsystem_devtype() 89 return child->parent; in __wrap_udev_device_get_parent_with_subsystem_devtype() 123 udev_device->magic = UDEV_DEVICE_MAGIC; in __wrap_udev_device_new_from_syspath() [all …]
|
/freebsd/sys/contrib/openzfs/contrib/debian/ |
H A D | control | 1 Source: openzfs-linux 4 Maintainer: ZFS on Linux specific mailing list <zfs-discuss@list.zfsonlinux.org> 5 Build-Depends: debhelper-compat (= 12), 6 dh-python, 7 dh-sequence-dkms | dkms (>> 2.1.1.2-5), 8 libaio-dev, 9 libblkid-dev, 10 libcurl4-openssl-dev, 11 libelf-dev, 12 libpam0g-dev, [all …]
|
/freebsd/sys/contrib/openzfs/rpm/generic/ |
H A D | zfs.spec.in | 27 %global _bashcompletiondir /usr/share/bash-completion 49 %global _presetdir %{_prefix}/lib/systemd/system-preset 53 %global _modulesloaddir %{_prefix}/lib/modules-load.d 57 %global _systemdgeneratordir %{_prefix}/lib/systemd/system-generators 90 … %(%{__python} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib(… 100 Source0: %{name}-%{version}.tar.gz 101 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 102 Requires: libzpool6%{?_isa} = %{version}-%{release} 103 Requires: libnvpair3%{?_isa} = %{version}-%{release} 104 Requires: libuutil3%{?_isa} = %{version}-%{release} [all …]
|
/freebsd/sys/contrib/openzfs/rpm/redhat/ |
H A D | zfs.spec.in | 27 %global _bashcompletiondir /usr/share/bash-completion 49 %global _presetdir %{_prefix}/lib/systemd/system-preset 53 %global _modulesloaddir %{_prefix}/lib/modules-load.d 57 %global _systemdgeneratordir %{_prefix}/lib/systemd/system-generators 90 %define __python_sitelib %(%{__python} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())" 2>/dev/null || %{__python} -Esc "import sysconfig; print(sysconfig.get_path('purelib'))") 100 Source0: %{name}-%{version}.tar.gz 101 BuildRoot: %{_tmppath}/%{name}-%{version}- [all...] |
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_agents.c | 5 * Common Development and Distribution License Version 1.0 (CDDL-1.0). 6 * You can obtain a copy of the license from the top-level file 7 * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>. 27 #include <sys/sysevent/dev.h> 92 gsp->gs_vdev_type = DEVICE_TYPE_PRIMARY; in zfs_agent_iter_vdev() 104 gsp->gs_vdev_type = DEVICE_TYPE_SPARE; in zfs_agent_iter_vdev() 113 gsp->gs_vdev_type = DEVICE_TYPE_L2ARC; in zfs_agent_iter_vdev() 121 if (gsp->gs_devid != NULL && in zfs_agent_iter_vdev() 123 (strcmp(gsp->gs_devid, path) == 0)) { in zfs_agent_iter_vdev() 125 &gsp->gs_vdev_guid); in zfs_agent_iter_vdev() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs.abi | 1 <abi-corpus version='2.0' architecture='elf-amd-x86_64' soname='libzfs.so.6'> 2 <elf-needed> 8 <dependency name='libudev.so.1'/> 14 <dependency name='ld-linux-x86-64.so.2'/> 15 </elf-needed> 16 <elf-function-symbols> 17 …<elf-symbol name='_sol_getmntent' type='func-type' binding='global-binding' visibility='default-vi… 18 …<elf-symbol name='atomic_add_16' type='func-type' binding='global-binding' visibility='default-vis… 19 …<elf-symbol name='atomic_add_16_nv' type='func-type' binding='global-binding' visibility='default-… 20 …<elf-symbol name='atomic_add_32' type='func-type' binding='global-binding' visibility='default-vis… [all …]
|