Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
diff --git a/lib/libnvpair/libnvpair.abi b/lib/libnvpair/libnvpair.abi
index 8c503fecd..078b0c133 100644
--- a/lib/libnvpair/libnvpair.abi
+++ b/lib/libnvpair/libnvpair.abi
@@ -1,5 +1,6 @@
<abi-corpus path='libnvpair.so' architecture='elf-amd-x86_64' soname='libnvpair.so.3'>
<elf-needed>
+ <dependency name='libtirpc.so.3'/>
<dependency name='libc.so.6'/>
</elf-needed>
(lldb) kdp-remote 172.16.206.3
Version: Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:44 PDT 2020; root:xnu-6153.141.2.2~1/DEVELOPMENT_X86_64; UUID=6E055C6D-6BC7-3752-A26D-B6DC560F2B76
Kernel UUID: 6E055C6D-6BC7-3752-A26D-B6DC560F2B76
Load Address: 0xffffff8000200000
Kernel slid 0x0 in memory.
Loaded kernel file /Library/Developer/KDKs/KDK_10.15.7_19H15.kdk/System/Library/Kernels/kernel.development
Loading kernel debugging from /Library/Developer/KDKs/KDK_10.15.7_19H15.kdk/System/Library/Kernels/kernel.development.dSYM/Contents/Resources/Python/kernel.py
LLDB version lldb-1205.0.27.3
Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
settings set target.process.python-os-plugin-path "/Library/Developer/KDKs/KDK_10.15.7_19H15.kdk/System/Library/Kernels/kernel.development.dSYM/Contents/Resources/Python/lldbmacros/core/operating_system.py"
root@ubuntu:~# dmesg
[ 0.000000] Linux version 5.11.0-18-generic (buildd@lgw01-amd64-049) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.36.1) #19-Ubuntu SMP Fri May 7 14:22:03 UTC 2021 (Ubuntu 5.11.0-18.19-generic 5.11.17)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.11.0-18-generic root=UUID=0fcdc171-2d09-45f6-9cb0-2fbb61ad0b93 ro find_preseed=/preseed.cfg auto noprompt priority=critical locale=en_US quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] Disabled fast string operations
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/mount.h>
char *options;
size_t buflen = (_POSIX_MAX_INPUT+1) * 2;
uint32_t mntflags;
void
#include <stdio.h>
#include <strings.h>
#include <sys/mount.h>
int append_option(uint32_t flag, char *option_yes, char *option_no, uint32_t mntflags, char *options,
size_t buflen)
{
if ((mntflags & flag) && option_yes != NULL) {
if (*options != '\0')
strlcat(options, ",", buflen);
From 6ad69fc57a7f8db348fc4089e6841dc063853991 Mon Sep 17 00:00:00 2001
From: ilovezfs <ilovezfs@icloud.com>
Date: Sun, 9 May 2021 04:57:52 -0700
Subject: [PATCH] macOS test changes
---
scripts/load_macos.sh | 4 +-
scripts/zfs-tests.sh | 16 +-
tests/zfs-tests/include/blkdev.shlib | 27 +++-
tests/zfs-tests/include/commands.cfg | 16 ++
joe@joes-Mac openzfs % export __ZFS_MAIN_MOUNTPOINT_DIR=/
joe@joes-Mac openzfs % sudo zpool destroy testpool2 && sudo zpool create testpool2 disk1
Volume testpool2 on disk9s1 unmounted
joe@joes-Mac openzfs % rm outf
joe@joes-Mac openzfs % sudo zfs send -R testpool@final > outf
joe@joes-Mac openzfs % cat outf | sudo zfs receive -d -F testpool2
cannot receive incremental stream: destination 'testpool2/testfs/vclone' does not exist
joe@joes-Mac openzfs % rm outf
joe@joes-Mac openzfs % sudo zfs send -R testpool@final | tee outf &>/dev/null
joe@joes-Mac openzfs % cat outf | sudo zfs receive -d -F testpool2
joe@joes-Mac openzfs % sudo zfs send -R testpool@final > outf
joe@joes-Mac openzfs % cat outf | sudo zfs receive -d -F testpool2
cannot receive incremental stream: destination 'testpool2/testfs/vclone' does not exist
joe@joes-Mac openzfs % sudo zfs send -R testpool@final | tee outf &>/dev/null
joe@joes-Mac openzfs % cat outf | sudo zfs receive -d -F testpool2
Volume testpool2 on disk9s1 unmounted
joe@joes-Mac openzfs % sudo zpool destroy testpool2
Unmount successful for /Volumes/testpool2/testfs/fs1/fs2
Unmount successful for /Volumes/testpool2/testfs/fs1/fclone
Unmount successful for /Volumes/testpool2/testfs/fs1
joe@joes-Mac openzfs % sudo zpool create -O com.apple.mimic=hfs foo disk0 && sudo touch /Volumes/foo/z{1..1000}.txt && sleep 10 && for j in {1..1000}; do mdfind z$j.txt; done && ls -i /Volumes/foo && sudo zpool destroy foo > out
/Volumes/foo/z12.txt
/Volumes/foo/z13.txt
/Volumes/foo/z14.txt
/Volumes/foo/z15.txt
/Volumes/foo/z16.txt
/Volumes/foo/z17.txt
/Volumes/foo/z18.txt
/Volumes/foo/z19.txt
/Volumes/foo/z20.txt
joe@joes-Mac openzfs % for i in {1..5}; do echo "$i..."; sudo zpool create -O com.apple.mimic=hfs foo disk0 && sudo chown joe /Volumes/foo && touch /Volumes/foo/{a1.txt,a2.txt,a3.txt,a4.txt,a5.txt,a6.txt,a7.txt,a8.txt,a9.txt} && sleep 15 && mdfind a1.txt && mdfind a2.txt && mdfind a3.txt && mdfind a4.txt && mdfind a5.txt && mdfind a6.txt && mdfind a7.txt && mdfind a8.txt && mdfind a9.txt && ls -i /Volumes/foo && sudo zpool destroy foo; done
1...
/Volumes/foo/a1.txt
/Volumes/foo/a2.txt
/Volumes/foo/a3.txt
/Volumes/foo/a4.txt
/Volumes/foo/a5.txt
/Volumes/foo/a6.txt
/Volumes/foo/a7.txt
/Volumes/foo/a8.txt