|
@@ -82,7 +82,7 @@ public class TestINodeFile {
|
|
|
|
|
|
INodeFile createINodeFile(short replication, long preferredBlockSize) {
|
|
|
return new INodeFile(INodeId.GRANDFATHER_INODE_ID, null, perm, 0L, 0L,
|
|
|
- null, replication, preferredBlockSize, false);
|
|
|
+ null, replication, preferredBlockSize);
|
|
|
}
|
|
|
/**
|
|
|
* Test for the Replication value. Sets a value and checks if it was set
|
|
@@ -259,7 +259,7 @@ public class TestINodeFile {
|
|
|
INodeFile[] iNodes = new INodeFile[nCount];
|
|
|
for (int i = 0; i < nCount; i++) {
|
|
|
iNodes[i] = new INodeFile(i, null, perm, 0L, 0L, null, replication,
|
|
|
- preferredBlockSize, false);
|
|
|
+ preferredBlockSize);
|
|
|
iNodes[i].setLocalName(DFSUtil.string2Bytes(fileNamePrefix + i));
|
|
|
BlockInfo newblock = new BlockInfo(replication);
|
|
|
iNodes[i].addBlock(newblock);
|
|
@@ -316,7 +316,7 @@ public class TestINodeFile {
|
|
|
|
|
|
{//cast from INodeFileUnderConstruction
|
|
|
final INode from = new INodeFile(
|
|
|
- INodeId.GRANDFATHER_INODE_ID, null, perm, 0L, 0L, null, replication, 1024L, false);
|
|
|
+ INodeId.GRANDFATHER_INODE_ID, null, perm, 0L, 0L, null, replication, 1024L);
|
|
|
from.asFile().toUnderConstruction("client", "machine");
|
|
|
|
|
|
//cast to INodeFile, should success
|
|
@@ -1079,7 +1079,7 @@ public class TestINodeFile {
|
|
|
public void testFileUnderConstruction() {
|
|
|
replication = 3;
|
|
|
final INodeFile file = new INodeFile(INodeId.GRANDFATHER_INODE_ID, null,
|
|
|
- perm, 0L, 0L, null, replication, 1024L, false);
|
|
|
+ perm, 0L, 0L, null, replication, 1024L);
|
|
|
assertFalse(file.isUnderConstruction());
|
|
|
|
|
|
final String clientName = "client";
|