From 62af5f0b4a01a8b2d373c5d03e1b0c7f3770033d Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 31 Oct 2024 19:32:51 +0100 Subject: [PATCH] restic: test path handling of volume shadow copy root path --- internal/fs/node_windows_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/fs/node_windows_test.go b/internal/fs/node_windows_test.go index 730740fe0..b40483f31 100644 --- a/internal/fs/node_windows_test.go +++ b/internal/fs/node_windows_test.go @@ -451,6 +451,13 @@ func TestPrepareVolumeName(t *testing.T) { expectError: false, expectedEASupported: false, }, + { + name: "Volume Shadow Copy root", + path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`, + expectedVolume: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1`, + expectError: false, + expectedEASupported: false, + }, { name: "Volume Shadow Copy path", path: `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Users\test`,