projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
377b2ea
)
fix
author
Miklos Szeredi
<miklos@szeredi.hu>
Fri, 6 Feb 2004 13:52:00 +0000
(13:52 +0000)
committer
Miklos Szeredi
<miklos@szeredi.hu>
Fri, 6 Feb 2004 13:52:00 +0000
(13:52 +0000)
ChangeLog
patch
|
blob
|
history
kernel/file.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 43ec0535335f104c31b4276dc42d2bae87c4dfb7..a7fd9585a3ea5503f2953eda2268b3d45afd94c9 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,6
+1,8
@@
2004-02-06 Miklos Szeredi <mszeredi@inf.bme.hu>
* Fixed writing >= 2G files
+
+ * Check file size on open (with generic_file_open())
2004-02-04 Miklos Szeredi <mszeredi@inf.bme.hu>
diff --git
a/kernel/file.c
b/kernel/file.c
index 3e2208e1aa7f8cef9d7081b5ae76f1106b19e2e7..afb09ebaffccaf6cfb9a9e5d1f24ed9679864f94 100644
(file)
--- 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 */