diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-06-25 08:48:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:01:19 -0400 |
commit | bafa96541b250a7051e3fbc5de6e8369daf8ffec (patch) | |
tree | 9b758c424fcda2d263c71f25358bb65a0abc15d4 /fs/fuse/dev.c | |
parent | 51eb01e73599efb88c6c20b1c226d20309a75450 (diff) |
[PATCH] fuse: add control filesystem
Add a control filesystem to fuse, replacing the attributes currently exported
through sysfs. An empty directory '/sys/fs/fuse/connections' is still created
in sysfs, and mounting the control filesystem here provides backward
compatibility.
Advantages of the control filesystem over the previous solution:
- allows the object directory and the attributes to be owned by the
filesystem owner, hence letting unpriviled users abort the
filesystem connection
- does not suffer from module unload race
[akpm@osdl.org: fix this fs for recent dhowells depredations]
[akpm@osdl.org: fix 64-bit printk warnings]
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index fec4779e2b55..fe3adf589174 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -833,7 +833,7 @@ static int fuse_dev_release(struct inode *inode, struct file *file) | |||
833 | end_requests(fc, &fc->processing); | 833 | end_requests(fc, &fc->processing); |
834 | spin_unlock(&fc->lock); | 834 | spin_unlock(&fc->lock); |
835 | fasync_helper(-1, file, 0, &fc->fasync); | 835 | fasync_helper(-1, file, 0, &fc->fasync); |
836 | kobject_put(&fc->kobj); | 836 | fuse_conn_put(fc); |
837 | } | 837 | } |
838 | 838 | ||
839 | return 0; | 839 | return 0; |