More System->Disk Space cleanup.

This commit is contained in:
Taloth Saldono 2017-08-10 18:50:08 +02:00
parent 9471343533
commit 0e85e39815
3 changed files with 3 additions and 2 deletions

View File

@ -133,6 +133,7 @@ namespace NzbDrone.Core.Test.DiskSpace
[TestCase("/boot")]
[TestCase("/var/lib/rancher")]
[TestCase("/var/lib/rancher/volumes")]
[TestCase("/var/lib/kubelet")]
[TestCase("/var/lib/docker")]
[TestCase("/some/place/docker/aufs")]

View File

@ -23,7 +23,7 @@ namespace NzbDrone.Core.DiskSpace
private readonly IDiskProvider _diskProvider;
private readonly Logger _logger;
private static readonly Regex _regexSpecialDrive = new Regex("^/var/lib/(docker|rancher|kubelet)$|^/boot$|docker(/var)?/aufs", RegexOptions.Compiled);
private static readonly Regex _regexSpecialDrive = new Regex("^/var/lib/(docker|rancher|kubelet)(/|$)|^/boot(/|$)|/docker(/var)?/aufs(/|$)", RegexOptions.Compiled);
public DiskSpaceService(ISeriesService seriesService, IConfigService configService, IDiskProvider diskProvider, Logger logger)
{

View File

@ -11,7 +11,7 @@ module.exports = Backgrid.Cell.extend({
var contents = path;
if (label) {
if (label && label !== path && !label.startsWith("UUID=")) {
contents += ' ({0})'.format(label);
}