Date: Tue, 10 Jul 2007 14:02:01 -0400 From: Jan Harkes <jaharkes@cs.cmu.edu> To: freebsd-fs@freebsd.org Cc: Jan Harkes <jaharkes@cs.cmu.edu> Subject: [PATCH Coda 5/5] Fix ioctls on the control vnode Message-ID: <1184090521919-git-send-email-jaharkes@cs.cmu.edu> In-Reply-To: <2c84c1de0707060800t21f3f993mfb53f7975a881ed4@mail.gmail.com> References: <2c84c1de0707060800t21f3f993mfb53f7975a881ed4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1184090521919-git-send-email-jaharkes>
