File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
include/llfio/v2.0/detail/impl Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ result<mapped_file_handle::size_type> mapped_file_handle::_reserve(extent_type &
59
59
}
60
60
// Reserve the full reservation in address space
61
61
section_handle::flag mapflags = section_handle::flag::nocommit | section_handle::flag::read;
62
+ mapflags |= _sh.section_flags () & section_handle::flag::cow;
62
63
if (this ->is_writable ())
63
64
{
64
65
mapflags |= section_handle::flag::write;
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ result<mapped_file_handle::size_type> mapped_file_handle::_reserve(extent_type &
63
63
return _reservation;
64
64
}
65
65
section_handle::flag mapflags = section_handle::flag::read;
66
+ mapflags |= _sh.section_flags () & section_handle::flag::cow;
66
67
auto map_size = reservation;
67
68
// Reserve the full reservation in address space
68
69
if (this ->is_writable ())
You can’t perform that action at this time.
0 commit comments