String clientName,
DatanodeInfo[] excludedNodes,
DatanodeInfo[] favoredNodes,
boolean needVersion)
throws IOException {
BlockMetaInfoType type =
needVersion ? BlockMetaInfoType.VERSION : BlockMetaInfoType.NONE;
return addBlock(src, clientName, excludedNodes, null, -1, null, type);
}