diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2007-07-11 21:34:41 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2007-07-11 21:34:41 +0000 |
commit | 26e3bc3a96cee8e07d7755b434c79607998e39e2 (patch) | |
tree | 8abd2f5c86562547f8063d5e4091186e70860d31 /sys/coda | |
parent | 0e3ce855ccd8f2dc7d3e0c8998e6921bf97e902a (diff) | |
download | src-26e3bc3a96cee8e07d7755b434c79607998e39e2.tar.gz src-26e3bc3a96cee8e07d7755b434c79607998e39e2.zip |
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)
Notes
Notes:
svn path=/head/; revision=171379
Diffstat (limited to 'sys/coda')
-rw-r--r-- | sys/coda/coda_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/coda/coda_vfsops.c b/sys/coda/coda_vfsops.c index 4e30e223f4cd..3e93a2e17874 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 */ |