diff options
| author | Miklos Szeredi <miklos@szeredi.hu> | 2002-10-24 09:19:43 +0000 |
|---|---|---|
| committer | Miklos Szeredi <miklos@szeredi.hu> | 2002-10-24 09:19:43 +0000 |
| commit | 60c23523458c17586a2a02c6598b43da2a3cac81 (patch) | |
| tree | 3c5a8eaa867a4f0f683face9ea9e332bef87375d | |
| parent | c1a0da154df6cbe767cdbbed7e161d80acedd908 (diff) | |
| download | libfuse-60c23523458c17586a2a02c6598b43da2a3cac81.tar.gz | |
fix incompatiblity with Red Hat kernels
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | kernel/inode.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2002-10-22 Miklos Szeredi <mszeredi@inf.bme.hu> + + * fix incompatiblity with Red Hat kernels, with help from Nathan + Thompson-Amato. + 2002-04-18 Mark Glines <mark@glines.org> * added an alternative to fuse_mount(), called diff --git a/kernel/inode.c b/kernel/inode.c index fab98dc..0e33035 100644 --- a/kernel/inode.c +++ b/kernel/inode.c @@ -12,6 +12,7 @@ #include <linux/sched.h> #include <linux/slab.h> #include <linux/file.h> +#include <linux/proc_fs.h> #define FUSE_SUPER_MAGIC 0x65735546 @@ -132,7 +133,7 @@ static struct fuse_conn *get_conn(struct fuse_mount_data *d) if(file) ino = file->f_dentry->d_inode; - if(!ino || ino->u.generic_ip != proc_fuse_dev) { + if(!ino || !proc_fuse_dev || proc_fuse_dev->low_ino != ino->i_ino) { printk("fuse_read_super: Bad file: %i\n", d->fd); goto out; } |
