summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1995-11-09 06:08:39 +0000
committerchuck <chuck@cvs.openbsd.org>1995-11-09 06:08:39 +0000
commitccffd9cbc978bc67c6503a533d7c6353210b7c45 (patch)
treeff2850b41b6adbf2caed84fea46926ab4d8fef07 /sys/kern
parent63f0448a6cd4de5f9fa6398c3cc3efd8118eba4b (diff)
ufs vs ffs compat stuff from Gordon Ross. Gordon says:
This allows the 1.0 version of /sbin/mount to work with the latest kernels. (Being unable to mount disks is a real drag...)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 6ccaf86e975..7047115c8a4 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -184,6 +184,12 @@ sys_mount(p, v, retval)
return (error);
#endif
}
+#ifdef COMPAT_10
+ /* Accept "ufs" as a synonym for "ffs" */
+ if (!strncmp(fstypename, "ufs", MFSNAMELEN)) {
+ strncpy( fstypename, "ffs", MFSNAMELEN);
+ }
+#endif
for (fsindex = 0; fsindex < nvfssw; fsindex++)
if (vfssw[fsindex] != NULL &&
!strncmp(vfssw[fsindex]->vfs_name, fstypename, MFSNAMELEN))