Optical disc recorder and buffer management method thereof
Abstract
A buffer management method is provided. A host issues a read command requesting access for a read data block and a write command requesting recording of a write data block. A write buffer is dedicated to store the write data block. A read buffer is dedicated to store the read data block. The method comprises entering the optical disc recorder into a write loop. During the write loop, the optical disc recorder triggering a write command handling procedure in response to the write command; triggering a read command handling procedure in response to the read command; and triggering a pre-recording procedure to prepare the write data block in the write buffer for recording. Wherein contents between the write buffer and read buffer are exchangeable during the write handling procedure, the read handling procedure or the pre-recording procedure.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A buffer management method for a storage device, wherein the storage device comprises a read buffer, a write buffer and a storage medium, the method comprising:
receiving a write command and a write data block from a host for storing the write data block to the storage medium; storing the write data block into a write buffer and a read buffer; receiving a read command from the host; and outputting the write data block from the read buffer to the host as a response to the read command, wherein the write data block associate with the read command.
2 . The buffer management method as claimed in claim 1 , further comprising:
accessing a read data block from the storage medium according to the read command; determining whether the read data block accessed from the storage medium contributes to the integrity of an ECC block in the write buffer; and copying the read data block to the write buffer.
3 . A buffer management method for a storage device, wherein the storage device comprises a read buffer, a write buffer and a storage medium, the method comprising:
receiving a write command and a write data block from a host for storing the write data block to the storage medium; storing the write data block into a write buffer determining whether the received write data block is an update version of an original data block stored in the read buffer; and copying the write data block from the write buffer to the read buffer if the determination result is positive
4 . The buffer management method as claimed in claim 3 , further comprising:
receiving a read command from the host; accessing a read data block from the storage medium according to the read command; determining whether the read data block accessed from the storage medium contributes to the integrity of an ECC block in the write buffer; and copying the read data block to the write buffer.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.