From 0d9f5e1e95f3e62c8b7c070160cf80181519043a Mon Sep 17 00:00:00 2001 From: adam <1312adam@gmail.com> Date: Mon, 10 Aug 2026 22:56:21 +0200 Subject: [PATCH 1/2] Ensure GetFileSystemProperties is called only on ONLINE volumes. --- client/data/Methods/VDS/VdsClass.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/data/Methods/VDS/VdsClass.cs b/client/data/Methods/VDS/VdsClass.cs index 305c632..e9d4a2a 100644 --- a/client/data/Methods/VDS/VdsClass.cs +++ b/client/data/Methods/VDS/VdsClass.cs @@ -13,6 +13,7 @@ public static class VDSClass { //COM HResults public const uint HR_PROPERTIES_INCOMPLETE = 0x00042715u; + public const uint VDS_E_NO_MEDIA = 0x80042412u; private const int DRIVE_LETTER_COUNT = 26; public static IVdsService Create() @@ -128,8 +129,8 @@ public static List GetDisksInfo() vdsExtents.AddRange(extents); } - - if (volume is IVdsVolumeMF volumeMf) + + if (volumeProps.Status == VDS_VOLUME_STATUS.ONLINE && volume is IVdsVolumeMF volumeMf) { hr = volumeMf.GetFileSystemProperties(out VDS_FILE_SYSTEM_PROP fileSystemProp); if (hr != 0 && hr != HR_PROPERTIES_INCOMPLETE) From 16e6af1e4bbe4425dcd33eac774bbe6a07cee1f3 Mon Sep 17 00:00:00 2001 From: Adam1213 <1312adam@gmail.com> Date: Mon, 10 Aug 2026 23:08:34 +0200 Subject: [PATCH 2/2] Remove unneeded constant --- client/data/Methods/VDS/VdsClass.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/client/data/Methods/VDS/VdsClass.cs b/client/data/Methods/VDS/VdsClass.cs index e9d4a2a..0d8d3ef 100644 --- a/client/data/Methods/VDS/VdsClass.cs +++ b/client/data/Methods/VDS/VdsClass.cs @@ -13,7 +13,6 @@ public static class VDSClass { //COM HResults public const uint HR_PROPERTIES_INCOMPLETE = 0x00042715u; - public const uint VDS_E_NO_MEDIA = 0x80042412u; private const int DRIVE_LETTER_COUNT = 26; public static IVdsService Create()