You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there seems to be an issue when, a Mmap is created and on an empty file.
I get an "The volume for a file has been externally altered so that the opened file is no longer valid." error under windows.
You can add this to the tests to reproduce.
I also noticed the offset test is not working on Windows.
use std::fs::File;
#[test]
fn map_empty_file_copy() {
let tempdir = tempdir::TempDir::new("mmap").unwrap();
let path = tempdir.path().join("mmap");
let file = OpenOptions::new()
.read(true)
.write(true)
.create(true)
.open(&path)
.unwrap();
let get_mmap = |file:&File| -> Mmap {
unsafe { Mmap::map(&file).unwrap() }
};
let mmap = get_mmap(&file);
}
The text was updated successfully, but these errors were encountered:
PSeitz
changed the title
Empty Files not working, when moving Mmap
Empty Files not working when moving Mmap
Mar 18, 2018
Hi, there seems to be an issue when, a Mmap is created and on an empty file.
I get an "The volume for a file has been externally altered so that the opened file is no longer valid." error under windows.
You can add this to the tests to reproduce.
I also noticed the offset test is not working on Windows.
The text was updated successfully, but these errors were encountered: