ref: ec5adbc6757768592da6917a07f6bc1c588ad2f8
parent: 83e87bd113dc957d4a9185cd6ff67c2268602436
author: gkostka <[email protected]>
date: Thu Feb 16 18:22:36 EST 2017
ext4: remove read-only check in get atime/mtime/ctime/mode/own methods
--- a/src/ext4.c
+++ b/src/ext4.c
@@ -2166,9 +2166,6 @@
if (!mp)
return ENOENT;
- if (mp->fs.read_only)
- return EROFS;
-
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@ -2198,9 +2195,6 @@
if (!mp)
return ENOENT;
- if (mp->fs.read_only)
- return EROFS;
-
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@ -2315,9 +2309,6 @@
if (!mp)
return ENOENT;
- if (mp->fs.read_only)
- return EROFS;
-
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@ -2347,9 +2338,6 @@
if (!mp)
return ENOENT;
- if (mp->fs.read_only)
- return EROFS;
-
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@ -2378,9 +2366,6 @@
if (!mp)
return ENOENT;
-
- if (mp->fs.read_only)
- return EROFS;
EXT4_MP_LOCK(mp);