virtiofs: enable test case for mapping virtiofs MAP_PRIVATE (#13964)

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
This commit is contained in:
Ben Hillis 2025-12-23 09:26:20 -08:00 committed by GitHub
parent f3125bb3a3
commit f459aef63d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: