Mknod is now implemented by mount, mount2 and cmount, so exercise it from the shared vfstest suite: create a regular file (S_IFREG) through the mounted path and check it reads back as a 0-byte regular file. This is the path the kernel NFS server drives when a client creates a file over an exported mount. Before this there was no shared coverage for Mknod; it now runs against each backend via RunTests. Suggested in #9548. Signed-off-by: Sandy Luppino <s.luppino@opendrives.com>
14 lines
230 B
Go
14 lines
230 B
Go
//go:build !linux && !darwin && !freebsd && !openbsd
|
|
|
|
package vfstest
|
|
|
|
import (
|
|
"runtime"
|
|
"testing"
|
|
)
|
|
|
|
// TestMknod is not supported on this platform.
|
|
func TestMknod(t *testing.T) {
|
|
t.Skip("not supported on " + runtime.GOOS)
|
|
}
|