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:
@@ -56,10 +56,12 @@ public sealed partial class SFS
|
||||
}
|
||||
|
||||
/// <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)
|
||||
{
|
||||
information = "";
|
||||
Encoding = encoding ?? Encoding.GetEncoding("iso-8859-1");
|
||||
metadata = new FileSystem();
|
||||
ErrorNumber errno = imagePlugin.ReadSector(partition.Start, out byte[] rootBlockSector);
|
||||
|
||||
if(errno != ErrorNumber.NoError)
|
||||
@@ -106,7 +108,7 @@ public sealed partial class SFS
|
||||
|
||||
information = sbInformation.ToString();
|
||||
|
||||
Metadata = new FileSystem
|
||||
metadata = new FileSystem
|
||||
{
|
||||
CreationDate = DateHandlers.UnixUnsignedToDateTime(rootBlock.datecreated).AddYears(8),
|
||||
Clusters = rootBlock.totalblocks,
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.AaruMetadata;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
@@ -37,8 +36,6 @@ namespace Aaru.Filesystems;
|
||||
/// <summary>Implements detection of the Smart File System</summary>
|
||||
public sealed partial class SFS : IFilesystem
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public FileSystem Metadata { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public Encoding Encoding { get; private set; }
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user