mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move filesystem metadata to GetInformation method for information only plugins.
This commit is contained in:
@@ -79,10 +79,12 @@ public sealed partial class UNICOS
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding)
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, Encoding encoding, out string information,
|
||||
out FileSystem metadata)
|
||||
{
|
||||
Encoding = encoding ?? Encoding.GetEncoding("iso-8859-15");
|
||||
information = "";
|
||||
metadata = new FileSystem();
|
||||
|
||||
if(imagePlugin.Info.SectorSize < 512)
|
||||
return;
|
||||
@@ -129,7 +131,7 @@ public sealed partial class UNICOS
|
||||
|
||||
information = sb.ToString();
|
||||
|
||||
Metadata = new FileSystem
|
||||
metadata = new FileSystem
|
||||
{
|
||||
Type = FS_TYPE,
|
||||
ClusterSize = 4096,
|
||||
@@ -138,6 +140,6 @@ public sealed partial class UNICOS
|
||||
ModificationDate = DateHandlers.UnixToDateTime(unicosSb.s_time)
|
||||
};
|
||||
|
||||
Metadata.Dirty |= unicosSb.s_error > 0;
|
||||
metadata.Dirty |= unicosSb.s_error > 0;
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,6 @@
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.AaruMetadata;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using blkno_t = System.Int64;
|
||||
using daddr_t = System.Int64;
|
||||
@@ -45,8 +44,6 @@ namespace Aaru.Filesystems;
|
||||
/// <summary>Implements detection for the Cray UNICOS filesystem</summary>
|
||||
public sealed partial class UNICOS : IFilesystem
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public FileSystem Metadata { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public Encoding Encoding { get; private set; }
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user