summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-07-11 21:34:41 +0000
committerrwatson <rwatson@FreeBSD.org>2007-07-11 21:34:41 +0000
commite9fe8191d7a74e78be304c8c21c1a8c31a19f7d9 (patch)
tree8abd2f5c86562547f8063d5e4091186e70860d31
parent1c2785e3feee8cca588a879987d04f7ae1784fa8 (diff)
downloadFreeBSD-src-e9fe8191d7a74e78be304c8c21c1a8c31a19f7d9.zip
FreeBSD-src-e9fe8191d7a74e78be304c8c21c1a8c31a19f7d9.tar.gz
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 <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
-rw-r--r--sys/coda/coda_vfsops.c2
-rw-r--r--sys/fs/coda/coda_vfsops.c2
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 */
OpenPOWER on IntegriCloud