From 60c23523458c17586a2a02c6598b43da2a3cac81 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 24 Oct 2002 09:19:43 +0000 Subject: [PATCH] fix incompatiblity with Red Hat kernels --- ChangeLog | 5 +++++ kernel/inode.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bb22b5d..caae9e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-22 Miklos Szeredi + + * fix incompatiblity with Red Hat kernels, with help from Nathan + Thompson-Amato. + 2002-04-18 Mark Glines * 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 #include #include +#include #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; } -- 2.30.2