diff options
-rw-r--r-- | sys/coda/coda_vfsops.c | 12 | ||||
-rw-r--r-- | sys/fs/coda/coda_vfsops.c | 12 |
2 files changed, 8 insertions, 16 deletions
diff --git a/sys/coda/coda_vfsops.c b/sys/coda/coda_vfsops.c index 28994c7..ffce238 100644 --- a/sys/coda/coda_vfsops.c +++ b/sys/coda/coda_vfsops.c @@ -153,19 +153,15 @@ coda_mount(struct mount *vfsp, struct thread *td) NDFREE(&ndp, NDF_ONLY_PNBUF); /* - * See if the device table matches our expectations. + * Initialize the mount record and link it to the vfs struct */ - if (dev->si_devsw->d_open != vc_nb_open) - { + mi = dev2coda_mntinfo(dev); + if (!mi) { MARK_INT_FAIL(CODA_MOUNT_STATS); + printf("Coda mount: %s is not a cfs device\n", from); return(ENXIO); } - /* - * Initialize the mount record and link it to the vfs struct - */ - mi = dev2coda_mntinfo(dev); - if (!VC_OPEN(&mi->mi_vcomm)) { MARK_INT_FAIL(CODA_MOUNT_STATS); return(ENODEV); diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c index 28994c7..ffce238 100644 --- a/sys/fs/coda/coda_vfsops.c +++ b/sys/fs/coda/coda_vfsops.c @@ -153,19 +153,15 @@ coda_mount(struct mount *vfsp, struct thread *td) NDFREE(&ndp, NDF_ONLY_PNBUF); /* - * See if the device table matches our expectations. + * Initialize the mount record and link it to the vfs struct */ - if (dev->si_devsw->d_open != vc_nb_open) - { + mi = dev2coda_mntinfo(dev); + if (!mi) { MARK_INT_FAIL(CODA_MOUNT_STATS); + printf("Coda mount: %s is not a cfs device\n", from); return(ENXIO); } - /* - * Initialize the mount record and link it to the vfs struct - */ - mi = dev2coda_mntinfo(dev); - if (!VC_OPEN(&mi->mi_vcomm)) { MARK_INT_FAIL(CODA_MOUNT_STATS); return(ENODEV); |