Patent ID: 8250290
Filing Date: 2012-08-21
Classification: G06F

Abstract:
1. A computer-implemented method for managing files in a flash memory, the method comprising: partitioning the flash memory into a first storage area and a second storage area; writing a file header of each of the files to the first storage area, the file headers of all of the files being arranged in the first storage area in a queue; setting the first storage area as a first mode, the first mode being a control mode designating that files in the control mode are capable of being edited; writing a data block of each of the files to the second storage area, the data blocks of all of the files being arranged in the second storage area according to an order of the file headers arranged in the first storage area; setting the second storage area as a second mode, the second mode being an object mode designating that files in the object mode are incapable of being edited; and responding to the data block of one of the files being completely written into the second storage area, writing a memory address of the data block stored in the second storage area to a file header corresponding to the file.