diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2017-02-16 23:22:36 +0100 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2017-02-16 23:22:36 +0100 |
| commit | ec5adbc6757768592da6917a07f6bc1c588ad2f8 (patch) | |
| tree | 53f51d456a0d717cde170c5db7d1720a728080ac /src | |
| parent | 83e87bd113dc957d4a9185cd6ff67c2268602436 (diff) | |
ext4: remove read-only check in get atime/mtime/ctime/mode/own methods
Diffstat (limited to 'src')
| -rw-r--r-- | src/ext4.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -2166,9 +2166,6 @@ int ext4_mode_get(const char *path, uint32_t *mode) 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 @@ int ext4_owner_get(const char *path, uint32_t *uid, uint32_t *gid) 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 @@ int ext4_atime_get(const char *path, uint32_t *atime) 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 @@ int ext4_mtime_get(const char *path, uint32_t *mtime) 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); @@ -2379,9 +2367,6 @@ int ext4_ctime_get(const char *path, uint32_t *ctime) 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); |
