diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 2000-09-14 18:11:44 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 2000-09-14 18:11:44 +0000 |
| commit | 1d95078aafa926305b3f530bc46160bccc36bd59 (patch) | |
| tree | 3662bcf9d97b9fc7ba107fd7a3f44d19c22e307d | |
| parent | 2231246bb311481a987b71e8fa45ef1fa0e59fa7 (diff) | |
Notes
| -rw-r--r-- | sys/kern/vfs_extattr.c | 21 | ||||
| -rw-r--r-- | sys/kern/vfs_syscalls.c | 21 |
2 files changed, 0 insertions, 42 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 4064fa327bb7..8f4d20b0e33b 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -117,9 +117,6 @@ mount(p, uap) struct vfsconf *vfsp; int error, flag = 0, flag2 = 0; struct vattr va; -#ifdef COMPAT_43 - u_long fstypenum; -#endif struct nameidata nd; char fstypename[MFSNAMELEN]; @@ -210,24 +207,6 @@ mount(p, uap) vput(vp); return (ENOTDIR); } -#ifdef COMPAT_43 - /* - * Historically filesystem types were identified by number. If we - * get an integer for the filesystem type instead of a string, we - * check to see if it matches one of the historic filesystem types. - */ - fstypenum = (uintptr_t)SCARG(uap, type); - if (fstypenum < maxvfsconf) { - for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) - if (vfsp->vfc_typenum == fstypenum) - break; - if (vfsp == NULL) { - vput(vp); - return (ENODEV); - } - strncpy(fstypename, vfsp->vfc_name, MFSNAMELEN); - } else -#endif /* COMPAT_43 */ if ((error = copyinstr(SCARG(uap, type), fstypename, MFSNAMELEN, NULL)) != 0) { vput(vp); return (error); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 4064fa327bb7..8f4d20b0e33b 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -117,9 +117,6 @@ mount(p, uap) struct vfsconf *vfsp; int error, flag = 0, flag2 = 0; struct vattr va; -#ifdef COMPAT_43 - u_long fstypenum; -#endif struct nameidata nd; char fstypename[MFSNAMELEN]; @@ -210,24 +207,6 @@ mount(p, uap) vput(vp); return (ENOTDIR); } -#ifdef COMPAT_43 - /* - * Historically filesystem types were identified by number. If we - * get an integer for the filesystem type instead of a string, we - * check to see if it matches one of the historic filesystem types. - */ - fstypenum = (uintptr_t)SCARG(uap, type); - if (fstypenum < maxvfsconf) { - for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) - if (vfsp->vfc_typenum == fstypenum) - break; - if (vfsp == NULL) { - vput(vp); - return (ENODEV); - } - strncpy(fstypename, vfsp->vfc_name, MFSNAMELEN); - } else -#endif /* COMPAT_43 */ if ((error = copyinstr(SCARG(uap, type), fstypename, MFSNAMELEN, NULL)) != 0) { vput(vp); return (error); |
