From: Miklos Szeredi Date: Fri, 6 Feb 2004 13:52:00 +0000 (+0000) Subject: fix X-Git-Tag: fuse_1_1_post1~14 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f58cc61af3376bd67f1925461d9dae3b97604e93;p=qemu-gpiodev%2Flibfuse.git fix --- 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 */