More System->Disk Space cleanup.
This commit is contained in:
parent
9471343533
commit
0e85e39815
|
@ -133,6 +133,7 @@ namespace NzbDrone.Core.Test.DiskSpace
|
||||||
|
|
||||||
[TestCase("/boot")]
|
[TestCase("/boot")]
|
||||||
[TestCase("/var/lib/rancher")]
|
[TestCase("/var/lib/rancher")]
|
||||||
|
[TestCase("/var/lib/rancher/volumes")]
|
||||||
[TestCase("/var/lib/kubelet")]
|
[TestCase("/var/lib/kubelet")]
|
||||||
[TestCase("/var/lib/docker")]
|
[TestCase("/var/lib/docker")]
|
||||||
[TestCase("/some/place/docker/aufs")]
|
[TestCase("/some/place/docker/aufs")]
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace NzbDrone.Core.DiskSpace
|
||||||
private readonly IDiskProvider _diskProvider;
|
private readonly IDiskProvider _diskProvider;
|
||||||
private readonly Logger _logger;
|
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)
|
public DiskSpaceService(ISeriesService seriesService, IConfigService configService, IDiskProvider diskProvider, Logger logger)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ module.exports = Backgrid.Cell.extend({
|
||||||
|
|
||||||
var contents = path;
|
var contents = path;
|
||||||
|
|
||||||
if (label) {
|
if (label && label !== path && !label.startsWith("UUID=")) {
|
||||||
contents += ' ({0})'.format(label);
|
contents += ' ({0})'.format(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue