mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
🎨REFACTOR: Plugins do not need to expose their methods as virtual.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// </summary>
|
||||
/// <param name="path">Link path.</param>
|
||||
/// <param name="dest">Link destination.</param>
|
||||
public virtual Errno ReadLink(string path, ref string dest)
|
||||
public Errno ReadLink(string path, ref string dest)
|
||||
{
|
||||
// LisaFS does not support symbolic links (afaik)
|
||||
return Errno.NotSupported;
|
||||
@@ -56,7 +56,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// </summary>
|
||||
/// <param name="path">Directory path.</param>
|
||||
/// <param name="contents">Directory contents.</param>
|
||||
public virtual Errno ReadDir(string path, ref List<string> contents)
|
||||
public Errno ReadDir(string path, ref List<string> contents)
|
||||
{
|
||||
Errno error = LookupFileId(path, out short fileId, out bool isDir);
|
||||
if(error != Errno.NoError) return error;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
{
|
||||
public partial class LisaFS
|
||||
{
|
||||
public virtual Errno MapBlock(string path, long fileBlock, ref long deviceBlock)
|
||||
public Errno MapBlock(string path, long fileBlock, ref long deviceBlock)
|
||||
{
|
||||
// TODO: Not really important.
|
||||
return Errno.NotImplemented;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
{
|
||||
public partial class LisaFS
|
||||
{
|
||||
public virtual Errno GetAttributes(string path, ref FileAttributes attributes)
|
||||
public Errno GetAttributes(string path, ref FileAttributes attributes)
|
||||
{
|
||||
Errno error = LookupFileId(path, out short fileId, out bool isDir);
|
||||
if(error != Errno.NoError) return error;
|
||||
@@ -52,7 +52,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
public virtual Errno Read(string path, long offset, long size, ref byte[] buf)
|
||||
public Errno Read(string path, long offset, long size, ref byte[] buf)
|
||||
{
|
||||
if(size == 0)
|
||||
{
|
||||
@@ -94,7 +94,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
public virtual Errno Stat(string path, ref FileEntryInfo stat)
|
||||
public Errno Stat(string path, ref FileEntryInfo stat)
|
||||
{
|
||||
Errno error = LookupFileId(path, out short fileId, out bool isDir);
|
||||
if(error != Errno.NoError) return error;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
{
|
||||
public partial class LisaFS
|
||||
{
|
||||
public virtual bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
public bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -120,7 +120,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding)
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding)
|
||||
{
|
||||
currentEncoding = new LisaRoman();
|
||||
information = "";
|
||||
|
||||
@@ -54,11 +54,11 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
SRecord[] srecords;
|
||||
ulong volumePrefix;
|
||||
|
||||
public virtual string Name => "Apple Lisa File System";
|
||||
public virtual Guid Id => new Guid("7E6034D1-D823-4248-A54D-239742B28391");
|
||||
public virtual Encoding Encoding => currentEncoding;
|
||||
public string Name => "Apple Lisa File System";
|
||||
public Guid Id => new Guid("7E6034D1-D823-4248-A54D-239742B28391");
|
||||
public Encoding Encoding => currentEncoding;
|
||||
FileSystemType xmlFsType;
|
||||
public virtual FileSystemType XmlFsType => xmlFsType;
|
||||
public FileSystemType XmlFsType => xmlFsType;
|
||||
|
||||
#region Caches
|
||||
/// <summary>Caches Extents Files</summary>
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// <summary>
|
||||
/// Mounts an Apple Lisa filesystem
|
||||
/// </summary>
|
||||
public virtual Errno Mount(IMediaImage imagePlugin, Partition partition, Encoding encoding, bool debug)
|
||||
public Errno Mount(IMediaImage imagePlugin, Partition partition, Encoding encoding, bool debug)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -319,7 +319,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// <summary>
|
||||
/// Umounts this Lisa filesystem
|
||||
/// </summary>
|
||||
public virtual Errno Unmount()
|
||||
public Errno Unmount()
|
||||
{
|
||||
mounted = false;
|
||||
extentCache = null;
|
||||
@@ -340,7 +340,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// Gets information about the mounted volume.
|
||||
/// </summary>
|
||||
/// <param name="stat">Information about the mounted volume.</param>
|
||||
public virtual Errno StatFs(ref FileSystemInfo stat)
|
||||
public Errno StatFs(ref FileSystemInfo stat)
|
||||
{
|
||||
if(!mounted) return Errno.AccessDenied;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// <returns>Error number.</returns>
|
||||
/// <param name="path">Path.</param>
|
||||
/// <param name="xattrs">List of extended attributes, alternate data streams and forks.</param>
|
||||
public virtual Errno ListXAttr(string path, ref List<string> xattrs)
|
||||
public Errno ListXAttr(string path, ref List<string> xattrs)
|
||||
{
|
||||
Errno error = LookupFileId(path, out short fileId, out bool isDir);
|
||||
if(error != Errno.NoError) return error;
|
||||
@@ -61,7 +61,7 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
/// <param name="path">File path.</param>
|
||||
/// <param name="xattr">Extendad attribute, alternate data stream or fork name.</param>
|
||||
/// <param name="buf">Buffer.</param>
|
||||
public virtual Errno GetXattr(string path, string xattr, ref byte[] buf)
|
||||
public Errno GetXattr(string path, string xattr, ref byte[] buf)
|
||||
{
|
||||
Errno error = LookupFileId(path, out short fileId, out bool isDir);
|
||||
if(error != Errno.NoError) return error;
|
||||
|
||||
Reference in New Issue
Block a user