diff options
author | Shuhei Takahashi <nya@google.com> | 2016-05-11 14:04:09 +0900 |
---|---|---|
committer | Shuhei Takahashi <nya@google.com> | 2016-05-11 15:10:27 +0900 |
commit | cfa3262ce46fdec81cb011ec78273df68c325c9c (patch) | |
tree | 88c51801dd53ba3e4c047c4dabbfda1a6b44fff2 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 2010fb6722ea2bd9d07c9f0a3e69eafa3d6114e9 (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
Change-Id: I9314dad6f8d54c66401714af0f66e782ebd8e319
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions