mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fixed: Exclude /snap/* locations from disk space
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
4347e92bef
commit
6103afcc09
2 changed files with 7 additions and 3 deletions
|
@ -268,8 +268,6 @@ namespace NzbDrone.Mono.Disk
|
||||||
}
|
}
|
||||||
|
|
||||||
return g.gr_gid;
|
return g.gr_gid;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -117,6 +117,12 @@ namespace NzbDrone.Mono.Disk
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mount.StartsWith("/snap/"))
|
||||||
|
{
|
||||||
|
// Mount point for snap packages
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var driveType = FindDriveType.Find(type);
|
var driveType = FindDriveType.Find(type);
|
||||||
|
|
||||||
if (name.StartsWith("/dev/") || GetFileSystems().GetValueOrDefault(type, false))
|
if (name.StartsWith("/dev/") || GetFileSystems().GetValueOrDefault(type, false))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue