Chromium Code Reviews| Index: base/files/file.h |
| diff --git a/base/files/file.h b/base/files/file.h |
| index 13c8a96fcefe29ad89112946e705ae86e07790bd..4dcad33af2ccb683bae98f8c430af9552a43cd14 100644 |
| --- a/base/files/file.h |
| +++ b/base/files/file.h |
| @@ -253,10 +253,15 @@ class BASE_EXPORT File { |
| // doesn't exist, |false| is returned. |
| bool SetLength(int64 length); |
| - // Instructs the filesystem to flush the file to disk. (POSIX: fsync, Windows: |
| - // FlushFileBuffers). |
| + // Instructs the filesystem to flush the file data and metadata to disk. |
| + // (POSIX: fsync, Windows: FlushFileBuffers) |
| bool Flush(); |
| + // Instructs the filesystem to flush the file data to disk. Not necessarily |
| + // flushes metadata like modification time. |
| + // (Linux: fdatasync, other platforms: same as Flush()) |
|
rvargas (doing something else)
2015/03/20 18:56:05
I don't think we want to end up with two methods t
hashimoto
2015/03/20 19:38:56
Good point, I thought someone might be relying on
rvargas (doing something else)
2015/03/20 21:43:00
PSA sounds fine.
|
| + bool FlushData(); |
| + |
| // Updates the file times. |
| bool SetTimes(Time last_access_time, Time last_modified_time); |