mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-02-04 00:44:39 +00:00
[exFAT] Mark xattr and readlink as not supported operations.
This commit is contained in:
@@ -27,7 +27,6 @@
|
|||||||
// ****************************************************************************/
|
// ****************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Aaru.CommonTypes.Enums;
|
using Aaru.CommonTypes.Enums;
|
||||||
using Aaru.CommonTypes.Interfaces;
|
using Aaru.CommonTypes.Interfaces;
|
||||||
using Aaru.CommonTypes.Structs;
|
using Aaru.CommonTypes.Structs;
|
||||||
@@ -45,11 +44,6 @@ public sealed partial class exFAT
|
|||||||
public ErrorNumber GetAttributes(string path, out CommonTypes.Structs.FileAttributes attributes) =>
|
public ErrorNumber GetAttributes(string path, out CommonTypes.Structs.FileAttributes attributes) =>
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public ErrorNumber ListXAttr(string path, out List<string> xattrs) => throw new NotImplementedException();
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public ErrorNumber GetXattr(string path, string xattr, ref byte[] buf) => throw new NotImplementedException();
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ErrorNumber StatFs(out FileSystemInfo stat) => throw new NotImplementedException();
|
public ErrorNumber StatFs(out FileSystemInfo stat) => throw new NotImplementedException();
|
||||||
@@ -57,8 +51,6 @@ public sealed partial class exFAT
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ErrorNumber Stat(string path, out FileEntryInfo stat) => throw new NotImplementedException();
|
public ErrorNumber Stat(string path, out FileEntryInfo stat) => throw new NotImplementedException();
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public ErrorNumber ReadLink(string path, out string dest) => throw new NotImplementedException();
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ErrorNumber OpenFile(string path, out IFileNode node) => throw new NotImplementedException();
|
public ErrorNumber OpenFile(string path, out IFileNode node) => throw new NotImplementedException();
|
||||||
|
|||||||
56
Aaru.Filesystems/exFAT/Unsupported.cs
Normal file
56
Aaru.Filesystems/exFAT/Unsupported.cs
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
// /***************************************************************************
|
||||||
|
// Aaru Data Preservation Suite
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Filename : Unsupported.cs
|
||||||
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||||
|
//
|
||||||
|
// Component : Microsoft exFAT filesystem plugin.
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU Lesser General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 2.1 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful, but
|
||||||
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2011-2026 Natalia Portillo
|
||||||
|
// ****************************************************************************/
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Aaru.CommonTypes.Enums;
|
||||||
|
|
||||||
|
namespace Aaru.Filesystems;
|
||||||
|
|
||||||
|
// Information from https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/FileIO/exfat-specification.md
|
||||||
|
/// <inheritdoc />
|
||||||
|
public sealed partial class exFAT
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public ErrorNumber ListXAttr(string path, out List<string> xattrs)
|
||||||
|
{
|
||||||
|
xattrs = [];
|
||||||
|
|
||||||
|
return ErrorNumber.NotSupported;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public ErrorNumber GetXattr(string path, string xattr, ref byte[] buf) => ErrorNumber.NotSupported;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public ErrorNumber ReadLink(string path, out string dest)
|
||||||
|
{
|
||||||
|
dest = null;
|
||||||
|
|
||||||
|
return ErrorNumber.NotSupported;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user