projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8929c98
)
ext4: fix ext4_fread failing when fs on read-only mode.
author
ngkaho1234
<ngkaho1234@gmail.com>
Sat, 30 Jan 2016 17:25:51 +0000
(17:25 +0000)
committer
ngkaho1234
<ngkaho1234@gmail.com>
Sat, 30 Jan 2016 17:25:51 +0000
(17:25 +0000)
src/ext4.c
patch
|
blob
|
history
diff --git
a/src/ext4.c
b/src/ext4.c
index e0923e4700c0ceef31ec9d226e25e4426d0b964f..00af248996f23f9b7e4f705efeb8a6e94f60c7d5 100644
(file)
--- a/
src/ext4.c
+++ b/
src/ext4.c
@@
-1645,9
+1645,6
@@
int ext4_fread(ext4_file *f, void *buf, size_t size, size_t *rcnt)
ext4_assert(f && f->mp);
- if (f->mp->fs.read_only)
- return EROFS;
-
if (f->flags & O_WRONLY)
return EPERM;