General code cleanup and style refactor.

This commit is contained in:
2022-11-15 15:58:43 +00:00
parent f59ecffb59
commit 2f9b7fe0a1
1324 changed files with 36815 additions and 37688 deletions

View File

@@ -31,14 +31,6 @@
// ****************************************************************************/
// UNICOS is ILP64 so let's think everything is 64-bit
using blkno_t = System.Int64;
using daddr_t = System.Int64;
using dev_t = System.Int64;
using extent_t = System.Int64;
using ino_t = System.Int64;
using time_t = System.Int64;
namespace Aaru.Filesystems;
using System;
using System.Diagnostics.CodeAnalysis;
@@ -50,7 +42,15 @@ using Aaru.CommonTypes.Interfaces;
using Aaru.Console;
using Aaru.Helpers;
using Schemas;
using blkno_t = System.Int64;
using daddr_t = System.Int64;
using dev_t = System.Int64;
using extent_t = System.Int64;
using ino_t = System.Int64;
using Marshal = Aaru.Helpers.Marshal;
using time_t = System.Int64;
namespace Aaru.Filesystems;
/// <inheritdoc />
/// <summary>Implements detection for the Cray UNICOS filesystem</summary>
@@ -79,7 +79,7 @@ public sealed class UNICOS : IFilesystem
if(imagePlugin.Info.SectorSize < 512)
return false;
var sbSize = (uint)(Marshal.SizeOf<Superblock>() / imagePlugin.Info.SectorSize);
uint sbSize = (uint)(Marshal.SizeOf<Superblock>() / imagePlugin.Info.SectorSize);
if(Marshal.SizeOf<Superblock>() % imagePlugin.Info.SectorSize != 0)
sbSize++;
@@ -112,7 +112,7 @@ public sealed class UNICOS : IFilesystem
if(imagePlugin.Info.SectorSize < 512)
return;
var sbSize = (uint)(Marshal.SizeOf<Superblock>() / imagePlugin.Info.SectorSize);
uint sbSize = (uint)(Marshal.SizeOf<Superblock>() / imagePlugin.Info.SectorSize);
if(Marshal.SizeOf<Superblock>() % imagePlugin.Info.SectorSize != 0)
sbSize++;