From: ngkaho1234 Date: Sat, 30 Jan 2016 17:25:51 +0000 (+0000) Subject: ext4: fix ext4_fread failing when fs on read-only mode. X-Git-Tag: v1.0.0~16 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=734cf0ec11fc0ebc853ade833158918bd10f3690;p=lwext4.git ext4: fix ext4_fread failing when fs on read-only mode. --- diff --git a/src/ext4.c b/src/ext4.c index e0923e4..00af248 100644 --- 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;