diff options
| author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-02-25 22:54:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-02-25 22:54:49 +0000 |
| commit | 032b7448092f86ab763e377e9892f8229e1ff9cc (patch) | |
| tree | 3dd89fc32758abca7f763f54afa7cbe594626d56 | |
| parent | 3be9bff5172e14c7cc7953f589d05cdcab95a10f (diff) | |
| parent | 3d001e7ebb19ead1642b593f364dd5e6438e749a (diff) | |
Merge "fiemap_writer: Use fallocate64"
| -rw-r--r-- | fs_mgr/libfiemap_writer/fiemap_writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs_mgr/libfiemap_writer/fiemap_writer.cpp b/fs_mgr/libfiemap_writer/fiemap_writer.cpp index b9b75f87e9..5b8a9c262e 100644 --- a/fs_mgr/libfiemap_writer/fiemap_writer.cpp +++ b/fs_mgr/libfiemap_writer/fiemap_writer.cpp @@ -225,7 +225,7 @@ static bool AllocateFile(int file_fd, const std::string& file_path, uint64_t blo // don't come back unwritten. Return from this function with the kernel file offset set to 0. // If the filesystem is f2fs, then we also PIN the file on disk to make sure the blocks // aren't moved around. - if (fallocate(file_fd, FALLOC_FL_ZERO_RANGE, 0, file_size)) { + if (fallocate64(file_fd, FALLOC_FL_ZERO_RANGE, 0, file_size)) { PLOG(ERROR) << "Failed to allocate space for file: " << file_path << " size: " << file_size; return false; } |
