2018-12-11 00:39:20 +01:00
|
|
|
using System;
|
|
|
|
using System.IO;
|
2019-01-13 20:17:15 +01:00
|
|
|
using System.Runtime.InteropServices;
|
2018-12-11 00:39:20 +01:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Model.Diagnostics;
|
|
|
|
using MediaBrowser.Model.IO;
|
|
|
|
using MediaBrowser.Model.System;
|
2019-01-13 20:17:15 +01:00
|
|
|
using Microsoft.Extensions.Logging;
|
2018-12-11 00:39:20 +01:00
|
|
|
|
|
|
|
namespace IsoMounter
|
|
|
|
{
|
|
|
|
public class LinuxIsoManager : IIsoMounter
|
|
|
|
{
|
|
|
|
[DllImport("libc", SetLastError = true)]
|
2019-01-13 21:31:14 +01:00
|
|
|
static extern uint getuid();
|
2018-12-11 00:39:20 +01:00
|
|
|
|
|
|
|
#region Private Fields
|
|
|
|
|
|
|
|
private readonly IEnvironmentInfo EnvironmentInfo;
|
|
|
|
private readonly bool ExecutablesAvailable;
|
|
|
|
private readonly IFileSystem FileSystem;
|
2018-12-13 14:18:25 +01:00
|
|
|
private readonly ILogger _logger;
|
2018-12-11 00:39:20 +01:00
|
|
|
private readonly string MountCommand;
|
|
|
|
private readonly string MountPointRoot;
|
|
|
|
private readonly IProcessFactory ProcessFactory;
|
|
|
|
private readonly string SudoCommand;
|
|
|
|
private readonly string UmountCommand;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Constructor(s)
|
|
|
|
|
|
|
|
public LinuxIsoManager(ILogger logger, IFileSystem fileSystem, IEnvironmentInfo environment, IProcessFactory processFactory)
|
|
|
|
{
|
|
|
|
|
|
|
|
EnvironmentInfo = environment;
|
|
|
|
FileSystem = fileSystem;
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger = logger;
|
2018-12-11 00:39:20 +01:00
|
|
|
ProcessFactory = processFactory;
|
|
|
|
|
2019-01-26 21:47:11 +01:00
|
|
|
MountPointRoot = Path.DirectorySeparatorChar + "tmp" + Path.DirectorySeparatorChar + "Emby";
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] System PATH is currently set to [{1}].",
|
|
|
|
Name,
|
2019-01-08 17:29:34 +01:00
|
|
|
Environment.GetEnvironmentVariable("PATH") ?? ""
|
2018-12-11 00:39:20 +01:00
|
|
|
);
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] System path separator is [{1}].",
|
|
|
|
Name,
|
2019-01-08 17:29:34 +01:00
|
|
|
Path.PathSeparator
|
2018-12-11 00:39:20 +01:00
|
|
|
);
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Mount point root is [{1}].",
|
|
|
|
Name,
|
|
|
|
MountPointRoot
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Get the location of the executables we need to support mounting/unmounting ISO images.
|
|
|
|
//
|
|
|
|
|
|
|
|
SudoCommand = GetFullPathForExecutable("sudo");
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Using version of [sudo] located at [{1}].",
|
|
|
|
Name,
|
|
|
|
SudoCommand
|
|
|
|
);
|
|
|
|
|
|
|
|
MountCommand = GetFullPathForExecutable("mount");
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Using version of [mount] located at [{1}].",
|
|
|
|
Name,
|
|
|
|
MountCommand
|
|
|
|
);
|
|
|
|
|
|
|
|
UmountCommand = GetFullPathForExecutable("umount");
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Using version of [umount] located at [{1}].",
|
|
|
|
Name,
|
|
|
|
UmountCommand
|
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (!string.IsNullOrEmpty(SudoCommand) && !string.IsNullOrEmpty(MountCommand) && !string.IsNullOrEmpty(UmountCommand))
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
ExecutablesAvailable = true;
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
ExecutablesAvailable = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Interface Implementation for IIsoMounter
|
|
|
|
|
2019-01-13 21:31:14 +01:00
|
|
|
public bool IsInstalled => true;
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2019-01-13 21:31:14 +01:00
|
|
|
public string Name => "LinuxMount";
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2019-01-13 21:31:14 +01:00
|
|
|
public bool RequiresInstallation => false;
|
2018-12-11 00:39:20 +01:00
|
|
|
|
|
|
|
public bool CanMount(string path)
|
|
|
|
{
|
|
|
|
|
2019-01-08 17:29:34 +01:00
|
|
|
if (EnvironmentInfo.OperatingSystem != MediaBrowser.Model.System.OperatingSystem.Linux)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
return false;
|
|
|
|
}
|
2019-01-08 17:29:34 +01:00
|
|
|
_logger.LogInformation(
|
|
|
|
"[{0}] Checking we can attempt to mount [{1}], Extension = [{2}], Operating System = [{3}], Executables Available = [{4}].",
|
|
|
|
Name,
|
|
|
|
path,
|
|
|
|
Path.GetExtension(path),
|
|
|
|
EnvironmentInfo.OperatingSystem,
|
2019-01-27 12:03:43 +01:00
|
|
|
ExecutablesAvailable
|
2019-01-08 17:29:34 +01:00
|
|
|
);
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2019-01-08 17:29:34 +01:00
|
|
|
if (ExecutablesAvailable)
|
|
|
|
{
|
|
|
|
return string.Equals(Path.GetExtension(path), ".iso", StringComparison.OrdinalIgnoreCase);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public Task Install(CancellationToken cancellationToken)
|
|
|
|
{
|
|
|
|
return Task.FromResult(false);
|
|
|
|
}
|
|
|
|
|
2018-12-15 19:53:09 +01:00
|
|
|
public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken)
|
2018-12-11 00:39:20 +01:00
|
|
|
{
|
2019-01-17 18:47:41 +01:00
|
|
|
if (MountISO(isoPath, out LinuxMount mountedISO))
|
2019-01-13 20:17:15 +01:00
|
|
|
{
|
2018-12-15 19:53:09 +01:00
|
|
|
return Task.FromResult<IIsoMount>(mountedISO);
|
|
|
|
}
|
2019-01-13 20:17:15 +01:00
|
|
|
else
|
|
|
|
{
|
2019-01-06 21:50:43 +01:00
|
|
|
throw new IOException(string.Format(
|
2018-12-11 00:39:20 +01:00
|
|
|
"An error occurred trying to mount image [$0].",
|
|
|
|
isoPath
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Interface Implementation for IDisposable
|
|
|
|
|
|
|
|
// Flag: Has Dispose already been called?
|
|
|
|
private bool disposed = false;
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
|
|
|
|
// Dispose of unmanaged resources.
|
|
|
|
Dispose(true);
|
|
|
|
|
|
|
|
// Suppress finalization.
|
|
|
|
GC.SuppressFinalize(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
protected virtual void Dispose(bool disposing)
|
|
|
|
{
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (disposed)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Disposing [{1}].",
|
|
|
|
Name,
|
2019-01-27 12:03:43 +01:00
|
|
|
disposing
|
2018-12-11 00:39:20 +01:00
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (disposing)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Free managed objects here.
|
|
|
|
//
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Free any unmanaged objects here.
|
|
|
|
//
|
|
|
|
|
|
|
|
disposed = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Private Methods
|
|
|
|
|
|
|
|
private string GetFullPathForExecutable(string name)
|
|
|
|
{
|
|
|
|
|
2019-01-08 17:29:34 +01:00
|
|
|
foreach (string test in (Environment.GetEnvironmentVariable("PATH") ?? "").Split(Path.PathSeparator))
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
string path = test.Trim();
|
|
|
|
|
2019-01-26 22:59:53 +01:00
|
|
|
if (!string.IsNullOrEmpty(path) && File.Exists(path = Path.Combine(path, name)))
|
2019-01-13 20:17:15 +01:00
|
|
|
{
|
2019-01-26 21:47:11 +01:00
|
|
|
return Path.GetFullPath(path);
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-08 17:29:34 +01:00
|
|
|
return string.Empty;
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
private uint GetUID()
|
|
|
|
{
|
|
|
|
|
|
|
|
var uid = getuid();
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2019-01-27 12:03:43 +01:00
|
|
|
"[{0}] GetUserId() returned [{2}].",
|
2018-12-11 00:39:20 +01:00
|
|
|
Name,
|
|
|
|
uid
|
|
|
|
);
|
|
|
|
|
|
|
|
return uid;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private bool ExecuteCommand(string cmdFilename, string cmdArguments)
|
|
|
|
{
|
|
|
|
|
|
|
|
bool processFailed = false;
|
|
|
|
|
|
|
|
var process = ProcessFactory.Create(
|
2019-01-13 20:17:15 +01:00
|
|
|
new ProcessOptions
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
CreateNoWindow = true,
|
|
|
|
RedirectStandardOutput = true,
|
|
|
|
RedirectStandardError = true,
|
|
|
|
UseShellExecute = false,
|
|
|
|
FileName = cmdFilename,
|
|
|
|
Arguments = cmdArguments,
|
|
|
|
IsHidden = true,
|
|
|
|
ErrorDialog = false,
|
|
|
|
EnableRaisingEvents = true
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2018-12-20 13:39:58 +01:00
|
|
|
try
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
process.Start();
|
|
|
|
|
|
|
|
//StreamReader outputReader = process.StandardOutput.;
|
|
|
|
//StreamReader errorReader = process.StandardError;
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-20 13:39:58 +01:00
|
|
|
"[{Name}] Standard output from process is [{Error}].",
|
2018-12-11 00:39:20 +01:00
|
|
|
Name,
|
|
|
|
process.StandardOutput.ReadToEnd()
|
|
|
|
);
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-20 13:39:58 +01:00
|
|
|
"[{Name}] Standard error from process is [{Error}].",
|
2018-12-11 00:39:20 +01:00
|
|
|
Name,
|
|
|
|
process.StandardError.ReadToEnd()
|
|
|
|
);
|
2018-12-20 13:39:58 +01:00
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
processFailed = true;
|
2018-12-20 13:39:58 +01:00
|
|
|
_logger.LogDebug(ex, "[{Name}] Unhandled exception executing command.", Name);
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (!processFailed && process.ExitCode == 0)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
return true;
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private bool MountISO(string isoPath, out LinuxMount mountedISO)
|
|
|
|
{
|
|
|
|
|
|
|
|
string cmdArguments;
|
|
|
|
string cmdFilename;
|
|
|
|
string mountPoint = Path.Combine(MountPointRoot, Guid.NewGuid().ToString());
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (!string.IsNullOrEmpty(isoPath))
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-20 13:39:58 +01:00
|
|
|
"[{Name}] Attempting to mount [{Path}].",
|
2018-12-11 00:39:20 +01:00
|
|
|
Name,
|
|
|
|
isoPath
|
|
|
|
);
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-20 13:39:58 +01:00
|
|
|
"[{Name}] ISO will be mounted at [{Path}].",
|
2018-12-11 00:39:20 +01:00
|
|
|
Name,
|
|
|
|
mountPoint
|
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-01-08 17:29:34 +01:00
|
|
|
|
2018-12-11 00:39:20 +01:00
|
|
|
throw new ArgumentNullException(nameof(isoPath));
|
2019-01-08 17:29:34 +01:00
|
|
|
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
2018-12-20 13:39:58 +01:00
|
|
|
try
|
|
|
|
{
|
2019-01-26 22:08:04 +01:00
|
|
|
Directory.CreateDirectory(mountPoint);
|
2018-12-20 13:39:58 +01:00
|
|
|
}
|
|
|
|
catch (UnauthorizedAccessException)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
throw new IOException("Unable to create mount point(Permission denied) for " + isoPath);
|
2018-12-20 13:39:58 +01:00
|
|
|
}
|
|
|
|
catch (Exception)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
throw new IOException("Unable to create mount point for " + isoPath);
|
|
|
|
}
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (GetUID() == 0)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
cmdFilename = MountCommand;
|
|
|
|
cmdArguments = string.Format("\"{0}\" \"{1}\"", isoPath, mountPoint);
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
cmdFilename = SudoCommand;
|
|
|
|
cmdArguments = string.Format("\"{0}\" \"{1}\" \"{2}\"", MountCommand, isoPath, mountPoint);
|
|
|
|
}
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Mount command [{1}], mount arguments [{2}].",
|
|
|
|
Name,
|
|
|
|
cmdFilename,
|
|
|
|
cmdArguments
|
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (ExecuteCommand(cmdFilename, cmdArguments))
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] ISO mount completed successfully.",
|
|
|
|
Name
|
|
|
|
);
|
|
|
|
|
|
|
|
mountedISO = new LinuxMount(this, isoPath, mountPoint);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] ISO mount completed with errors.",
|
|
|
|
Name
|
|
|
|
);
|
|
|
|
|
2018-12-20 13:39:58 +01:00
|
|
|
try
|
|
|
|
{
|
2019-01-26 22:08:04 +01:00
|
|
|
Directory.Delete(mountPoint, false);
|
2018-12-20 13:39:58 +01:00
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
_logger.LogInformation(ex, "[{Name}] Unhandled exception removing mount point.", Name);
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
mountedISO = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return mountedISO != null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void UnmountISO(LinuxMount mount)
|
|
|
|
{
|
|
|
|
|
|
|
|
string cmdArguments;
|
|
|
|
string cmdFilename;
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (mount != null)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Attempting to unmount ISO [{1}] mounted on [{2}].",
|
|
|
|
Name,
|
|
|
|
mount.IsoPath,
|
|
|
|
mount.MountedPath
|
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-01-08 17:29:34 +01:00
|
|
|
|
2018-12-11 00:39:20 +01:00
|
|
|
throw new ArgumentNullException(nameof(mount));
|
2019-01-08 17:29:34 +01:00
|
|
|
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (GetUID() == 0)
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
cmdFilename = UmountCommand;
|
|
|
|
cmdArguments = string.Format("\"{0}\"", mount.MountedPath);
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
cmdFilename = SudoCommand;
|
|
|
|
cmdArguments = string.Format("\"{0}\" \"{1}\"", UmountCommand, mount.MountedPath);
|
|
|
|
}
|
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogDebug(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] Umount command [{1}], umount arguments [{2}].",
|
|
|
|
Name,
|
|
|
|
cmdFilename,
|
|
|
|
cmdArguments
|
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
if (ExecuteCommand(cmdFilename, cmdArguments))
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] ISO unmount completed successfully.",
|
|
|
|
Name
|
|
|
|
);
|
|
|
|
|
2019-01-13 20:17:15 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-12-11 00:39:20 +01:00
|
|
|
|
2018-12-13 14:18:25 +01:00
|
|
|
_logger.LogInformation(
|
2018-12-11 00:39:20 +01:00
|
|
|
"[{0}] ISO unmount completed with errors.",
|
|
|
|
Name
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-12-20 13:39:58 +01:00
|
|
|
try
|
|
|
|
{
|
2019-01-26 22:08:04 +01:00
|
|
|
Directory.Delete(mount.MountedPath, false);
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
2018-12-20 13:39:58 +01:00
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
_logger.LogInformation(ex, "[{Name}] Unhandled exception removing mount point.", Name);
|
|
|
|
}
|
2018-12-11 00:39:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
2019-01-08 17:29:34 +01:00
|
|
|
|
2018-12-11 00:39:20 +01:00
|
|
|
#region Internal Methods
|
|
|
|
|
|
|
|
internal void OnUnmount(LinuxMount mount)
|
|
|
|
{
|
|
|
|
|
|
|
|
UnmountISO(mount);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|