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
(cherry picked from commit a8c0ec1)
Signed-off-by: Tigran Mkrtchyan <[email protected]>
  • Loading branch information
kofemann committed Mar 20, 2020
1 parent 3ea96e0 commit d8abb6d
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
Original file line number Diff line number Diff line change
@@ -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 d8abb6d

Please sign in to comment.