Commit a8c0ec1b authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

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
parent 95db0e59
/*
* 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 abstract class ForwardingFileSystem implements VirtualFileSystem {
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);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment