From f303964dc52c9a2238224f63ce1eb56c24e6124e Mon Sep 17 00:00:00 2001 From: Ben Hillis Date: Mon, 15 Dec 2025 12:52:47 -0800 Subject: [PATCH] WSLA: Store instanceId for virtiofs so the shares can be cleaned up later --- src/windows/wslaservice/exe/WSLAVirtualMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/wslaservice/exe/WSLAVirtualMachine.cpp b/src/windows/wslaservice/exe/WSLAVirtualMachine.cpp index 48b3b27..85e941d 100644 --- a/src/windows/wslaservice/exe/WSLAVirtualMachine.cpp +++ b/src/windows/wslaservice/exe/WSLAVirtualMachine.cpp @@ -1200,7 +1200,7 @@ try else { const bool admin = wsl::windows::common::security::IsTokenElevated(userToken.get()); - m_guestDeviceManager->AddGuestDevice( + instanceId = m_guestDeviceManager->AddGuestDevice( VIRTIO_FS_DEVICE_ID, admin ? WSLA_VIRTIO_FS_ADMIN_CLASS_ID : WSLA_VIRTIO_FS_CLASS_ID, shareName.c_str(),