From f58cc61af3376bd67f1925461d9dae3b97604e93 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 6 Feb 2004 13:52:00 +0000 Subject: [PATCH] fix --- ChangeLog | 2 ++ kernel/file.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 43ec053..a7fd958 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2004-02-06 Miklos Szeredi * Fixed writing >= 2G files + + * Check file size on open (with generic_file_open()) 2004-02-04 Miklos Szeredi diff --git a/kernel/file.c b/kernel/file.c index 3e2208e..afb09eb 100644 --- a/kernel/file.c +++ b/kernel/file.c @@ -25,6 +25,11 @@ static int fuse_open(struct inode *inode, struct file *file) struct fuse_in in = FUSE_IN_INIT; struct fuse_out out = FUSE_OUT_INIT; struct fuse_open_in inarg; + int err; + + err = generic_file_open(inode, file); + if(err) + return err; /* If opening the root node, no lookup has been performed on it, so the attributes must be refreshed */ -- 2.30.2