[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-fs
Subject: [PATCH Coda 5/5] Fix ioctls on the control vnode
From: Jan Harkes <jaharkes () cs ! cmu ! edu>
Date: 2007-07-10 18:02:01
Message-ID: 1184090521919-git-send-email-jaharkes () cs ! cmu ! edu
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic