mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Rename analyze command to fs-info.
This commit is contained in:
@@ -129,10 +129,13 @@ namespace Aaru.Server.Controllers
|
||||
if(newstats.Commands != null)
|
||||
foreach(NameValueStats nvs in newstats.Commands)
|
||||
{
|
||||
if(nvs.name == "analyze")
|
||||
nvs.name = "fs-info";
|
||||
|
||||
Command existing = _ctx.Commands.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.Commands.AddAsync(new Command
|
||||
await _ctx.Commands.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -147,7 +150,7 @@ namespace Aaru.Server.Controllers
|
||||
Version existing = _ctx.Versions.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.Versions.AddAsync(new Version
|
||||
await _ctx.Versions.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -162,7 +165,7 @@ namespace Aaru.Server.Controllers
|
||||
Filesystem existing = _ctx.Filesystems.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.Filesystems.AddAsync(new Filesystem
|
||||
await _ctx.Filesystems.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -177,7 +180,7 @@ namespace Aaru.Server.Controllers
|
||||
Partition existing = _ctx.Partitions.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.Partitions.AddAsync(new Partition
|
||||
await _ctx.Partitions.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -192,7 +195,7 @@ namespace Aaru.Server.Controllers
|
||||
MediaFormat existing = _ctx.MediaFormats.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.MediaFormats.AddAsync(new MediaFormat
|
||||
await _ctx.MediaFormats.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -207,7 +210,7 @@ namespace Aaru.Server.Controllers
|
||||
Filter existing = _ctx.Filters.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.Filters.AddAsync(new Filter
|
||||
await _ctx.Filters.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -224,7 +227,7 @@ namespace Aaru.Server.Controllers
|
||||
c.Version == operatingSystem.version);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.OperatingSystems.AddAsync(new OperatingSystem
|
||||
await _ctx.OperatingSystems.AddAsync(new()
|
||||
{
|
||||
Name = operatingSystem.name,
|
||||
Version = operatingSystem.version,
|
||||
@@ -240,7 +243,7 @@ namespace Aaru.Server.Controllers
|
||||
Media existing = _ctx.Medias.FirstOrDefault(c => c.Type == media.type && c.Real == media.real);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.Medias.AddAsync(new Media
|
||||
await _ctx.Medias.AddAsync(new()
|
||||
{
|
||||
Type = media.type,
|
||||
Real = media.real,
|
||||
@@ -258,7 +261,7 @@ namespace Aaru.Server.Controllers
|
||||
c.Revision == device.Revision) where existing == null
|
||||
select device)
|
||||
{
|
||||
await _ctx.DeviceStats.AddAsync(new DeviceStat
|
||||
await _ctx.DeviceStats.AddAsync(new()
|
||||
{
|
||||
Bus = device.Bus,
|
||||
Manufacturer = device.Manufacturer,
|
||||
@@ -275,7 +278,7 @@ namespace Aaru.Server.Controllers
|
||||
c.Version == application.version);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.RemoteApplications.AddAsync(new RemoteApplication
|
||||
await _ctx.RemoteApplications.AddAsync(new()
|
||||
{
|
||||
Name = application.name,
|
||||
Version = application.version,
|
||||
@@ -291,7 +294,7 @@ namespace Aaru.Server.Controllers
|
||||
RemoteArchitecture existing = _ctx.RemoteArchitectures.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.RemoteArchitectures.AddAsync(new RemoteArchitecture
|
||||
await _ctx.RemoteArchitectures.AddAsync(new()
|
||||
{
|
||||
Name = nvs.name,
|
||||
Count = nvs.Value
|
||||
@@ -308,7 +311,7 @@ namespace Aaru.Server.Controllers
|
||||
c.Version == remoteOperatingSystem.version);
|
||||
|
||||
if(existing == null)
|
||||
await _ctx.RemoteOperatingSystems.AddAsync(new RemoteOperatingSystem
|
||||
await _ctx.RemoteOperatingSystems.AddAsync(new()
|
||||
{
|
||||
Name = remoteOperatingSystem.name,
|
||||
Version = remoteOperatingSystem.version,
|
||||
|
||||
@@ -45,13 +45,13 @@ namespace Aaru.Server.Core
|
||||
|
||||
if(newStats.Commands?.Analyze > 0)
|
||||
{
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "analyze");
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "fs-info");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Analyze,
|
||||
Name = "analyze"
|
||||
Name = "fs-info"
|
||||
});
|
||||
else
|
||||
existing.Count += newStats.Commands.Analyze;
|
||||
@@ -62,7 +62,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "benchmark");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Benchmark,
|
||||
Name = "benchmark"
|
||||
@@ -76,7 +76,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "checksum");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Checksum,
|
||||
Name = "checksum"
|
||||
@@ -90,7 +90,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "compare");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Compare,
|
||||
Name = "compare"
|
||||
@@ -104,7 +104,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "create-sidecar");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.CreateSidecar,
|
||||
Name = "create-sidecar"
|
||||
@@ -118,7 +118,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "decode");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Decode,
|
||||
Name = "decode"
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "device-info");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.DeviceInfo,
|
||||
Name = "device-info"
|
||||
@@ -146,7 +146,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "device-report");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.DeviceReport,
|
||||
Name = "device-report"
|
||||
@@ -160,7 +160,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "dump-media");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.DumpMedia,
|
||||
Name = "dump-media"
|
||||
@@ -174,7 +174,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "entropy");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Entropy,
|
||||
Name = "entropy"
|
||||
@@ -188,7 +188,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "formats");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Formats,
|
||||
Name = "formats"
|
||||
@@ -202,7 +202,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "media-info");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.MediaInfo,
|
||||
Name = "media-info"
|
||||
@@ -216,7 +216,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "media-scan");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.MediaScan,
|
||||
Name = "media-scan"
|
||||
@@ -230,7 +230,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "printhex");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.PrintHex,
|
||||
Name = "printhex"
|
||||
@@ -244,7 +244,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "verify");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Verify,
|
||||
Name = "verify"
|
||||
@@ -258,7 +258,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "ls");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.Ls,
|
||||
Name = "ls"
|
||||
@@ -272,7 +272,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "extract-files");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.ExtractFiles,
|
||||
Name = "extract-files"
|
||||
@@ -286,7 +286,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "list-devices");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.ListDevices,
|
||||
Name = "list-devices"
|
||||
@@ -300,7 +300,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "list-encodings");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.ListEncodings,
|
||||
Name = "list-encodings"
|
||||
@@ -314,7 +314,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "convert-image");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.ConvertImage,
|
||||
Name = "convert-image"
|
||||
@@ -328,7 +328,7 @@ namespace Aaru.Server.Core
|
||||
Command existing = ctx.Commands.FirstOrDefault(c => c.Name == "image-info");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Commands.Add(new Command
|
||||
ctx.Commands.Add(new()
|
||||
{
|
||||
Count = newStats.Commands.ImageInfo,
|
||||
Name = "image-info"
|
||||
@@ -350,7 +350,7 @@ namespace Aaru.Server.Core
|
||||
c.Version == operatingSystem.version);
|
||||
|
||||
if(existing == null)
|
||||
ctx.OperatingSystems.Add(new OperatingSystem
|
||||
ctx.OperatingSystems.Add(new()
|
||||
{
|
||||
Count = operatingSystem.Value,
|
||||
Name = operatingSystem.name,
|
||||
@@ -366,7 +366,7 @@ namespace Aaru.Server.Core
|
||||
ctx.OperatingSystems.FirstOrDefault(c => c.Name == "Linux" && c.Version == null);
|
||||
|
||||
if(existing == null)
|
||||
ctx.OperatingSystems.Add(new OperatingSystem
|
||||
ctx.OperatingSystems.Add(new()
|
||||
{
|
||||
Count = 1,
|
||||
Name = "Linux"
|
||||
@@ -385,7 +385,7 @@ namespace Aaru.Server.Core
|
||||
Version existing = ctx.Versions.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
ctx.Versions.Add(new Version
|
||||
ctx.Versions.Add(new()
|
||||
{
|
||||
Count = nvs.Value,
|
||||
Name = nvs.name
|
||||
@@ -399,7 +399,7 @@ namespace Aaru.Server.Core
|
||||
Version existing = ctx.Versions.FirstOrDefault(c => c.Name == "previous");
|
||||
|
||||
if(existing == null)
|
||||
ctx.Versions.Add(new Version
|
||||
ctx.Versions.Add(new()
|
||||
{
|
||||
Count = 1,
|
||||
Name = "previous"
|
||||
@@ -417,7 +417,7 @@ namespace Aaru.Server.Core
|
||||
Filesystem existing = ctx.Filesystems.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
ctx.Filesystems.Add(new Filesystem
|
||||
ctx.Filesystems.Add(new()
|
||||
{
|
||||
Count = nvs.Value,
|
||||
Name = nvs.name
|
||||
@@ -435,7 +435,7 @@ namespace Aaru.Server.Core
|
||||
Partition existing = ctx.Partitions.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
ctx.Partitions.Add(new Partition
|
||||
ctx.Partitions.Add(new()
|
||||
{
|
||||
Count = nvs.Value,
|
||||
Name = nvs.name
|
||||
@@ -453,7 +453,7 @@ namespace Aaru.Server.Core
|
||||
MediaFormat existing = ctx.MediaFormats.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
ctx.MediaFormats.Add(new MediaFormat
|
||||
ctx.MediaFormats.Add(new()
|
||||
{
|
||||
Count = nvs.Value,
|
||||
Name = nvs.name
|
||||
@@ -471,7 +471,7 @@ namespace Aaru.Server.Core
|
||||
Filter existing = ctx.Filters.FirstOrDefault(c => c.Name == nvs.name);
|
||||
|
||||
if(existing == null)
|
||||
ctx.Filters.Add(new Filter
|
||||
ctx.Filters.Add(new()
|
||||
{
|
||||
Count = nvs.Value,
|
||||
Name = nvs.name
|
||||
@@ -489,7 +489,7 @@ namespace Aaru.Server.Core
|
||||
c.Model == device.Model &&
|
||||
c.Revision == device.Revision)))
|
||||
{
|
||||
ctx.DeviceStats.Add(new DeviceStat
|
||||
ctx.DeviceStats.Add(new()
|
||||
{
|
||||
Bus = device.Bus,
|
||||
Manufacturer = device.Manufacturer,
|
||||
@@ -507,7 +507,7 @@ namespace Aaru.Server.Core
|
||||
Media existing = ctx.Medias.FirstOrDefault(c => c.Type == media.type && c.Real == media.real);
|
||||
|
||||
if(existing == null)
|
||||
ctx.Medias.Add(new Media
|
||||
ctx.Medias.Add(new()
|
||||
{
|
||||
Count = media.Value,
|
||||
Real = media.real,
|
||||
|
||||
@@ -1433,7 +1433,7 @@
|
||||
# [2.0] - 2014-07-03
|
||||
## Added
|
||||
### - Commands
|
||||
- analyze: Gives informatio about disk image contents as well as detecting partitions and filesystems.
|
||||
- analyze: Gives information about disk image contents as well as detecting partitions and filesystems.
|
||||
- checksum: Generates CRC32, CRC64, RIPEMD160, MD5, SHA1, SHA256, SHA384 and SHA512 checksums of disk image contents.
|
||||
- compare: Compares two media images.
|
||||
- printhex: Prints a hexadecimal output of a sector.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Aaru Data Preservation Suite v5.2.99.3331
|
||||
Aaru Data Preservation Suite v5.2.99.3380
|
||||
|
||||
Aaru
|
||||
|
||||
@@ -14,7 +14,7 @@ You can see statistics and device reports [here](https://www.aaru.app/Stats)
|
||||
Aaru is a fully featured media dump management solution. You usually know media dumps
|
||||
as disc images, disk images, tape images, etc.
|
||||
|
||||
With Aaru you can analyze a media dump, extract files from it (for supported
|
||||
With Aaru you can identify a media dump, extract files from it (for supported
|
||||
filesystems), compare two of them, create them from real media using the appropriate drive,
|
||||
create a sidecar metadata with information about the media dump, and a lot of other features
|
||||
that commonly would require you to use separate applications.
|
||||
@@ -43,7 +43,7 @@ Or read the [documentation](https://github.com/aaru-dps/Aaru.Documentation/blob/
|
||||
|
||||
Features
|
||||
========
|
||||
* Analyzes a disk image getting information about the disk itself and analyzes partitions and filesystems inside them
|
||||
* Identifies a disk image getting information about the disk itself and shows information about partitions and filesystems inside them
|
||||
* Can checksum the disks (and if optical disc, separate tracks) user-data (tags and metadata coming soon)
|
||||
* Can compare two disk images, even different formats, for different sectors and/or metadata
|
||||
* Can list and extract contents from supported filesystems
|
||||
|
||||
Reference in New Issue
Block a user