From e9fe8191d7a74e78be304c8c21c1a8c31a19f7d9 Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 11 Jul 2007 21:34:41 +0000 Subject: Fix ioctls on the control vnode: 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. Submitted by: Jan Harkes Approved by: re (kensmith) --- sys/coda/coda_vfsops.c | 2 +- sys/fs/coda/coda_vfsops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/coda/coda_vfsops.c b/sys/coda/coda_vfsops.c index 4e30e22..3e93a2e 100644 --- a/sys/coda/coda_vfsops.c +++ b/sys/coda/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 */ diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c index 4e30e22..3e93a2e 100644 --- a/sys/fs/coda/coda_vfsops.c +++ b/sys/fs/coda/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 */ -- cgit v1.1