Skip to content

Commit

Permalink
Fixed: Exclude /snap/* locations from disk space
Browse files Browse the repository at this point in the history
Closes #2743
  • Loading branch information
markus101 committed Oct 8, 2018
1 parent a4f63e7 commit 1304bc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/NzbDrone.Mono/Disk/DiskProvider.cs
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -268,8 +268,6 @@ private uint GetGroupId(string group)
}

return g.gr_gid;


}
}
}
8 changes: 7 additions & 1 deletion src/NzbDrone.Mono/Disk/ProcMountProvider.cs
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -117,6 +117,12 @@ private IMount ParseLine(string line)
return null;
}

if (mount.StartsWith("/snap/"))
{
// Mount point for snap packages
return null;
}

var driveType = FindDriveType.Find(type);

if (name.StartsWith("/dev/") || GetFileSystems().GetValueOrDefault(type, false))
Expand Down

0 comments on commit 1304bc8

Please sign in to comment.