projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
83e87bd
)
ext4: remove read-only check in get atime/mtime/ctime/mode/own methods
author
gkostka
<kostka.grzegorz@gmail.com>
Thu, 16 Feb 2017 22:22:36 +0000
(23:22 +0100)
committer
gkostka
<kostka.grzegorz@gmail.com>
Thu, 16 Feb 2017 22:22:36 +0000
(23:22 +0100)
src/ext4.c
patch
|
blob
|
history
diff --git
a/src/ext4.c
b/src/ext4.c
index 32d555f0b0c7ab9723209535fd6f7a3a0b9bd4b1..6986e1990350902f3b0c099d749b7b194cf9505b 100644
(file)
--- a/
src/ext4.c
+++ b/
src/ext4.c
@@
-2166,9
+2166,6
@@
int ext4_mode_get(const char *path, uint32_t *mode)
if (!mp)
return ENOENT;
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);
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@
-2198,9
+2195,6
@@
int ext4_owner_get(const char *path, uint32_t *uid, uint32_t *gid)
if (!mp)
return ENOENT;
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);
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@
-2315,9
+2309,6
@@
int ext4_atime_get(const char *path, uint32_t *atime)
if (!mp)
return ENOENT;
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);
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@
-2347,9
+2338,6
@@
int ext4_mtime_get(const char *path, uint32_t *mtime)
if (!mp)
return ENOENT;
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);
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);
@@
-2379,9
+2367,6
@@
int ext4_ctime_get(const char *path, uint32_t *ctime)
if (!mp)
return ENOENT;
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);
EXT4_MP_LOCK(mp);
r = ext4_generic_open2(&f, path, O_RDONLY, EXT4_DE_UNKNOWN, NULL, NULL);