private static void verifyTargetFile(FSDirectory fsd, final String target, final INodesInPath targetIIP) throws IOException { // check the target if (fsd.getEZForPath(targetIIP) != null) { throw new HadoopIllegalArgumentException( "concat can not be called for files in an encryption zone."); } final INodeFile targetINode = INodeFile.valueOf(targetIIP.getLastINode(), target); if(targetINode.isUnderConstruction()) { throw new HadoopIllegalArgumentException("concat: target file " + target + " is under construction"); } }
private static void verifyTargetFile(FSDirectory fsd, final String target, final INodesInPath targetIIP) throws IOException { // check the target if (fsd.getEZForPath(targetIIP) != null) { throw new HadoopIllegalArgumentException( "concat can not be called for files in an encryption zone."); } final INodeFile targetINode = INodeFile.valueOf(targetIIP.getLastINode(), target); if(targetINode.isUnderConstruction()) { throw new HadoopIllegalArgumentException("concat: target file " + target + " is under construction"); } }
src = iip.getPath(); final EncryptionZone zone = dir.getEZForPath(iip); if (zone != null) { protocolVersion = chooseProtocolVersion(zone, supportedVersions);
EncryptionZone encryptionZone = getEZForPath(iip); if (encryptionZone == null) {
dir.checkPathAccess(pc, iip, FsAction.READ); final EncryptionZone ret = dir.getEZForPath(iip); resultingStat = dir.getAuditFileInfo(iip); success = true;
dir.checkPathAccess(pc, iip, FsAction.READ); final EncryptionZone ret = dir.getEZForPath(iip); resultingStat = dir.getAuditFileInfo(iip); success = true;
src = iip.getPath(); final EncryptionZone zone = dir.getEZForPath(iip); if (zone != null) { protocolVersion = chooseProtocolVersion(zone, supportedVersions);
EncryptionZone encryptionZone = getEZForPath(iip); if (encryptionZone == null) {
final EncryptionZone zone = dir.getEZForPath(iip); if (zone != null) {
final EncryptionZone zone = dir.getEZForPath(iip); if (zone != null) {