mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add support for negative sectors to read and write sector calls in images.
This commit is contained in:
@@ -72,7 +72,11 @@ public sealed partial class FFSPlugin
|
||||
foreach(ulong loc in locations.Where(loc => partition.End > partition.Start + loc + sbSizeInSectors))
|
||||
{
|
||||
ErrorNumber errno =
|
||||
imagePlugin.ReadSectors(partition.Start + loc, sbSizeInSectors, out byte[] ufsSbSectors, out _);
|
||||
imagePlugin.ReadSectors(partition.Start + loc,
|
||||
false,
|
||||
sbSizeInSectors,
|
||||
out byte[] ufsSbSectors,
|
||||
out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) continue;
|
||||
|
||||
@@ -135,7 +139,11 @@ public sealed partial class FFSPlugin
|
||||
|
||||
foreach(ulong loc in locations.Where(loc => partition.End > partition.Start + loc + sb_size_in_sectors))
|
||||
{
|
||||
errno = imagePlugin.ReadSectors(partition.Start + loc, sb_size_in_sectors, out ufs_sb_sectors, out _);
|
||||
errno = imagePlugin.ReadSectors(partition.Start + loc,
|
||||
false,
|
||||
sb_size_in_sectors,
|
||||
out ufs_sb_sectors,
|
||||
out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) continue;
|
||||
|
||||
@@ -214,7 +222,7 @@ public sealed partial class FFSPlugin
|
||||
}
|
||||
|
||||
// Fun with seeking follows on superblock reading!
|
||||
errno = imagePlugin.ReadSectors(sb_offset, sb_size_in_sectors, out ufs_sb_sectors, out _);
|
||||
errno = imagePlugin.ReadSectors(sb_offset, false, sb_size_in_sectors, out ufs_sb_sectors, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user