mirror of https://github.com/microsoft/WSL
WSLA: Store instanceId for virtiofs so the shares can be cleaned up later
This commit is contained in:
parent
68a6c4869d
commit
f303964dc5
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue