HDFS-6629. Not able to create symlinks after HDFS-6516 (umamaheswararao)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/fs-encryption@1608389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c386652828
commit
83702b0707
@ -37,6 +37,8 @@ fs-encryption (Unreleased)
|
|||||||
|
|
||||||
HDFS-6516. List of Encryption Zones should be based on inodes (clamb)
|
HDFS-6516. List of Encryption Zones should be based on inodes (clamb)
|
||||||
|
|
||||||
|
HDFS-6629. Not able to create symlinks after HDFS-6516 (umamaheswararao)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -2230,15 +2230,16 @@ public class FSDirectory implements Closeable {
|
|||||||
public final void addToInodeMap(INode inode) {
|
public final void addToInodeMap(INode inode) {
|
||||||
if (inode instanceof INodeWithAdditionalFields) {
|
if (inode instanceof INodeWithAdditionalFields) {
|
||||||
inodeMap.put(inode);
|
inodeMap.put(inode);
|
||||||
|
if (!inode.isSymlink()) {
|
||||||
final XAttrFeature xaf = inode.getXAttrFeature();
|
final XAttrFeature xaf = inode.getXAttrFeature();
|
||||||
if (xaf != null) {
|
if (xaf != null) {
|
||||||
final List<XAttr> xattrs = xaf.getXAttrs();
|
final List<XAttr> xattrs = xaf.getXAttrs();
|
||||||
for (XAttr xattr : xattrs) {
|
for (XAttr xattr : xattrs) {
|
||||||
final String xaName = XAttrHelper.getPrefixName(xattr);
|
final String xaName = XAttrHelper.getPrefixName(xattr);
|
||||||
if (CRYPTO_XATTR_ENCRYPTION_ZONE.equals(xaName)) {
|
if (CRYPTO_XATTR_ENCRYPTION_ZONE.equals(xaName)) {
|
||||||
encryptionZones.put(inode.getId(),
|
encryptionZones.put(inode.getId(), new EncryptionZoneInt(
|
||||||
new EncryptionZoneInt(new String(xattr.getValue()),
|
new String(xattr.getValue()), inode.getId()));
|
||||||
inode.getId()));
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user