private long getFileSize(INodeFile f) { long size = 0; for (BlockProto p : f.getBlocksList()) { size += p.getNumBytes(); } return size; }