From a8c0ec1b1027c1cf65c60330f2dbcf68f9dd2443 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Fri, 20 Mar 2020 09:32:41 +0100 Subject: [PATCH] vfs: add missing xattr related methods to ForwardingFileSystem Motivation: the decorator must forward all methods to avoid default behavior. Modification: add missing xattr related methods ForwardingFileSystem Result: the methods of decorated class is used instead of default behaviour. Acked-by: Albert Rossi Target: master, 0.20 --- .../dcache/nfs/vfs/ForwardingFileSystem.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/dcache/nfs/vfs/ForwardingFileSystem.java b/core/src/main/java/org/dcache/nfs/vfs/ForwardingFileSystem.java index 4f968e55b..c53117230 100644 --- a/core/src/main/java/org/dcache/nfs/vfs/ForwardingFileSystem.java +++ b/core/src/main/java/org/dcache/nfs/vfs/ForwardingFileSystem.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 - 2017 Deutsches Elektronen-Synchroton, + * Copyright (c) 2009 - 2020 Deutsches Elektronen-Synchroton, * Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY * * This library is free software; you can redistribute it and/or modify @@ -160,4 +160,23 @@ public byte[] directoryVerifier(Inode inode) throws IOException { return delegate().directoryVerifier(inode); } + @Override + public byte[] getXattr(Inode inode, String attr) throws IOException { + return delegate().getXattr(inode, attr); + } + + @Override + public void setXattr(Inode inode, String attr, byte[] value, SetXattrMode mode) throws IOException { + delegate().setXattr(inode, attr, value, mode); + } + + @Override + public String[] listXattrs(Inode inode) throws IOException { + return delegate().listXattrs(inode); + } + + @Override + public void removeXattr(Inode inode, String attr) throws IOException { + delegate().removeXattr(inode, attr); + } }