// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : Structs.cs // Author(s) : Natalia Portillo // // Component : UnixWare boot 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-2023 Natalia Portillo // ****************************************************************************/ using System.Diagnostics.CodeAnalysis; namespace Aaru.Filesystems; // Information from the Linux kernel /// /// Implements detection of the UNIX boot filesystem public sealed partial class BFS { [SuppressMessage("ReSharper", "InconsistentNaming")] struct SuperBlock { /// 0x00, 0x1BADFACE public uint s_magic; /// 0x04, start in bytes of volume public uint s_start; /// 0x08, end in bytes of volume public uint s_end; /// 0x0C, unknown :p public uint s_from; /// 0x10, unknown :p public uint s_to; /// 0x14, unknown :p public int s_bfrom; /// 0x18, unknown :p public int s_bto; /// 0x1C, 6 bytes, filesystem name public string s_fsname; /// 0x22, 6 bytes, volume name public string s_volume; } }