DFSOutputStream(DFSClient dfsClient, String src, int buffersize,
Progressable progress, LocatedBlock lastBlock, FileStatus stat,
int bytesPerChecksum, int namespaceId) throws IOException {
this(dfsClient, src, stat.getBlockSize(), progress, bytesPerChecksum,
stat.getReplication(), false, false, null,
new WriteOptions());
initialFileSize = stat.getLen(); // length of file when opened
dfsClient.updateNamespaceIdIfNeeded(namespaceId);
//
// The last partial block of the file has to be filled.
//