From ae32caa05df2b04aa0d3cdb70a0f08ce8fe2ae31 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Thu, 30 Apr 2026 16:03:26 +0200 Subject: [PATCH] Fix incorrect quota size reported This PR partially re-introduces the logic attempting to get the free space for a specific path. The code before this would incorrectly always return the free space of `/` on non-Windows, instead of the actual mounted path's free space. --- Duplicati/Library/Utility/Utility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Utility/Utility.cs b/Duplicati/Library/Utility/Utility.cs index 9b721f721..c8748548c 100644 --- a/Duplicati/Library/Utility/Utility.cs +++ b/Duplicati/Library/Utility/Utility.cs @@ -2104,7 +2104,7 @@ namespace Duplicati.Library.Utility } else if (!OperatingSystem.IsWindows()) { - var driveInfo = new DriveInfo(root); + var driveInfo = new DriveInfo(path); if (driveInfo.TotalSize > 0) return (driveInfo.AvailableFreeSpace, driveInfo.TotalSize); }