Subject: LOOK OUT!
To: None <mrg@eterna.com.au>
From: Gordon W. Ross <gwr@mc.com>
List: current-users
Date: 11/06/1995 15:44:12
> From: matthew green <mrg@eterna.com.au>
> Date: Tue, 07 Nov 1995 01:07:46 +1100
> eeek!
>
> be _sure_ to update /sbin/mount and /sbin/mount_ffs before
> rebooting with a new kernel... or else you won't be able to
> mount any file systems.
>
> just a warning from someone still suffereing from a *bite*
>
> .mrg.
Actually, it is very easy to make the kernel compatible with
old (1.0) versions of mount. John Kohl posted one way, and
then I came up with a much simpler way. Here it is:
cd /usr/src/sys
diff -rc kern.orig kern
diff -rc kern.orig/vfs_syscalls.c kern/vfs_syscalls.c
*** kern.orig/vfs_syscalls.c Fri Oct 13 22:42:05 1995
--- kern/vfs_syscalls.c Mon Nov 6 15:13:50 1995
***************
*** 184,189 ****
--- 184,195 ----
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))