mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Make Encoding a private field only for IReadOnlyFilesystem implementors.
This commit is contained in:
@@ -77,9 +77,9 @@ public sealed partial class NILFS2
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, Encoding encoding, out string information,
|
||||
out FileSystem metadata)
|
||||
{
|
||||
Encoding = encoding ?? Encoding.UTF8;
|
||||
information = "";
|
||||
metadata = new FileSystem();
|
||||
encoding ??= Encoding.UTF8;
|
||||
information = "";
|
||||
metadata = new FileSystem();
|
||||
|
||||
if(imagePlugin.Info.SectorSize < 512)
|
||||
return;
|
||||
@@ -124,7 +124,7 @@ public sealed partial class NILFS2
|
||||
sb.AppendFormat(Localization._0_bytes_per_inode, nilfsSb.inode_size).AppendLine();
|
||||
sb.AppendFormat(Localization.Volume_UUID_0, nilfsSb.uuid).AppendLine();
|
||||
|
||||
sb.AppendFormat(Localization.Volume_name_0, StringHandlers.CToString(nilfsSb.volume_name, Encoding)).
|
||||
sb.AppendFormat(Localization.Volume_name_0, StringHandlers.CToString(nilfsSb.volume_name, encoding)).
|
||||
AppendLine();
|
||||
|
||||
sb.AppendFormat(Localization.Volume_created_on_0, DateHandlers.UnixUnsignedToDateTime(nilfsSb.ctime)).
|
||||
@@ -142,7 +142,7 @@ public sealed partial class NILFS2
|
||||
{
|
||||
Type = FS_TYPE,
|
||||
ClusterSize = (uint)(1 << (int)(nilfsSb.log_block_size + 10)),
|
||||
VolumeName = StringHandlers.CToString(nilfsSb.volume_name, Encoding),
|
||||
VolumeName = StringHandlers.CToString(nilfsSb.volume_name, encoding),
|
||||
VolumeSerial = nilfsSb.uuid.ToString(),
|
||||
CreationDate = DateHandlers.UnixUnsignedToDateTime(nilfsSb.ctime),
|
||||
ModificationDate = DateHandlers.UnixUnsignedToDateTime(nilfsSb.wtime)
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
// ReSharper disable UnusedMember.Local
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
@@ -38,8 +37,6 @@ namespace Aaru.Filesystems;
|
||||
/// <summary>Implements detection of the New Implementation of a Log-structured File System v2</summary>
|
||||
public sealed partial class NILFS2 : IFilesystem
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public Encoding Encoding { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string Name => Localization.NILFS2_Name;
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user