NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57145: gmake: *** INTERNAL: readdir: Operation not supported. Stop.



>Number:         57145
>Category:       kern
>Synopsis:       gmake: *** INTERNAL: readdir: Operation not supported.  Stop.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 29 05:35:01 +0000 2022
>Originator:     Andrew Cagney
>Release:        10-BETA
>Organization:
>Environment:
etBSD netbsd 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Mon Dec 26 11:25:01 UTC 2022
>Description:
A test framework running NetBSD 10 in a VM gets this reproducible behaviour:

kvmsh w.netbsd 27.09: we're in after 0.1 seconds!
kvmsh w.netbsd 28.00: 'cd' to /source
[root@netbsd source]# time gmake install-base -j4
gmake: *** INTERNAL: readdir: Operation not supported.  Stop.

>How-To-Repeat:

filling in the details:

- the VM, running on a Linux host, was built using:

sudo virt-install \
	--connect=qemu:///system --check=path_in_use=off --graphics=none --virt-type=kvm --noreboot --console=pty,target_type=serial --cpu=host-passthrough --network=network:swandefault,model=virtio --rng=type=random,device=/dev/random --security=type=static,model=dac,label='1000:107',relabel=yes \
	--vcpus=3 \
	--memory=2560 \
	--filesystem=target=bench,type=mount,accessmode=squash,source=/home/libreswan/wip-webkvm \
	--filesystem=target=pool,type=mount,accessmode=squash,source=/home/pool \
	--filesystem=target=source,type=mount,accessmode=squash,source=/home/libreswan/wip-webkvm \
	--filesystem=target=testing,type=mount,accessmode=squash,source=/home/libreswan/wip-webkvm/testing \
	--name=w.netbsd \
	--os-variant=netbsd9.0 \
	--disk=cache=writeback,path=/home/pool/w.netbsd.qcow2 \
	--import \
	--noautoconsole

- the i386 NetBSD guest is using automount to -noauto fstab entries:

[root@netbsd source]# cat /etc/fstab
ROOT.a          /               ffs     rw,noatime      1 1
kernfs          /kern           kernfs  rw
ptyfs           /dev/pts        ptyfs   rw
procfs          /proc           procfs  rw
tmpfs           /var/shm        tmpfs   rw,-m1777,-sram%25
tmpfs           /tmp            tmpfs   rw
192.168.234.1:/home/libreswan/wip-webkvm   /source         nfs     rw,noauto
192.168.234.1:/home/libreswan/wip-webkvm/testing  /testing        nfs     rw,noauto

- the VM is cold booted

- on login nothing is nfs mounted

- cd /source - triggering mount of /source

- time gmake install-base -j4 - triggering above error

Presumably there's some sort of race.  Re-entering the make works fine.
>Fix:



Home | Main Index | Thread Index | Old Index