diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-01-27 17:57:35 -0500 |
---|---|---|
committer | Sean Anderson <sean.anderson@seco.com> | 2022-01-27 17:59:59 -0500 |
commit | 7eab31d9dfc22cd6be594ca750b58a269c0e11ad (patch) | |
tree | b1d99f111fd0825a370ac8863b97a3b993dc8bd3 /partition_tools | |
parent | 83d05f1329e42743b2699fd2e035c4d75efa643c (diff) | |
download | extras-7eab31d9dfc22cd6be594ca750b58a269c0e11ad.tar.gz |
partition_tools: Use enum for sparse_file_read mode
sparse_file_read now uses an enum instead of a bool for the mode
parameter to allow more than two modes. Update our use in lpadd.
Change-Id: Ibd264f2d32de988385b0e8893d804a514d816a66
Diffstat (limited to 'partition_tools')
-rw-r--r-- | partition_tools/lpadd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/partition_tools/lpadd.cc b/partition_tools/lpadd.cc index 48cad720..a92de955 100644 --- a/partition_tools/lpadd.cc +++ b/partition_tools/lpadd.cc @@ -398,7 +398,7 @@ bool SuperHelper::Finalize() { sparse_file_verbose(sf.get()); std::cout << "Writing sparse super image... " << std::endl; - if (sparse_file_read(sf.get(), super_fd_, false, false) != 0) { + if (sparse_file_read(sf.get(), super_fd_, SPARSE_READ_MODE_NORMAL, false) != 0) { std::cerr << "Could not import super partition for sparsing.\n"; return false; } |