// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : Consts.cs // Author(s) : Natalia Portillo // // Component : Acorn 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-2024 Natalia Portillo // ****************************************************************************/ namespace Aaru.Filesystems; /// /// Implements detection of Acorn's Advanced Data Filing System (ADFS) public sealed partial class AcornADFS { /// Location for boot block, in bytes const ulong BOOT_BLOCK_LOCATION = 0xC00; /// Size of boot block, in bytes const uint BOOT_BLOCK_SIZE = 0x200; /// Location of new directory, in bytes const ulong NEW_DIRECTORY_LOCATION = 0x400; /// Location of old directory, in bytes const ulong OLD_DIRECTORY_LOCATION = 0x200; /// Size of old directory const uint OLD_DIRECTORY_SIZE = 1280; /// Size of new directory const uint NEW_DIRECTORY_SIZE = 2048; /// New directory format magic number, "Nick" const uint NEW_DIR_MAGIC = 0x6B63694E; /// Old directory format magic number, "Hugo" const uint OLD_DIR_MAGIC = 0x6F677548; const string FS_TYPE = "adfs"; }