Fixed: /var/lib/docker no longer shows up in DiskSpace. Caused warnings if the user used docker with zfs storage driver.

fixes #1663
This commit is contained in:
Taloth Saldono 2017-02-07 22:44:31 +01:00
parent 0255eb3aca
commit 657730f4d2
1 changed files with 6 additions and 0 deletions

View File

@ -111,6 +111,12 @@ namespace NzbDrone.Mono.Disk
return null;
}
if (mount.StartsWith("/var/lib/"))
{
// Could be /var/lib/docker when docker uses zfs. Very unlikely that a useful mount is located in /var/lib.
return null;
}
var driveType = FindDriveType.Find(type);
if (name.StartsWith("/dev/") || GetFileSystems().GetValueOrDefault(type, false))