public void writeFallbackInitRequest ( long pos ) throws IOException { Preconditions . checkState ( mPartialRequest . getType ( ) == RequestType . UFS_FALLBACK_BLOCK ) ; Protocol . CreateUfsBlockOptions ufsBlockOptions = mPartialRequest . getCreateUfsBlockOptions ( ) . toBuilder ( ) . setBytesInBlockStore ( pos ) . build ( ) ; WriteRequest writeRequest = WriteRequest . newBuilder ( ) . setCommand ( mPartialRequest . toBuilder ( ) . setOffset ( 0 ) . setCreateUfsBlockOptions ( ufsBlockOptions ) ) . build ( ) ; mPosToQueue = pos ; mStream . send ( writeRequest , mDataTimeoutMs ) ; }
Notifies the server UFS fallback endpoint to start writing a new block by resuming the given number of bytes from block store .