Data storage method and device for flash memory

A data storage device and data storage technology, applied in the data storage field of memory, can solve the problems of no longer guaranteeing the correctness of stored data, physical storage units do not support random write operations, and management of files is complicated, etc., and achieves efficient, stable and smooth P2P The effect of on-demand services, reliable local data storage
CN102156731AActive Publication Date: 2011-08-17上海众源网络有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
上海众源网络有限公司
Publication Date
2011-08-17

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a data storage method and a data storage device for a flash memory. By the invention, the toerase frequency of the flash memory equipment is reduced greatly and reliable point-to-point (P2P) video on demand service can be provided for users. The technical scheme is that: the data storage method comprises the following steps of: checking whether a page file exists; if a page file is absent, establishing a page file, otherwise, opening the page file; reading data in a file information region of the page file and caching the data into a memory of a client; after the client clicks a video on demand button of the file, downloading a data branch block from a server; storing the downloaded data branch block into the client and updating the data, which is cached in the memory, of the file information region; transferring the cached data of the file information region into the page file if the number of the stored data branch blocks is greater than a threshold value; and closing the page file.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a memory data storage technology, in particular to a data storage method and device applied in a flash memory (Flash) memory. Background technique

[0002] The multimedia on-demand system based on the P2P network protocol (hereinafter referred to as the P2P on-demand system) requires each terminal connected to the system to store the downloaded and played multimedia data in the local storage device, and at the same time share and upload the data to other terminals in the network Use; when each terminal downloads media data, it can request and obtain the data they have downloaded and stored from other terminals, so that data can be shared between terminals, and while greatly reducing the pressure on server access, it can also provide terminals with Efficient streaming service.

[0003] In the application of P2P on-demand system in the past, local data is usually stored in non-fragile hard disk, but with the development of semic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More