diff options
author | Shuhei Takahashi <nya@google.com> | 2016-05-11 14:04:09 +0900 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2016-05-23 12:53:16 -0700 |
commit | 2e6e99128acead0b8a996e9775dc157988946d92 (patch) | |
tree | e542df792c6392c75bcbac4a98b978009d31d280 /libc/stdio/stdio_ext.cpp | |
parent | ccfcc8ced7346abdf80f4b9f77b5cc0b2164bf15 (diff) |
Run fsync tests on mutable filesystem.
The purpose of those tests is to ensure fsync succeeds for
directories. However, they try to call fsync for / (the root
filesystem) that is usually mounted read-only, which does not
make sense because the whole point of fsync is to flush
uncommitted changes to the filesystem.
In fact, some well-known read-only filesystems (e.g. squashfs)
does not support fsync, so these tests fail if we use such
filesystems as the root filesystem.
This patch changes the tests to call fsync against /data
instead. /data is a user data partition and should be always
mounted read-write.
Bug: 28681455
(cherry picked from commit cfa3262ce46fdec81cb011ec78273df68c325c9c)
Change-Id: I3e50f7b6ef07e96138711eef1f678f90cc9eb632
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions