mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-18 17:00:30 -04:00
fix(mkdwarfs): use os_access for mapping input filesystem
This commit is contained in:
parent
e9688b7306
commit
d2bb917df6
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user