HDFS-6396. Remove support for ACL feature from INodeSymlink. Contributed by Charles Lamb.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1596717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3fae25785
commit
1ad5343c1f
|
@ -120,6 +120,9 @@ Release 2.5.0 - UNRELEASED
|
|||
|
||||
HDFS-6432. Add snapshot related APIs to webhdfs. (jing9)
|
||||
|
||||
HDFS-6396. Remove support for ACL feature from INodeSymlink.
|
||||
(Charles Lamb via wang)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-6214. Webhdfs has poor throughput for files >2GB (daryn)
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.apache.hadoop.fs.permission.PermissionStatus;
|
|||
import org.apache.hadoop.hdfs.DFSUtil;
|
||||
import org.apache.hadoop.hdfs.protocol.QuotaExceededException;
|
||||
import org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot;
|
||||
import org.apache.hadoop.hdfs.server.namenode.AclFeature;
|
||||
|
||||
/**
|
||||
* An {@link INode} representing a symbolic link.
|
||||
|
@ -110,4 +111,23 @@ public class INodeSymlink extends INodeWithAdditionalFields {
|
|||
super.dumpTreeRecursively(out, prefix, snapshot);
|
||||
out.println();
|
||||
}
|
||||
|
||||
/**
|
||||
* getAclFeature is not overridden because it is needed for resolving
|
||||
* symlinks.
|
||||
@Override
|
||||
final AclFeature getAclFeature(int snapshotId) {
|
||||
throw new UnsupportedOperationException("ACLs are not supported on symlinks");
|
||||
}
|
||||
*/
|
||||
|
||||
@Override
|
||||
public void removeAclFeature() {
|
||||
throw new UnsupportedOperationException("ACLs are not supported on symlinks");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addAclFeature(AclFeature f) {
|
||||
throw new UnsupportedOperationException("ACLs are not supported on symlinks");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue