Details
Description
Fix file quota change when converting a file with striped blocks from complete/under-construction to under-construction/complete state. When we add a new block (FSDirectory#addBlock) we update the quota using the full block size (since we do not know how much data the user will write to
the new block), and when we complete/commit the block, the quota is updated based on the block's real size (FSNamesystem#commitOrCompleteLastBlock). Currently these two places only support contiguous blocks (using INodeFile#getPreferredBlockSize as the full block size). We should update them for striped blocks.