From 0585f7ee16e8a51a903cd3e8be3e7c7b3cdd8de3 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 8 Feb 2026 13:51:23 +0000 Subject: [PATCH] [cramfs] Mark xattr operations as not supported. --- Aaru.Filesystems/Cram/Unimplemented.cs | 7 ---- Aaru.Filesystems/Cram/Unsupported.cs | 47 ++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 Aaru.Filesystems/Cram/Unsupported.cs diff --git a/Aaru.Filesystems/Cram/Unimplemented.cs b/Aaru.Filesystems/Cram/Unimplemented.cs index 0fbe2a50c..72a08bca3 100644 --- a/Aaru.Filesystems/Cram/Unimplemented.cs +++ b/Aaru.Filesystems/Cram/Unimplemented.cs @@ -29,7 +29,6 @@ // ReSharper disable UnusedMember.Local using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Aaru.CommonTypes.Enums; using Aaru.CommonTypes.Interfaces; @@ -41,12 +40,6 @@ namespace Aaru.Filesystems; [SuppressMessage("ReSharper", "UnusedType.Local")] public sealed partial class Cram { - /// - 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(); diff --git a/Aaru.Filesystems/Cram/Unsupported.cs b/Aaru.Filesystems/Cram/Unsupported.cs new file mode 100644 index 000000000..d68c4e679 --- /dev/null +++ b/Aaru.Filesystems/Cram/Unsupported.cs @@ -0,0 +1,47 @@ +// /*************************************************************************** +// Aaru Data Preservation Suite +// ---------------------------------------------------------------------------- +// +// Filename : Unsupported.cs +// Author(s) : Natalia Portillo +// +// Component : Cram file system 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2026 Natalia Portillo +// ****************************************************************************/ + +using System.Collections.Generic; +using Aaru.CommonTypes.Enums; + +namespace Aaru.Filesystems; + +/// +public sealed partial class Cram +{ + /// + public ErrorNumber ListXAttr(string path, out List xattrs) + { + xattrs = []; + + return ErrorNumber.NotSupported; + } + + /// + public ErrorNumber GetXattr(string path, string xattr, ref byte[] buf) => ErrorNumber.NotSupported; +} \ No newline at end of file