-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update Microsoft.WSL.Kernel to 6.18.20.1 #40161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
01e1b22
09c5e02
f217a58
2a21f7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -285,7 +285,7 @@ Return Value: | |
| snprintf( | ||
| Plan9Options, | ||
| sizeof(Plan9Options), | ||
| "aname=drvfs;path=%s%s;symlinkroot=/mnt/,cache=5,access=client,msize=262144,trans=virtio", | ||
| "aname=drvfs;path=%s%s;symlinkroot=/mnt/,cache=0x5,access=client,msize=262144,trans=virtio", | ||
| Plan9Source, | ||
| Temp); | ||
| } | ||
|
|
@@ -294,7 +294,7 @@ Return Value: | |
| snprintf( | ||
| Plan9Options, | ||
| sizeof(Plan9Options), | ||
| "aname=drvfs;path=%s%s;symlinkroot=/mnt/,cache=5,access=client,msize=65536,trans=fd,rfd=*,wfd=*", | ||
| "aname=drvfs;path=%s%s;symlinkroot=/mnt/,cache=0x5,access=client,msize=65536,trans=fd,rfd=*,wfd=*", | ||
| Plan9Source, | ||
| Temp); | ||
|
Comment on lines
294
to
299
|
||
| } | ||
|
|
@@ -3652,8 +3652,6 @@ Return Value: | |
| // Test an invalid buffer after a valid buffer. The writev call should return the | ||
| // number of bytes written until the invalid buffer. | ||
| // | ||
| // N.B. The plan 9 client does not follow this behavior, and will write nothing. | ||
| // | ||
|
|
||
| LxtCheckErrno(FileDescriptor = open(TestFile, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)); | ||
| memset(Iov, 0, sizeof(Iov)); | ||
|
|
@@ -3664,11 +3662,6 @@ Return Value: | |
| Iov[2].iov_base = ContentB; | ||
| Iov[2].iov_len = sizeof(ContentB); | ||
| LxtLogInfo("%d", g_LxtFsInfo.FsType); | ||
| if (g_LxtFsInfo.FsType == LxtFsTypePlan9) | ||
| { | ||
| LxtCheckErrnoFailure(Bytes = writev(FileDescriptor, Iov, 3), EFAULT); | ||
| } | ||
| else | ||
| { | ||
| LxtCheckErrno(Bytes = writev(FileDescriptor, Iov, 3)); | ||
| LxtCheckEqual(Bytes, sizeof(ContentA), "%d"); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1774,7 +1774,7 @@ Error code: Wsl/InstallDistro/WSL_E_DISTRO_NOT_FOUND | |
| VERIFY_ARE_EQUAL( | ||
| LxsstuLaunchWsl( | ||
| L"mount | grep -iF '" TEXT( | ||
| LXSS_GPU_DRIVERS_SHARE) L" on /usr/lib/wsl/drivers type 9p (ro,nosuid,nodev,noatime,aname=" TEXT(LXSS_GPU_DRIVERS_SHARE) L";fmask=222;dmask=222,cache=5,access=client,msize=65536,trans=fd,rfd=8,wfd=8)'", | ||
| LXSS_GPU_DRIVERS_SHARE) L" on /usr/lib/wsl/drivers type 9p (ro,nosuid,nodev,noatime,aname=" TEXT(LXSS_GPU_DRIVERS_SHARE) L";fmask=222;dmask=222,cache=0x5,access=client,msize=65536,trans=fd,rfd=8,wfd=8)'", | ||
| nullptr, | ||
| nullptr, | ||
| nullptr, | ||
|
Comment on lines
1774
to
1780
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
cache=0x5literal is duplicated across multiple option strings, and hard-codes a particular textual representation that may vary by kernel/userspace. To reduce future churn, consider centralizing the cache option formatting (e.g., a shared constant or helper that can emit either decimal/hex or accept a parameter), or making the test/consumer tolerant of either representation.