diff options
author | 1998-12-21 13:08:49 +0000 | |
---|---|---|
committer | 1998-12-21 13:08:49 +0000 | |
commit | 521261c3d3202203782f1c9af365d49647df3f61 (patch) | |
tree | 9564a5a5326c2af0a2d13214fbd1c92d2085fb99 | |
parent | more spinlock (diff) | |
download | wireguard-openbsd-521261c3d3202203782f1c9af365d49647df3f61.tar.xz wireguard-openbsd-521261c3d3202203782f1c9af365d49647df3f61.zip |
return EOPNOTSUPP when there is no support for this filesystem in the kernel.
This is what most mount_* expect.
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index a9c02ad2f9f..01c1646c7b3 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.48 1998/12/10 23:48:13 art Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.49 1998/12/21 13:08:49 art Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -229,7 +229,7 @@ sys_mount(p, v, retval) if (vfsp == NULL) { vput(vp); - return (ENODEV); + return EOPNOTSUPP; } if (vp->v_mountedhere != NULL) { |