Skip to content

Commit

Permalink
fix(mkdwarfs): use os_access for mapping input filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Jan 1, 2024
1 parent e9688b7 commit d2bb917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mkdwarfs_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,8 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
if (recompress) {
filesystem_options fsopts;
fsopts.image_offset = filesystem_options::IMAGE_OFFSET_AUTO;
input_filesystem = std::make_unique<filesystem_v2>(
lgr, std::make_shared<dwarfs::mmap>(path), fsopts);
input_filesystem =
std::make_unique<filesystem_v2>(lgr, iol.os->map_file(path), fsopts);

cat_resolver = std::make_shared<filesystem_block_category_resolver>(
input_filesystem->get_all_block_categories());
Expand Down

0 comments on commit d2bb917

Please sign in to comment.