mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code cleanup and style refactor.
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user