Skip to content

Commit

Permalink
vfs: add missing xattr related methods to ForwardingFileSystem
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kofemann committed Mar 20, 2020
1 parent 95db0e5 commit a8c0ec1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion 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
Expand Down Expand Up @@ -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);
}
}

0 comments on commit a8c0ec1

Please sign in to comment.