|
|
@ -26,6 +26,7 @@ namespace NzbDrone.Mono.Disk
|
|
|
|
private static Dictionary<string, bool> _fileSystems;
|
|
|
|
private static Dictionary<string, bool> _fileSystems;
|
|
|
|
|
|
|
|
|
|
|
|
private readonly Logger _logger;
|
|
|
|
private readonly Logger _logger;
|
|
|
|
|
|
|
|
private bool _hasLoggedProcMountFailure = false;
|
|
|
|
|
|
|
|
|
|
|
|
public ProcMountProvider(Logger logger)
|
|
|
|
public ProcMountProvider(Logger logger)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -45,7 +46,11 @@ namespace NzbDrone.Mono.Disk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.Debug(ex, "Failed to retrieve mounts from {0}", PROC_MOUNTS_FILENAME);
|
|
|
|
if (!_hasLoggedProcMountFailure)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.Debug(ex, "Failed to retrieve mounts from {0}", PROC_MOUNTS_FILENAME);
|
|
|
|
|
|
|
|
_hasLoggedProcMountFailure = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new List<IMount>();
|
|
|
|
return new List<IMount>();
|
|
|
|