mirror of
https://github.com/microsoft/WSL.git
synced 2026-02-04 02:06:49 -06:00
virtiofs: enable test case for mapping virtiofs MAP_PRIVATE (#13964)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
This commit is contained in:
parent
f3125bb3a3
commit
f459aef63d
@ -3475,6 +3475,10 @@ Return Value:
|
||||
// is what execve uses.
|
||||
//
|
||||
|
||||
LxtCheckMapErrno(Mapping = mmap(NULL, 2, PROT_READ, MAP_PRIVATE, Fd, 0));
|
||||
LxtCheckMemoryEqual(Mapping, "MZ", 2);
|
||||
LxtCheckResult(munmap(Mapping, 2));
|
||||
|
||||
if (g_LxtFsInfo.FsType != LxtFsTypeVirtioFs)
|
||||
{
|
||||
LxtCheckMapErrno(Mapping = mmap(NULL, 2, PROT_READ, MAP_SHARED, Fd, 0));
|
||||
@ -3482,7 +3486,7 @@ Return Value:
|
||||
}
|
||||
else
|
||||
{
|
||||
LxtLogInfo("TODO: debug virtiofs handling of app exec links");
|
||||
LxtLogInfo("TODO: virtiofs does not support MAP_SHARED");
|
||||
}
|
||||
|
||||
ErrorExit:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user