// /*************************************************************************** // The Disc Image Chef // ---------------------------------------------------------------------------- // // Filename : CPM.cs // Author(s) : Natalia Portillo // // Component : CP/M filesystem plugin. // // --[ Description ] ---------------------------------------------------------- // // Constructors and common variables for the CP/M filesystem plugin. // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2018 Natalia Portillo // ****************************************************************************/ using System; using System.Collections.Generic; using System.Text; using DiscImageChef.CommonTypes; using DiscImageChef.DiscImages; using Schemas; namespace DiscImageChef.Filesystems.CPM { partial class CPM : IReadOnlyFilesystem { /// /// True if thinks this is a CP/M filesystem /// bool cpmFound; /// /// Cached /// FileSystemInfo cpmStat; /// /// Cached file passwords, decoded /// Dictionary decodedPasswordCache; /// /// Stores all known CP/M disk definitions /// CpmDefinitions definitions; IMediaImage device; /// /// Cached directory listing /// List dirList; /// /// CP/M disc parameter block (on-memory) /// DiscParameterBlock dpb; /// /// Cached file data /// Dictionary fileCache; /// /// The volume label, if the CP/M filesystem contains one /// string label; /// /// Timestamp in volume label for creation /// byte[] labelCreationDate; /// /// Timestamp in volume label for update /// byte[] labelUpdateDate; bool mounted; Partition partition; /// /// Cached file passwords /// Dictionary passwordCache; /// /// Sector deinterleaving mask /// int[] sectorMask; /// /// True if there are CP/M 3 timestamps /// bool standardTimestamps; /// /// Cached file /// Dictionary statCache; /// /// True if there are timestamps in Z80DOS or DOS+ format /// bool thirdPartyTimestamps; /// /// If thinks this is a CP/M filesystem, this is the definition for it /// CpmDefinition workingDefinition; public FileSystemType XmlFsType { get; private set; } public Encoding Encoding { get; private set; } public string Name => "CP/M File System"; public Guid Id => new Guid("AA2B8585-41DF-4E3B-8A35-D1A935E2F8A1"); } }