Method and apparatus for processing a sequential file
A method and apparatus for processing a sequential file stored in a block-type memory device. It has surprisingly been found out that by storing metadata ( 106 ) associated with the sequential file in that memory block of the block-type memory device which contains an ending location ( 104 ) of payload data ( 103 ), the write operation associated with the update of the sequential file needs in nearly all situations to be directed to only one memory block of the memory device, the memory block being the memory block containing the ending location of the payload data.
1 . A method for processing a sequential file stored in a block-type memory device, wherein metadata associated with said sequential file is written in a memory block of said block-type memory device, which memory block contains an ending location of payload data contained in said sequential file.
2 . A method according to claim 1 , wherein said sequential file is updated by writing both the payload data to be added in the sequential file and the metadata associated with the updated sequential file in a memory block of said block-type memory device, said memory block containing the ending location of the payload data contained in the sequential file prior to the update.
3 . A method according to claim 1 , wherein said sequential file is updated by commanding that memory block of said memory device that contains the ending location of the payload data contained in said sequential file prior to the update, to be emptied and by writing the payload data contained in said memory block, the payload data to be added in the sequential file, and the metadata associated with the updated sequential file in another memory block of said block-type memory device.
4 . A method according to claim 1 , wherein those memory blocks that contain said sequential file are located in succession in an address space of said block-type memory device.
5 . A method according to claim 1 , wherein those memory blocks that contain said sequential file are located in a distributed manner in an address space of said block-type memory device.
6 . An apparatus for processing a sequential file, the apparatus comprising:
a block-type memory device for storing said sequential file, and
a processor that is arranged to write metadata associated with said sequential file in a memory block of the block-type memory device, which memory block contains an ending location of payload data contained in said sequential file.
7 . An apparatus according to claim 6 , wherein said block-type memory device is a flash-type microcircuit memory.
8 . An apparatus according to claim 6 , wherein said block-type memory device is a magnetic disc.
9 . An apparatus according to claim 6 , wherein said processor is arranged to update said sequential file by writing the payload data to be added in the sequential file and the metadata associated with the updated sequential file in a memory block of a block-type memory device, said memory block containing the ending location of the payload data contained in the sequential file prior to the update.
10 . An apparatus according to claim 6 , wherein said processor is arranged to update said sequential file by commanding that memory block of the memory device that contains the ending location of the payload data contained in said sequential file prior to the update to be emptied, and by writing the payload data contained in said memory block, the payload data to be added in the sequential file, and the metadata associated with the updated sequential file in another memory block of said block-type memory device.
11 . An apparatus according to claim 6 , wherein said processor is arranged to select those memory blocks that contain said sequential file to be located in succession in an address space of said block-type memory space.
12 . An apparatus according to claim 6 , wherein said processor is arranged to select those memory blocks that contain said sequential file to be located in a distributed manner in an address space of said block-type memory device.
13 . An apparatus according to claim 6 , wherein said processor is a programmable processor and the apparatus includes a memory device for storing a computer program for controlling the processor.
14 . A computer program for processing a sequential file stored in a block-type memory device, wherein the computer program comprises software means for instructing a programmable processor to write metadata associated with said sequential file in a memory block of said block-type memory device, which memory block contains an ending location of the payload data contained in said sequential file.