mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Implement mapblock for Opera.
This commit is contained in:
@@ -8,7 +8,20 @@ namespace DiscImageChef.Filesystems
|
|||||||
{
|
{
|
||||||
public partial class OperaFS
|
public partial class OperaFS
|
||||||
{
|
{
|
||||||
public Errno MapBlock(string path, long fileBlock, out long deviceBlock) => throw new NotImplementedException();
|
public Errno MapBlock(string path, long fileBlock, out long deviceBlock)
|
||||||
|
{
|
||||||
|
deviceBlock = 0;
|
||||||
|
if(!mounted) return Errno.AccessDenied;
|
||||||
|
|
||||||
|
Errno err = GetFileEntry(path, out DirectoryEntryWithPointers entry);
|
||||||
|
if(err != Errno.NoError) return err;
|
||||||
|
|
||||||
|
if((entry.entry.flags & FLAGS_MASK) == (uint)FileFlags.Directory && !debug) return Errno.IsDirectory;
|
||||||
|
|
||||||
|
deviceBlock = entry.pointers[0] + fileBlock;
|
||||||
|
|
||||||
|
return Errno.NoError;
|
||||||
|
}
|
||||||
|
|
||||||
public Errno GetAttributes(string path, out FileAttributes attributes)
|
public Errno GetAttributes(string path, out FileAttributes attributes)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user