[PATCH Coda 5/5] Fix ioctls on the control vnode

Jan Harkes jaharkes at cs.cmu.edu
Tue Jul 10 18:43:11 UTC 2007


Ioctls on a character device fail with ENOTTY. Make the control vnode
a regular file so that ioctls are passed through to our kernel module.
---
 coda_vfsops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coda_vfsops.c b/coda_vfsops.c
index 07d0ad1..1f8b9da 100644
--- a/coda_vfsops.c
+++ b/coda_vfsops.c
@@ -183,7 +183,7 @@ coda_mount(struct mount *vfsp, struct thread *td)
     rootvp = CTOV(cp);
     rootvp->v_vflag |= VV_ROOT;
 	
-    cp = make_coda_node(&ctlfid, vfsp, VCHR);
+    cp = make_coda_node(&ctlfid, vfsp, VREG);
     coda_ctlvp = CTOV(cp);
 
     /* Add vfs and rootvp to chain of vfs hanging off mntinfo */
-- 
1.5.2.1



More information about the freebsd-fs mailing list