From c82e42cf8a808e3245c8a01add2b2404cce8889f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 28 Feb 2026 10:58:52 +0000 Subject: [PATCH] [ECMA67] Mark unsupported operations as such. --- Aaru.Filesystems/ECMA67/Unimplemented.cs | 9 ---- Aaru.Filesystems/ECMA67/Unsupported.cs | 58 ++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 9 deletions(-) create mode 100644 Aaru.Filesystems/ECMA67/Unsupported.cs diff --git a/Aaru.Filesystems/ECMA67/Unimplemented.cs b/Aaru.Filesystems/ECMA67/Unimplemented.cs index 8e4e6d510..e521740e8 100644 --- a/Aaru.Filesystems/ECMA67/Unimplemented.cs +++ b/Aaru.Filesystems/ECMA67/Unimplemented.cs @@ -31,7 +31,6 @@ // ****************************************************************************/ using System; -using System.Collections.Generic; using Aaru.CommonTypes.Enums; using Aaru.CommonTypes.Interfaces; using Aaru.CommonTypes.Structs; @@ -40,20 +39,12 @@ namespace Aaru.Filesystems; public sealed partial class ECMA67 { - /// - public ErrorNumber ListXAttr(string path, out List xattrs) => throw new NotImplementedException(); - - /// - public ErrorNumber GetXattr(string path, string xattr, ref byte[] buf) => throw new NotImplementedException(); - /// public ErrorNumber StatFs(out FileSystemInfo stat) => throw new NotImplementedException(); /// public ErrorNumber Stat(string path, out FileEntryInfo stat) => throw new NotImplementedException(); - /// - public ErrorNumber ReadLink(string path, out string dest) => throw new NotImplementedException(); /// public ErrorNumber OpenFile(string path, out IFileNode node) => throw new NotImplementedException(); diff --git a/Aaru.Filesystems/ECMA67/Unsupported.cs b/Aaru.Filesystems/ECMA67/Unsupported.cs new file mode 100644 index 000000000..7e614a0cb --- /dev/null +++ b/Aaru.Filesystems/ECMA67/Unsupported.cs @@ -0,0 +1,58 @@ +// /*************************************************************************** +// Aaru Data Preservation Suite +// ---------------------------------------------------------------------------- +// +// Filename : Unsupported.cs +// Author(s) : Natalia Portillo +// +// Component : ECMA-67 plugin. +// +// --[ Description ] ---------------------------------------------------------- +// +// Operations not supported by the ECMA-67 file system. +// +// --[ 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2026 Natalia Portillo +// ****************************************************************************/ + +using System.Collections.Generic; +using Aaru.CommonTypes.Enums; + +namespace Aaru.Filesystems; + +public sealed partial class ECMA67 +{ + /// + public ErrorNumber ListXAttr(string path, out List xattrs) + { + xattrs = []; + + return ErrorNumber.NotSupported; + } + + /// + public ErrorNumber GetXattr(string path, string xattr, ref byte[] buf) => ErrorNumber.NotSupported; + + /// + public ErrorNumber ReadLink(string path, out string dest) + { + dest = null; + + return ErrorNumber.NotSupported; + } +} \ No newline at end of file