Migrate to erofs-utils v1.8
Test: th
Change-Id: I83a24fbd80d422555e61ec6e30ef473a27f04fea
diff --git a/lz4diff/lz4diff_compress_unittest.cc b/lz4diff/lz4diff_compress_unittest.cc
index d05c6be..9caa9a3 100644
--- a/lz4diff/lz4diff_compress_unittest.cc
+++ b/lz4diff/lz4diff_compress_unittest.cc
@@ -14,10 +14,10 @@
// limitations under the License.
//
+#include <fcntl.h>
#include <unistd.h>
#include <algorithm>
-#include <mutex>
#include <string>
#include <vector>
@@ -48,10 +48,10 @@
const char* inode_path,
Blob* output) {
struct erofs_sb_info sbi {};
- auto err = dev_open_ro(&sbi, erofs_image);
+ auto err = erofs_dev_open(&sbi, erofs_image, O_RDONLY);
ASSERT_EQ(err, 0);
DEFER {
- dev_close(&sbi);
+ erofs_dev_close(&sbi);
};
err = erofs_read_superblock(&sbi);