Re: zpool import skips wedges due to a race condition

2021-09-07 Thread Alexander Nasonov
Michael van Elst wrote: > There are other issues with scanning devices in an arbitrary order, > a parallel scan just makes it worse by adding randomness. The order doesn't have to be arbitrary, the kernel can be fixed to return disk names in a well-defined order. A new zfs.disknames sysctl can be

Re: zpool import skips wedges due to a race condition

2021-09-07 Thread Michael van Elst
al...@yandex.ru (Alexander Nasonov) writes: >When I run zfs import, it launches 32 threads and opens 32 disks in >parallel, including cgd1 and dk24. But it can't open dk24 while >cgd1 is still open (it fails with EBUSY). >I fixed it in the attatched patch by running only one thread. It's >not the

daily CVS update output

2021-09-07 Thread NetBSD source update
Updating src tree: P src/common/lib/libprop/prop_string.c P src/distrib/sets/makesrctars P src/games/fortune/datfiles/netbsd-tips P src/lib/libcurses/fileio.c P src/sys/arch/evbarm/conf/GENERIC64 P src/sys/arch/hpcmips/dev/m38813c.c P src/sys/arch/hppa/hppa/intr.c P src/sys/arch/i386/stand/boot/b

zpool import skips wedges due to a race condition

2021-09-07 Thread Alexander Nasonov
(forwarding to current-users because tech-misc appears to be inactive) - Forwarded message from Alexander Nasonov - Date: Sun, 5 Sep 2021 22:16:48 +0100 From: Alexander Nasonov To: tech-m...@netbsd.org Subject: zpool import skips wedges due to a race condition zfs import reliably fails

Re: test for interrupted stdio

2021-09-07 Thread Roland Illig
Am 07.09.2021 um 22:40 schrieb RVP: > On Tue, 7 Sep 2021, Roland Illig wrote: > >> I am running tests/lib/libc/stdio/t_intr on NetBSD 9.99.88/amd64 inside >> VirtualBox. The test fails spuriously. >> >> I find this surprising since cat uses raw I/O. Or is it maybe h_intr >> that exposes the bug? >>

Re: test for interrupted stdio

2021-09-07 Thread RVP
On Tue, 7 Sep 2021, Roland Illig wrote: I am running tests/lib/libc/stdio/t_intr on NetBSD 9.99.88/amd64 inside VirtualBox. The test fails spuriously. I find this surprising since cat uses raw I/O. Or is it maybe h_intr that exposes the bug? It's a stdio fwrite()/fflush() bug. Try running h_

test for interrupted stdio

2021-09-07 Thread Roland Illig
Hi, I am running tests/lib/libc/stdio/t_intr on NetBSD 9.99.88/amd64 inside VirtualBox. The test fails spuriously. Since I didn't want to dive into the internals of bin/dd, I modified t_intr by replacing dd with cat. The test still fails spuriously. I find this surprising since cat uses raw I/O.