diff options
author | phk <phk@FreeBSD.org> | 2004-11-25 12:19:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-11-25 12:19:24 +0000 |
commit | 22a987d0c101fab656aaae689154f6e436a2f123 (patch) | |
tree | 4f89482d216986b560918911550ee9062e81eed6 /sys/kern/vfs_mount.c | |
parent | 0e27fd31e80cc7f840809862987b009f302fbe74 (diff) | |
download | FreeBSD-src-22a987d0c101fab656aaae689154f6e436a2f123.zip FreeBSD-src-22a987d0c101fab656aaae689154f6e436a2f123.tar.gz |
Allow a filesystem to have both old and new mount methods at the same
time. This will be necessary for transitioning.
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index b4b37a0..7dadf12 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -843,7 +843,8 @@ vfs_domount( * Check if the fs implements the type VFS_[O]MOUNT() * function we are looking for. */ - if ((compat == 0) == (mp->mnt_op->vfs_omount != NULL)) { + if ((compat && (mp->mnt_op->vfs_omount == NULL)) || + (!compat && (mp->mnt_op->vfs_mount == NULL))) { printf("%s doesn't support the %s mount syscall\n", mp->mnt_vfc->vfc_name, compat ? "old" : "new"); VI_LOCK(vp); |