summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-03-06 19:27:35 -0800
committerDavid Anderson <dvander@google.com>2019-03-06 19:32:20 -0800
commit6b4b265abf69e30d16d6dd94b6fc26d0af617b96 (patch)
treef2e55d483c36bb44e246ca5ede3c398f9dae4c59 /libsparse/sparse.cpp
parent98efc485deb62b84a2b8274ba089a4a10fa27ac2 (diff)
Add write support to SplitFiemap.
This adds few new methods to introduce write support to SplitFiemap: (1) Write(), which has an internal cursor to stream data into the split files. As the end of one file is reached, the next is opened. (2) Flush(), which calls fsync() on each internal FiemapWriter. (3) HasPinnedExtents(), which calls the same on each internal FiemapWriter. Included are some tests for edge cases in Write(). Bug: 126230649 Test: fiemap_writer_test gtest Change-Id: I9fd509215975dbbb20a44b020315d3c1b287d1a0
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions