mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add field on device report for command F1h subommand 06h.
This commit is contained in:
Submodule Aaru.CommonTypes updated: 0071240fc0...ec984cc2bd
@@ -1454,6 +1454,44 @@
|
||||
@("<null>")
|
||||
}
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.CanReadF1_06)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.CanReadF1_06)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ReadF1_06Data)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@if(Model.ReadF1_06Data != null)
|
||||
{
|
||||
<a asp-action="ViewData" target="_blank" asp-route-id="@Model.Id" asp-route-data="@nameof(Model.ReadF1_06Data)">@Model.ReadF1_06Data.Length bytes</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@("<null>")
|
||||
}
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.CanReadF1_06LeadOut)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.CanReadF1_06LeadOut)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ReadF1_06LeadOutData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@if(Model.ReadF1_06LeadOutData != null)
|
||||
{
|
||||
<a asp-action="ViewData" target="_blank" asp-route-id="@Model.Id" asp-route-data="@nameof(Model.ReadF1_06LeadOutData)">@Model.ReadF1_06Data.Length bytes</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@("<null>")
|
||||
}
|
||||
</dd>
|
||||
</dl>
|
||||
<form asp-action="Delete">
|
||||
<input type="hidden" asp-for="Id" />
|
||||
|
||||
@@ -1453,6 +1453,44 @@
|
||||
@("<null>")
|
||||
}
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.CanReadF1_06)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.CanReadF1_06)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ReadF1_06Data)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@if(Model.ReadF1_06Data != null)
|
||||
{
|
||||
<a asp-action="ViewData" target="_blank" asp-route-id="@Model.Id" asp-route-data="@nameof(Model.ReadF1_06Data)">@Model.ReadF1_06Data.Length bytes</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@("<null>")
|
||||
}
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.CanReadF1_06LeadOut)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.CanReadF1_06LeadOut)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ReadF1_06LeadOutData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@if(Model.ReadF1_06LeadOutData != null)
|
||||
{
|
||||
<a asp-action="ViewData" target="_blank" asp-route-id="@Model.Id" asp-route-data="@nameof(Model.ReadF1_06LeadOutData)">@Model.ReadF1_06LeadOutData.Length bytes</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@("<null>")
|
||||
}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -383,6 +383,12 @@ namespace Aaru.Server.App_Start
|
||||
if(testedMedia.CanReadCdScrambled == true)
|
||||
mediaOneValue.Add("Device can read scrambled sectors using standard READ CD command");
|
||||
|
||||
if(testedMedia.CanReadF1_06 == true)
|
||||
mediaOneValue.Add("Device can read from cache using F1h command with subcommand 06h");
|
||||
|
||||
if(testedMedia.CanReadF1_06LeadOut == true)
|
||||
mediaOneValue.Add("Device can read Lead-Out from cache using F1h command with subcommand 06h");
|
||||
|
||||
mediaOneValue.Add("");
|
||||
}
|
||||
}
|
||||
|
||||
2985
Aaru.Server/Migrations/20200711180338_AddFieldsForF1hCommand06hSubcommand.Designer.cs
generated
Normal file
2985
Aaru.Server/Migrations/20200711180338_AddFieldsForF1hCommand06hSubcommand.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Aaru.Server.Migrations
|
||||
{
|
||||
public partial class AddFieldsForF1hCommand06hSubcommand : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>("CanReadF1_06", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>("CanReadF1_06LeadOut", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<byte[]>("ReadF1_06Data", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<byte[]>("ReadF1_06LeadOutData", "TestedMedia", nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn("CanReadF1_06", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("CanReadF1_06LeadOut", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("ReadF1_06Data", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("ReadF1_06LeadOutData", "TestedMedia");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace Aaru.Server.Migrations
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "3.0.0").HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
modelBuilder.HasAnnotation("ProductVersion", "3.1.5").HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Ata", b =>
|
||||
{
|
||||
@@ -1043,6 +1043,10 @@ namespace Aaru.Server.Migrations
|
||||
|
||||
b.Property<bool?>("CanReadDiscInformation").HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool?>("CanReadF1_06").HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool?>("CanReadF1_06LeadOut").HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool?>("CanReadFirstTrackPreGap").HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool?>("CanReadFullTOC").HasColumnType("tinyint(1)");
|
||||
@@ -1207,6 +1211,10 @@ namespace Aaru.Server.Migrations
|
||||
|
||||
b.Property<byte[]>("ReadDmaRetryLbaData").HasColumnType("longblob");
|
||||
|
||||
b.Property<byte[]>("ReadF1_06Data").HasColumnType("longblob");
|
||||
|
||||
b.Property<byte[]>("ReadF1_06LeadOutData").HasColumnType("longblob");
|
||||
|
||||
b.Property<byte[]>("ReadLba48Data").HasColumnType("longblob");
|
||||
|
||||
b.Property<byte[]>("ReadLbaData").HasColumnType("longblob");
|
||||
|
||||
Reference in New Issue
Block a user