Return ENODEV instead of ENOENT if the file system is not available.

This commit is contained in:
pooka 2008-11-24 05:54:39 +00:00
parent 33bcabe95b
commit d0303b2f28
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ukfs.c,v 1.14 2008/11/21 06:10:15 pooka Exp $ */
/* $NetBSD: ukfs.c,v 1.15 2008/11/24 05:54:39 pooka Exp $ */
/*
* Copyright (c) 2007, 2008 Antti Kantee. All Rights Reserved.
@ -163,7 +163,7 @@ ukfs_mount(const char *vfsname, const char *devpath, const char *mountpath,
vfsops = rump_vfs_getopsbyname(vfsname);
if (vfsops == NULL) {
rv = ENOENT;
rv = ENODEV;
goto out;
}