code: public void removeTail(int iSizeToShrink) throws IOException {
      final int filledUpTo = getFilledUpTo();
      if (filledUpTo < iSizeToShrink)
        iSizeToShrink = 0;
  
      setFilledUpTo(filledUpTo - iSizeToShrink);
    }
docs: /*
  (non-Javadoc)
  
  @see com.orientechnologies.orient.core.storage.fs.OFileAAA#removeTail(int)