Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164543453
D42327.id130301.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1017 B
Referenced Files
None
Subscribers
None
D42327.id130301.diff
View Options
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -149,8 +149,10 @@
loaded = (*error == 0);
if (*error == EEXIST)
*error = 0;
- if (*error)
+ if (*error) {
+ *error = ENODEV;
return (NULL);
+ }
/* Look up again to see if the VFS was loaded. */
vfsp = vfs_byname(fstype);
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -996,7 +996,7 @@
jail_export = false;
error = vfs_domount(td, fstype, fspath, fsflags, jail_export, &optlist);
- if (error == ENOENT) {
+ if (error == ENODEV) {
error = EINVAL;
if (errmsg != NULL)
strncpy(errmsg, "Invalid fstype", errmsg_len);
@@ -1086,7 +1086,7 @@
vfsp = vfs_byname_kld(fstype, td, &error);
free(fstype, M_TEMP);
if (vfsp == NULL)
- return (ENOENT);
+ return (EINVAL);
if (((vfsp->vfc_flags & VFCF_SBDRY) != 0 &&
vfsp->vfc_vfsops_sd->vfs_cmount == NULL) ||
((vfsp->vfc_flags & VFCF_SBDRY) == 0 &&
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 3, 12:43 AM (6 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35874819
Default Alt Text
D42327.id130301.diff (1017 B)
Attached To
Mode
D42327: vfs mount: Consistently use ENODEV internally for an invalid fstype
Attached
Detach File
Event Timeline
Log In to Comment