| /freebsd-13-stable/sys/contrib/openzfs/.github/workflows/ |
| HD | build-dependencies.txt | 6 build-essential 9 debhelper-compat 10 dh-python 19 libacl1-dev 20 libaio-dev 21 libattr1-dev 22 libblkid-dev 23 libcurl4-openssl-dev 24 libdevmapper-dev 25 libelf-dev [all …]
|
| HD | 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-13-stable/sys/contrib/openzfs/lib/libzutil/os/linux/ |
| HD | zutil_import_os.c | 40 * pool guid -> toplevel vdev guid -> label txg 73 #include <libudev.h> 79 #define DEV_BYID_PATH "/dev/disk/by-id/" 82 is_watchdog_dev(char *dev) in is_watchdog_dev() argument 84 /* For 'watchdog' dev */ in is_watchdog_dev() 85 if (strcmp(dev, "watchdog") == 0) in is_watchdog_dev() 89 if (strstr(dev, "watchdog") == dev && isdigit(dev[8])) in is_watchdog_dev() 105 libpc_handle_t *hdl = rn->rn_hdl; in zpool_open_func() 118 * hpet - High Precision Event Timer in zpool_open_func() 119 * watchdog - Watchdog must be closed in a special way. in zpool_open_func() [all …]
|
| HD | zutil_device_path_os.c | 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() 112 * Same as zfs_strip_partition, but allows "/dev/" to be in the pathname [all …]
|
| /freebsd-13-stable/contrib/ofed/infiniband-diags/src/ |
| HD | 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-13-stable/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
| HD | zutil_device_path_os.c | 43 zfs_strip_partition(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-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/devname2devid/ |
| HD | devname2devid.c | 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() 76 * Example: 'scsi-MG03SCA300_350000494a8cb3d67-part1' in udev_device_get_devid() [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/cmd/zed/ |
| HD | 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-13-stable/contrib/libfido2/ |
| HD | README.adoc | 7 …oss-fuzz-build-logs.storage.googleapis.com/badges/libfido2.svg["Fuzz Status (oss-fuzz)", link="htt… 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-libfido2[go-libfido2] 36 * Perl: https://github.com/jacquesg/p5-FIDO-Raw[p5-FIDO-Raw] 49 On Linux, libudev 57 $ sudo dnf install libfido2 libfido2-devel fido2-tools 61 $ sudo apt install libfido2-1 libfido2-dev libfido2-doc fido2-tools 68 $ sudo apt install software-properties-common 69 $ sudo apt-add-repository ppa:yubico/stable [all …]
|
| /freebsd-13-stable/contrib/libfido2/src/ |
| HD | 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 …]
|
| HD | 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-13-stable/contrib/libfido2/fuzz/ |
| HD | 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-13-stable/sys/contrib/openzfs/rpm/generic/ |
| HD | zfs.spec.in | 40 %global _presetdir %{_prefix}/lib/systemd/system-preset 44 %global _modulesloaddir %{_prefix}/lib/modules-load.d 48 %global _systemdgeneratordir %{_prefix}/lib/systemd/system-generators 80 %define __python_sitelib %(%{__python} -Esc "from distutils.sysconfig import get_python_li… 90 Source0: %{name}-%{version}.tar.gz 91 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 92 Requires: libzpool5%{?_isa} = %{version}-%{release} 93 Requires: libnvpair3%{?_isa} = %{version}-%{release} 94 Requires: libuutil3%{?_isa} = %{version}-%{release} 95 Requires: libzfs5%{?_isa} = %{version}-%{release} [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/rpm/redhat/ |
| D | zfs.spec.in | 40 %global _presetdir %{_prefix}/lib/systemd/system-preset 44 %global _modulesloaddir %{_prefix}/lib/modules-load.d 48 %global _systemdgeneratordir %{_prefix}/lib/systemd/system-generators 80 %define __python_sitelib %(%{__python} -Esc "from distutils.sysconfig import get_python_li… 90 Source0: %{name}-%{version}.tar.gz 91 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 92 Requires: libzpool5%{?_isa} = %{version}-%{release} 93 Requires: libnvpair3%{?_isa} = %{version}-%{release} 94 Requires: libuutil3%{?_isa} = %{version}-%{release} 95 Requires: libzfs5%{?_isa} = %{version}-%{release} [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/cmd/zed/agents/ |
| HD | 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-13-stable/sys/contrib/openzfs/lib/libzfs_core/ |
| HD | libzfs_core.abi | 1 <abi-corpus version='2.0' architecture='elf-amd-x86_64' soname='libzfs_core.so.3'> 2 <elf-needed> 7 <dependency name='libudev.so.1'/> 10 <dependency name='ld-linux-x86-64.so.2'/> 11 </elf-needed> 12 <elf-function-symbols> 13 …<elf-symbol name='_sol_getmntent' type='func-type' binding='global-binding' visibility='default-vi… 14 …<elf-symbol name='atomic_add_16' type='func-type' binding='global-binding' visibility='default-vis… 15 …<elf-symbol name='atomic_add_16_nv' type='func-type' binding='global-binding' visibility='default-… 16 …<elf-symbol name='atomic_add_32' type='func-type' binding='global-binding' visibility='default-vis… [all …]
|