diff options
Diffstat (limited to 'include/llfio/v2.0/detail/impl/posix/import.hpp')
-rw-r--r-- | include/llfio/v2.0/detail/impl/posix/import.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llfio/v2.0/detail/impl/posix/import.hpp b/include/llfio/v2.0/detail/impl/posix/import.hpp index 0ff3248c..d7e10dcb 100644 --- a/include/llfio/v2.0/detail/impl/posix/import.hpp +++ b/include/llfio/v2.0/detail/impl/posix/import.hpp @@ -70,9 +70,12 @@ inline result<int> attribs_from_handle_mode_caching_and_flags(native_handle_type case handle::creation::if_needed: attribs |= O_CREAT; break; - case handle::creation::truncate: + case handle::creation::truncate_existing: attribs |= O_TRUNC; break; + case handle::creation::always_new: + attribs |= O_CREAT | O_EXCL; + break; } switch(_caching) { |