CN101644992A - Method and system for recreating data of file system - Google Patents

Method and system for recreating data of file system Download PDF

Info

Publication number
CN101644992A
CN101644992A CN200810117807A CN200810117807A CN101644992A CN 101644992 A CN101644992 A CN 101644992A CN 200810117807 A CN200810117807 A CN 200810117807A CN 200810117807 A CN200810117807 A CN 200810117807A CN 101644992 A CN101644992 A CN 101644992A
Authority
CN
China
Prior art keywords
file
data
image file
file system
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200810117807A
Other languages
Chinese (zh)
Other versions
CN101644992B (en
Inventor
王志慧
谢仁艿
赵瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2008101178078A priority Critical patent/CN101644992B/en
Publication of CN101644992A publication Critical patent/CN101644992A/en
Application granted granted Critical
Publication of CN101644992B publication Critical patent/CN101644992B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for recreating data of a file system. The method comprises: generating an image file on a computer side through a simulation file system; and programmingthe image file into a data area in a storage medium file system on a mobile terminal side. The image file is generated by the following steps: creating a simulation file system for simulating the storage medium file system on the mobile terminal side; storing data information needing to be added into the image file through the simulation file system to generate a first target file; and extractingpreset information for recreating data in the storage medium file system from the first target file to generate the image file. The method simulates the storage medium file system on the mobile terminal side on the computer side to generate the image file, thereby reducing written data volume in and improving data writing speed.

Description

The method and system that file system data is rebuild
Technical field
The present invention relates to data processing field, relate in particular to the method and system that a kind of mobile terminal storage medium file system data is rebuild.
Background technology
Develop rapidly along with advanced information society, mobile phone, mobile terminal devices such as PDA(Personal Digital Assistant) become people's work gradually, necessary tool in the life, intellectuality gradually along with these portable terminals, high-endization, operability and the recreational important performance of weighing terminal that becomes gradually, and exist the effect of the file system that is used for containment and user resources on the portable terminal flash memory (FLASH) more and more important, the performance of file system has become one of important indicator of reflection terminal capabilities gradually, these portable terminals are when dispatching from the factory, need be on flash memory a large amount of files and deposit data, these data are system datas of portable terminal such as mobile phone, are the bases of the normal operation of terminal.When the back of dispatching from the factory is used for the first time and in use wanted initialization, need on flash memory, create file and the data that need by specific Automatic Program.
Flash memory is a kind of nonvolatile semiconductor memory, and it combines some advantages of EPROM in the past, has realized the storage mode of high density, low cost and high reliability.At present, increasing storage class product has adopted FLASH as storage medium in order to reduce cost, and particularly is widely used especially at mobile phone, the less middle flash memory of user terminal (UE, User Experience) of PDA equal-volume.
It is unique to require based on the read-write operation of flash memory, can only write " 0 " from " 1 ", can not oppositely write, if will rewrite, then need be that unit puts on the skin and removes with the sector.Because the difference (as NOR type flash memory and NAND type flash memory) of flash memory on storage format and storage mode of different size, in order to guarantee safety of data and consistance on the flash memory, need realize management at the specific file management system of flash memory design to file data on the flash memory sheet.
With the mobile phone is example, and the processing procedure that writes file in the mobile phone flash memory is as follows: (1) transfers to the UE side by computer interface with file destination.(2) utilize the operation-interface of UE side file management system that file destination is carried out organization and administration, this process need formats file destination and handles so that adapt with the flash memory form.(3) UE side file management system writes flash memory with file destination according to the sector or the page by the driving interface of flash memory, comprises the information of revising flash directory district and index area, and file data is write the data field.
The inventor finds in practice, there is following problem at least in prior art: along with people to mobile phone, the operating performance of user terminals such as PDA, the increase day by day of amusement performance requirement, increasing file and data are (as music, picture, video) when producing, terminal just is stored in the flash memory of this terminal a part as these terminal initial data, but increase along with these file sizes, this document is being write in the process of flash memory, because UE side file management system needs in advance file to be carried out format analysis processing, and need the frequent information of revising directory area and index area, therefore influenced the writing speed of file greatly.
Summary of the invention
The present invention proposes the method that a kind of file system data is rebuild, and can improve the writing speed of file.
The present invention also proposes the system that a kind of file system data is rebuild, and can improve the writing speed of file.
Technical scheme of the present invention is achieved in that
The method that a kind of file system data is rebuild comprises:
Generate image file in computer-side by the simulation files system;
With the data field of described image file programming to mobile terminal side stored medium file system.
Preferably, also comprise:
When judging that need carry out data rebuilds,, carry out data and rebuild by the data field of described image file formatted file system.
Preferably, the step of described generation image file comprises:
Create the simulation files system of a simulating mobile terminal side stored medium file system;
Need to add the data message of image file by the storage of described simulation files system, generate first file destination;
From described first file destination, extract the preset information of rebuilding data in the stored medium file system, generate image file.
Preferably, the step of described establishment simulation files system comprises:
Set up a temporary file;
Described temporary file is formatted into the storage format of described storage medium.
Preferably, described preset information comprises:
The directory information of file, index information and particular content data message.
Preferably, described image file is with the data field of binary mode programming to the stored medium file system.
Preferably, described storage medium is a flash memory.
The system that a kind of file system data is rebuild comprises:
The image file generating apparatus is used for generating image file in computer-side by the simulation files system;
Writing station is used for the data field of described image file programming to mobile terminal side stored medium file system.
Preferably, also comprise:
Reconstruction unit is used for when judging that need carry out data rebuilds, and by the data field of described image file formatted file system, carries out data and rebuilds.
Preferably, described image file generating apparatus comprises:
Creating unit is used to create the simulation files system of a simulating mobile terminal side stored medium file system;
First generation unit is used for the data message by described simulation files system storage needs adding image file, generates first file destination;
Second generation unit is used for extracting the preset information of rebuilding data the stored medium file system from described first file destination, generates image file.
The present invention generates image file by the file system at computer-side simulating mobile terminal side storage medium, because the data message of described image file significantly reduces, therefore can reduce the data volume that data write, and improves writing speed.
Description of drawings
Fig. 1 is the flow chart of steps of a kind of file system data method for reconstructing of the embodiment of the invention;
Fig. 2 is the detail flowchart that image file generates step in the embodiment of the invention;
Fig. 3 is the process flow diagram that embodiment of the invention mobile terminal side file system data is rebuild implementation procedure;
Fig. 4 is the composition structural drawing of the data reconstructing system of a kind of file system of the embodiment of the invention;
Fig. 5 is the composition structural drawing of image file generating apparatus in the embodiment of the invention.
Embodiment
With reference to Fig. 1, show the flow chart of steps of a kind of file system data method for reconstructing of the embodiment of the invention, comprising:
Step S101, generate image file by the simulation files system in computer-side.
By the file system on computer-side simulating mobile terminal side storage medium, promptly operated in the file system of mobile terminal side originally, operate in computer-side by described simulation files system, it is the same that described simulation files system can regard as with the file system of mobile terminal side, and the establishment and the principle of described simulation files system will be described in detail later.The resource file that mobile terminal side is needed carries out organization and administration by described simulation files system, and by extracting key message, i.e. preset information compression generates image file.
Step S102, with the data field of described image file programming file system to the mobile terminal side storage medium.
The file system of computer-side simulating mobile terminal side storage medium generates image file, because the data message of described image file significantly reduces, therefore can reduce the data volume that data write, and improves writing speed.
Preferably, described image file is with the data field of binary mode programming to the stored medium file system.
Further, also comprise step S103, when judging that need carry out data rebuilds,, carry out data and rebuild by the data field of described image file formatted file system.
, be that example describes below with this storage medium of flash memory for better the present invention will be described, the technology of the present invention personnel as can be known, for the storage medium of other type, embodiment of the invention technical scheme can realize equally.
With reference to Fig. 2, show the detail flowchart of image file generation step in the embodiment of the invention, comprise step:
The simulation files system of file system on step S201, simulating mobile terminal side storage medium of establishment.
Step S202, need to add the data message of image file, generate first file destination by the storage of described simulation files system.
Step S203, from described first file destination, extract to rebuild the preset information of data in the stored medium file system, generate image file.
Wherein, described step S201 comprises:
S2011, set up a temporary file.
S2012, described temporary file is formatted into the storage format of described storage medium.
Create a temporary file, be used for storing the file that needs the mobile terminal side file system management, all file storage of crossing by the mobile terminal side file system organization are in this temporary file.Described temporary file is to come formative according to the characteristic of the storage format of mobile terminal side file system and storage medium.
Temporary file division spatially is the same with the division of file system data area on the flash memory, and the size of temporary file is the same big with file system data area size on the flash memory.If this file system is deposited file according to directory area, index area, data field, this temporary file also is divided into this several zones so, the fileinfo that leaves in the temporary file also leaves in the temporary file according to this several sections, this temporary file also is to come according to the characteristic of flash memory to the storage of file, if a page of flash memory is 512 bytes, also write when then writing temporary file according to the characteristic of a page of 512 bytes.
Described temporary file is equivalent to a soft storage medium, and the flash memory of mobile terminal side then is the storage medium of a hardware.The storage medium of hardware has certain characteristic, comprises size, data write mode etc., so the characteristic of temporary file is also consistent with the storage medium of hardware with attribute.In the data field of the file system of mobile terminal side to the storage of file, can store according to certain form, for example depositing of a file may be stored (by the file system decision) according to the mode of directory area, index area, data field, then also storage in such a manner of the storage of file in temporary file.Generally speaking, simulate the data field of file system on the storage medium of a hardware exactly as soft storage medium with a file.
Behind the resource file that needs in described temporary file storage file file system data district, generate first file destination, because the data message amount of described first file destination is big, so need to extract wherein key message, promptly preset information generates image file.Described key message (preset information) can be selected according to the actual needs, and the present invention does not limit this, and preset information can be directory information, index information, the particular content data message of file as described, also can be the information of other types.The size that generates image file is the size decision of file when being dispatched from the factory by portable terminal.
File is when storage, and the directory information of file leaves the directory area in, and the index information of file is that file system is used for form to each file allocation physical space, the particular location that specified document is deposited.The index information of file leaves the index area in.The concrete content of file is deposited in the data field of file.When depositing a file, writing information is wanted in the index area, and writing information is wanted in the directory area, and writing information is also wanted in the data field.When extracting key message (preset information), can extract index information, directory information, content information and form final image file.
The present invention is in the file system of computer-side simulating mobile terminal side, and storage medium is simulated by the temporary file of computer-side, and temporary file is formatted into the storage format of storage medium, comprises size and attribute.All data needs adding image file comprise file and catalogue, organize by the file system of simulation, leave in the temporary file.When needs generate final image file, the preset information of reset file system data, be that key message extracts from temporary file, generate final image file, because the data message of described image file significantly reduces, therefore can reduce the data volume that data write, improve writing speed.
With reference to Fig. 3, show the process flow diagram that embodiment of the invention mobile terminal side file system data is rebuild implementation procedure, comprising:
When step S301, file system initialization, scan whole file system user data area, enter step S302.
Step S302, judge whether to carry out data and rebuild, be then to enter step S303, otherwise enter step S304.
Step S303, by the data field of programming to the image file formatted file system of file system, the data of reset file system enter step S304.
Step S304, enter normal initialization flow process.
With reference to Fig. 4, the data reconstructing system that shows a kind of file system of the embodiment of the invention is formed structural drawing.Described system comprises:
Image file generating apparatus 401, be used for generating image file by the simulation files system in computer-side.
Writing station 402, be used for the data field of described image file programming to mobile terminal side storage medium file system.
By the file system on computer-side simulating mobile terminal side storage medium, promptly operated in the file system of mobile terminal side originally, operate in computer-side by described simulation files system, it is the same that described simulation files system can regard as with the file system of mobile terminal side, and the establishment and the principle of described simulation files system will be described in detail later.The resource file that mobile terminal side is needed carries out organization and administration by described simulation files system, and by extracting key message, i.e. preset information compression generates image file.
The file system of computer-side simulating mobile terminal side storage medium generates image file, because the data message of described image file significantly reduces, therefore can reduce the data volume that data write, and improves writing speed.
Preferably, described image file is with the data field of binary mode programming to the stored medium file system.
Further, also comprise reconstruction unit 403 at mobile terminal side, be used for when judging that need carry out data rebuilds,, carry out data and rebuild by the data field of described image file formatted file system.
With reference to Fig. 5, show the composition structural drawing of image file generating apparatus in the embodiment of the invention.Described image file generating apparatus comprises:
Creating unit 501, be used to create the simulation files system of file system on the simulating mobile terminal side storage medium.
Create a temporary file, be used for storing the file that needs the mobile terminal side file system management, all file storage of crossing by the mobile terminal side file system organization are in this temporary file.Described temporary file is to come formative according to the characteristic of the storage format of mobile terminal side file system and storage medium.
First generation unit 502, be used for data message, generate first file destination by described simulation files system storage needs adding image file.
Second generation unit 503, be used for extracting and rebuild on the storage medium preset information of data the file system, generate image file from described first file destination.
Behind the resource file that needs in described temporary file storage file file system data district, generate first file destination, because the data message amount of described first file destination is big, so need to extract wherein key message, promptly preset information generates image file.Described key message (preset information) can be selected according to the actual needs, and the present invention does not limit this, and preset information can be directory information, index information, the particular content data message of file as described, also can be the information of other types.The size that generates image file is the size decision of file when being dispatched from the factory by portable terminal.
Fig. 4, Fig. 5 are system, the devices corresponding with previous methods, described system, and the course of work of device and principle of work are described in detail in the method part, do not repeat them here, and the description of appropriate section gets final product in the reference method.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method that file system data is rebuild is used for the data reconstruction of mobile terminal storage medium file system, it is characterized in that, comprising:
Generate image file in computer-side by the simulation files system;
With the data field of described image file programming to mobile terminal side stored medium file system.
2. method according to claim 1 is characterized in that, also comprises:
When judging that need carry out data rebuilds,, carry out data and rebuild by the data field of described image file formatted file system.
3. method according to claim 1 is characterized in that, the step of described generation image file comprises:
Create the simulation files system of a simulating mobile terminal side stored medium file system;
Need to add the data message of image file by the storage of described simulation files system, generate first file destination;
From described first file destination, extract the preset information of rebuilding data in the stored medium file system, generate image file.
4. method according to claim 3 is characterized in that, the step of described establishment simulation files system comprises:
Set up a temporary file;
Described temporary file is formatted into the storage format of described storage medium.
5. method according to claim 3 is characterized in that, described preset information comprises:
The directory information of file, index information and particular content data message.
6. method according to claim 1 is characterized in that:
Described image file is with the data field of binary mode programming to the stored medium file system.
7. according to the described method of the arbitrary claim of claim 1 to 6, it is characterized in that:
Described storage medium is a flash memory.
8. the system that file system data is rebuild is used for the data reconstruction of mobile terminal storage medium file system, it is characterized in that, comprising:
The image file generating apparatus is used for generating image file in computer-side by the simulation files system;
Writing station is used for the data field of described image file programming to mobile terminal side stored medium file system.
9. system according to claim 8 is characterized in that, also comprises:
Reconstruction unit is used for when judging that need carry out data rebuilds, and by the data field of described image file formatted file system, carries out data and rebuilds.
10. system according to claim 8 is characterized in that, described image file generating apparatus comprises:
Creating unit is used to create the simulation files system of a simulating mobile terminal side stored medium file system;
First generation unit is used for the data message by described simulation files system storage needs adding image file, generates first file destination;
Second generation unit is used for extracting the preset information of rebuilding data the stored medium file system from described first file destination, generates image file.
CN2008101178078A 2008-08-04 2008-08-04 Method and system for recreating data of file system Expired - Fee Related CN101644992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101178078A CN101644992B (en) 2008-08-04 2008-08-04 Method and system for recreating data of file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101178078A CN101644992B (en) 2008-08-04 2008-08-04 Method and system for recreating data of file system

Publications (2)

Publication Number Publication Date
CN101644992A true CN101644992A (en) 2010-02-10
CN101644992B CN101644992B (en) 2011-05-25

Family

ID=41656893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101178078A Expired - Fee Related CN101644992B (en) 2008-08-04 2008-08-04 Method and system for recreating data of file system

Country Status (1)

Country Link
CN (1) CN101644992B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411818A (en) * 2011-10-26 2012-04-11 福建联迪商用设备有限公司 Payment terminal and initialization method thereof
CN102456034A (en) * 2010-10-28 2012-05-16 深圳市金蝶友商电子商务服务有限公司 Data statistical analysis method and device
CN102591781A (en) * 2011-01-17 2012-07-18 厦门市美亚柏科信息股份有限公司 Method and device for flash memory chip data analysis based on address mapping points
CN104572492A (en) * 2015-01-22 2015-04-29 福州瑞芯微电子有限公司 Method and apparatus of burning data to FAT (File Allocation Table)32 partition
CN104866350A (en) * 2015-05-27 2015-08-26 小米科技有限责任公司 Terminal partition space optimizing method, device and terminal
WO2016112633A1 (en) * 2015-01-12 2016-07-21 芋头科技(杭州)有限公司 Method for improving system firmware programming speed

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6647492B1 (en) * 2000-07-28 2003-11-11 Ncr Corporation Method of providing persistent memory to a hand-held platform operating system on a computer system
KR100617565B1 (en) * 2004-12-20 2006-09-01 엘지전자 주식회사 Method of preinsatall contents for mobile station
CN101111029A (en) * 2007-07-20 2008-01-23 华为技术有限公司 Method and device for obtaining operating data

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456034A (en) * 2010-10-28 2012-05-16 深圳市金蝶友商电子商务服务有限公司 Data statistical analysis method and device
CN102456034B (en) * 2010-10-28 2014-08-13 深圳市金蝶友商电子商务服务有限公司 Data statistical analysis method and device
CN102591781A (en) * 2011-01-17 2012-07-18 厦门市美亚柏科信息股份有限公司 Method and device for flash memory chip data analysis based on address mapping points
CN102591781B (en) * 2011-01-17 2014-12-10 厦门市美亚柏科信息股份有限公司 Method and device for flash memory chip data analysis based on address mapping points
CN102411818A (en) * 2011-10-26 2012-04-11 福建联迪商用设备有限公司 Payment terminal and initialization method thereof
CN102411818B (en) * 2011-10-26 2014-03-26 福建联迪商用设备有限公司 Payment terminal initialization method
CN105843631A (en) * 2015-01-12 2016-08-10 芋头科技(杭州)有限公司 Method for improving programming speed of system firmware
WO2016112633A1 (en) * 2015-01-12 2016-07-21 芋头科技(杭州)有限公司 Method for improving system firmware programming speed
EP3246816A4 (en) * 2015-01-12 2018-09-26 Yutou Technology (Hangzhou) Co., Ltd. Method for improving system firmware programming speed
CN105843631B (en) * 2015-01-12 2019-02-15 芋头科技(杭州)有限公司 A method of improving system firmware burn writing speed
CN104572492A (en) * 2015-01-22 2015-04-29 福州瑞芯微电子有限公司 Method and apparatus of burning data to FAT (File Allocation Table)32 partition
CN104866350A (en) * 2015-05-27 2015-08-26 小米科技有限责任公司 Terminal partition space optimizing method, device and terminal
CN104866350B (en) * 2015-05-27 2018-03-27 小米科技有限责任公司 Optimization method, device and the terminal in terminal partitions space

Also Published As

Publication number Publication date
CN101644992B (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN101644992B (en) Method and system for recreating data of file system
CN105808151B (en) Solid state hard disk stores the data access method of equipment and solid state hard disk storage equipment
CN106681934B (en) Method and device for recycling garbage of storage device
CN104881333B (en) A kind of storage system and its method used
CN107526743B (en) Method and apparatus for compressing file system metadata
US8751756B2 (en) Method and apparatus for writing data in memory system
US20180039422A1 (en) Solid state storage capacity management systems and methods
US11287996B2 (en) Method, device and computer program product for storing data
CN105389367A (en) Power network graphic multi-tense and multi-level distributed storage method based on Mongo database
TW201248404A (en) Program code loading and accessing method, memory controller and memory storage apparatus
TW200619926A (en) Partition area architecture of an operation system common used disk and the method thereof
US10394468B2 (en) Handling data slice revisions in a dispersed storage network
CN101908021B (en) Flash memory erasing-writing method and flash memory
CN105095352B (en) Data processing method and device applied to distributed system
CN105630410B (en) The method for managing file storage area using non-volatile random read-write storage chip dynamic
CN115562595B (en) Volume creating method and device, volume reading and writing method and device, and electronic equipment
CN105045891A (en) Method and system for improving performance of sequence list, architecture, optimization method and storage apparatus
CN102737082A (en) Method and system for dynamically updating file data indexes
CN106681893A (en) Realization method of NAND FLASH simulator
CN114866801B (en) Video data processing method, device, equipment and computer readable storage medium
CN102270179A (en) Data storing and processing method and system for CAD (Computer Assisted Drafting) system based on fragments
CN110286995B (en) Data reading and writing method and device
US11513951B2 (en) System and method for improving write performance for log structured storage systems
CN101493844A (en) Method and apparatus for implementing multiple main interfaces for embedded memory
Lim Implementation of metadata logging and power loss recovery for page-mapping FTL

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110525

Termination date: 20160804

CF01 Termination of patent right due to non-payment of annual fee