CN102043734B - Protection method and system of storage device data - Google Patents

Protection method and system of storage device data Download PDF

Info

Publication number
CN102043734B
CN102043734B CN 201010570288 CN201010570288A CN102043734B CN 102043734 B CN102043734 B CN 102043734B CN 201010570288 CN201010570288 CN 201010570288 CN 201010570288 A CN201010570288 A CN 201010570288A CN 102043734 B CN102043734 B CN 102043734B
Authority
CN
China
Prior art keywords
data
ranges
logical addresses
address
logic
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.)
Active
Application number
CN 201010570288
Other languages
Chinese (zh)
Other versions
CN102043734A (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.)
Shenzhen Netcom Electronics Co Ltd
Original Assignee
Shenzhen Netcom Electronics Co Ltd
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 Shenzhen Netcom Electronics Co Ltd filed Critical Shenzhen Netcom Electronics Co Ltd
Priority to CN 201010570288 priority Critical patent/CN102043734B/en
Publication of CN102043734A publication Critical patent/CN102043734A/en
Application granted granted Critical
Publication of CN102043734B publication Critical patent/CN102043734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a protection method and system of storage device data, which is suitable for the technical field of data storage. The method comprises the following steps: when data written into the storage device is protected data, recording a logic address range in which the protected data is written; collecting the logic address ranges of all protected written-in data to generate the logic address range table of the protected data; when the storage device is subjected to logic writing, comparing the logic writing address with the addresses in the logic address range table; and when the logic writing address is positioned in the logic address range table, carrying out false writing to the logic writing address. The protection method of storage device data provided by the embodiment of the invention effectively protects the protected data in the storage device, saves the storage space of the storage device and is convenient for users to use the storage device.

Description

A kind of guard method of storage device data and system
Technical field
The invention belongs to technical field of data storage, relate in particular to a kind of guard method and system of storage device data.
Background technology
In daily life, the application of memory device is more and more general, the user stores on the memory device of being everlasting for some task of realization may have critical significant data, but, cause for some reason memory device to lose significant data, make troubles or lose the easy bugs when these reasons comprise hardware fault, software fault and operating application program etc. to the user.Especially the existing intelligent storage equipment that is embedded with intelligent card chip, described intelligent storage equipment creates one or more specific interface document and is mapped as smart card module, when described host side and intelligent storage equipment connect, described interface document is set up a logical channel as interface and host side, host side is read specific information by reflection in will utilizing and ordering to equipment to the read-write mechanism transmission of file for the smart card module of this special interface file or from this smart card module under the category of file system, when these interface documents are lost, can cause host side can't operate intelligent card chip in the described intelligent memory card.
For solving the loss of vital data that comprises file system data in the above-mentioned memory device or when damaging, the problem that memory device can not normally move, application number be 200910148313.0 Patent Application Publication a kind of key information area maintenance method of file system and device, described method comprises the steps: when the employed file system of memory device articulates for the first time, the key information area that user in the file system is assert backs up, and the apparatus for establishing tabulation is as archive index, when described key information area destroyed and cause described memory device to start when unusual, call described backup information, described key information area is safeguarded.Important information is backed up, need in memory device, open up separately a storage area as the backup area of important information, can reduce so the spendable storage space of memory device.
Summary of the invention
The object of the present invention is to provide a kind of guard method of storage device data; be intended to solve the data guard method of prior art and need in memory device, open up separately a storage area as the backup zone of protected data, thereby reduce the problem of the spendable storage space of memory device.
The present invention is achieved in that a kind of guard method of storage device data, and described method comprises the steps:
When the data of write storage device were protected data, record write the ranges of logical addresses of described protected data;
Ranges of logical addresses to all protected datas of writing gathers, and generates the ranges of logical addresses table of protected data;
When memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table;
When described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness to be write, the step that described falseness is write specifically comprises: the data content that host side is issued dumps in the buffer memory, and perhaps host side does not respond any operation to the address in the ranges of logical addresses table;
When described logic write address is not positioned at described ranges of logical addresses table, write data in described logical address.
The purpose of another embodiment of the present invention is to provide a kind of protection system of storage device data, and described system comprises:
The ranges of logical addresses logging modle is used for when the data of write storage device are protected data, and record writes the ranges of logical addresses of described protected data;
The ranges of logical addresses table generates module, is used for the ranges of logical addresses of all protected datas of writing is gathered, and generates the ranges of logical addresses table of protected data;
Comparing module is used for when memory device being carried out logic when writing being compared in the address in logic write address and the described ranges of logical addresses table; And
False writing module is used for described logic write address being carried out falseness writing when described logic write address is positioned at described ranges of logical addresses table, and described false writing module specifically comprises: the unloading module, and the data content that is used for host side is issued dumps to buffer memory;
Write data module, be used for when described logic write address is not positioned at described ranges of logical addresses table, writing data in described logical address.
In embodiments of the present invention, when the data of write storage device were protected data, record write the ranges of logical addresses of described protected data; Ranges of logical addresses to all protected datas of writing gathers, and generates the ranges of logical addresses table of protected data; When memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table; When described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness write.The present invention can effectively protect the protected data in the memory device, and has saved the storage space of memory device, is user-friendly to memory device.
Description of drawings
Fig. 1 is the realization flow figure of the guard method of the storage device data that provides of the embodiment of the invention;
Fig. 2 is the structured flowchart of the protection system of the storage device data that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The guard method of storage device data in the memory device provided by the invention; logical address by record protected data place; when the logical address of record is carried out the order of transmission write operation; main frame is response command or false response order not; effectively protected the protected data on the logical address that records; also save simultaneously the storage space of memory device, be user-friendly to memory device.
The purpose of the embodiment of the invention is to provide a kind of guard method of storage device data, and described method comprises the steps:
When the data of write storage device were protected data, record write the ranges of logical addresses of described protected data;
Ranges of logical addresses to all protected datas of writing gathers, and generates the ranges of logical addresses table of protected data;
When memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table;
When described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness write.
The purpose of another embodiment of the present invention is to provide a kind of protection system of storage device data, and described system comprises:
The ranges of logical addresses logging modle is used for when the data of write storage device are protected data, and record writes the ranges of logical addresses of described protected data;
The ranges of logical addresses table generates module, is used for the ranges of logical addresses of all protected datas of writing is gathered, and generates the ranges of logical addresses table of protected data;
Comparing module is used for when memory device being carried out logic when writing being compared in the address in logic write address and the described ranges of logical addresses table; And
False writing module is used for described logic write address being carried out falseness writing when described logic write address is positioned at described ranges of logical addresses table.
In embodiments of the present invention, when the data of write storage device were protected data, record write the ranges of logical addresses of described protected data; Ranges of logical addresses to all protected datas of writing gathers, and generates the ranges of logical addresses table of protected data; When memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table; When described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness write.
Fig. 1 shows the realization flow of the guard method of the storage device data that the embodiment of the invention provides, and its concrete step is as described below:
In step S101, when the data of write storage device were protected data, record write the ranges of logical addresses of described protected data.
In embodiments of the present invention, this protected data comprises system file data and the custom data of memory device, is the user specific interface is provided, for the User Defined protected data.
In step S102, the ranges of logical addresses of all protected datas of writing is gathered, generate the ranges of logical addresses table of protected data.
In step S103, when memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table.
In embodiments of the present invention, this is the process of comparing in the address in logic write address and the described ranges of logical addresses table, is to judge that this logic write address is whether in described ranges of logical addresses table.
In step S104, when described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness write.
In embodiments of the present invention, the data content that the step that this falseness is write can issue host side dumps in the buffer memory, and perhaps host side does not respond any operation to the address in the ranges of logical addresses table.
In embodiments of the present invention, when described logic write address is not positioned at described ranges of logical addresses table, write data in described logical address by normal data writing mode, namely in the storage space of memory device according to the sequence of addresses data writing.
In embodiments of the present invention; record by the logical address to protected data and to gather; when the logical address of this protected data is carried out write operation; carry out the false action of writing; thereby effectively protect protected data; also saved because open up the independent storage space of division and protected data has been backed up the storage space that loses, used memory device to offer convenience to the user.
As one embodiment of the present of invention, when the corresponding storage data of described ranges of logical addresses table are carried out editing operation, described ranges of logical addresses table is upgraded, and described editing operation comprises makes amendment, deletes and add operation the corresponding storage data of described ranges of logical addresses table.
Wherein, in embodiments of the present invention; one interface that can write the protected data logical address need to be provided; for example can define the privately owned order of the logical address of access protected data; when receiving this privately owned order; the editing operation that can be correlated with to protected data is such as revising etc.
Fig. 2 shows the structured flowchart of the protection system of the storage device data that the embodiment of the invention provides, and for convenience of explanation, has only provided the part relevant with the embodiment of the invention among the figure.
When ranges of logical addresses logging modle 11 was protected data when the data of write storage device, record write the ranges of logical addresses of described protected data; The ranges of logical addresses of all protected datas that 12 pairs of modules of ranges of logical addresses table generation write gathers, and generates the ranges of logical addresses table of protected data; When memory device being carried out logic when writing, comparing module 13 is compared the address in logic write address and the described ranges of logical addresses table; When described logic write address was positioned at described ranges of logical addresses table, 14 pairs of described logic write addresses of false writing module carry out falseness to be write, and wherein, protected data comprises system file data and the custom data of memory device.
In embodiments of the present invention, when described logic write address is not positioned at described ranges of logical addresses table, writes data module 15 and write data in described logical address.
In embodiments of the present invention, when described logic write address was positioned at described ranges of logical addresses table, unloading module 141 dumped to the data content that host side issues in the buffer memory.
In embodiments of the present invention, when the corresponding storage data of described ranges of logical addresses table are carried out editing operation, 16 pairs of described ranges of logical addresses tables of ranges of logical addresses table update module upgrade, and described editing operation comprises makes amendment, deletes and add operation the corresponding storage data of described ranges of logical addresses table.
The above-mentioned system embodiment that only provides for the embodiment of the invention, the function of its each module does not repeat them here as described in the above-mentioned embodiment of the method, but not in order to limit the present invention.
In embodiments of the present invention, when the data of write storage device were protected data, record write the ranges of logical addresses of described protected data; Ranges of logical addresses to all protected datas of writing gathers, and generates the ranges of logical addresses table of protected data; When memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table; When described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness write, effectively protect the protected data in the memory device, save the storage space of memory device, be user-friendly to memory device.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the guard method of a storage device data is characterized in that, described method comprises the steps:
When the data of write storage device were protected data, record write the ranges of logical addresses of described protected data;
Ranges of logical addresses to all protected datas of writing gathers, and generates the ranges of logical addresses table of protected data;
When memory device being carried out logic when writing, compared in the address in logic write address and the described ranges of logical addresses table;
When described logic write address is positioned at described ranges of logical addresses table, described logic write address is carried out falseness to be write, the step that described falseness is write specifically comprises: the data content that host side is issued dumps in the buffer memory, and perhaps host side does not respond any operation to the address in the ranges of logical addresses table;
When described logic write address is not positioned at described ranges of logical addresses table, write data in described logical address.
2. the method for claim 1 is characterized in that, described method also comprises the steps:
When the corresponding storage data of described ranges of logical addresses table are carried out editing operation, described ranges of logical addresses table is upgraded, and described editing operation comprises makes amendment, deletes and add operation the corresponding storage data of described ranges of logical addresses table.
3. the method for claim 1 is characterized in that, described protected data comprises system file data and the custom data of memory device.
4. the protection system of a storage device data is characterized in that, described system comprises:
The ranges of logical addresses logging modle is used for when the data of write storage device are protected data, and record writes the ranges of logical addresses of described protected data;
The ranges of logical addresses table generates module, is used for the ranges of logical addresses of all protected datas of writing is gathered, and generates the ranges of logical addresses table of protected data;
Comparing module is used for when memory device being carried out logic when writing being compared in the address in logic write address and the described ranges of logical addresses table; And
False writing module is used for described logic write address being carried out falseness writing when described logic write address is positioned at described ranges of logical addresses table, and described false writing module specifically comprises: the unloading module, and the data content that is used for host side is issued dumps to buffer memory;
Write data module, be used for when described logic write address is not positioned at described ranges of logical addresses table, writing data in described logical address.
5. system as claimed in claim 4 is characterized in that, described system also comprises:
Ranges of logical addresses table update module, be used for when the corresponding storage data of described ranges of logical addresses table are carried out editing operation, described ranges of logical addresses table is upgraded, and described editing operation comprises makes amendment, deletes and add operation the corresponding storage data of described ranges of logical addresses table.
6. system as claimed in claim 4 is characterized in that, described protected data comprises system file data and the custom data of memory device.
CN 201010570288 2010-12-02 2010-12-02 Protection method and system of storage device data Active CN102043734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010570288 CN102043734B (en) 2010-12-02 2010-12-02 Protection method and system of storage device data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010570288 CN102043734B (en) 2010-12-02 2010-12-02 Protection method and system of storage device data

Publications (2)

Publication Number Publication Date
CN102043734A CN102043734A (en) 2011-05-04
CN102043734B true CN102043734B (en) 2013-02-27

Family

ID=43909885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010570288 Active CN102043734B (en) 2010-12-02 2010-12-02 Protection method and system of storage device data

Country Status (1)

Country Link
CN (1) CN102043734B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339403B (en) * 2011-08-31 2013-11-27 北京握奇数据系统有限公司 Intelligent card and data modifying method thereof
CN104573573B (en) * 2014-11-14 2017-09-29 深圳市芯海科技有限公司 The data protection system and method for a kind of mobile storage
CN107608905B (en) 2017-09-11 2020-05-12 杭州中天微系统有限公司 Method and device for erasing Flash data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1217507A (en) * 1997-11-06 1999-05-26 后健慈 Method and system for maintaining access-protected storage region in sotrage device
CN101464841A (en) * 2008-12-31 2009-06-24 杭州华三通信技术有限公司 Method and system for implementing write protection of block memory stack

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1217507A (en) * 1997-11-06 1999-05-26 后健慈 Method and system for maintaining access-protected storage region in sotrage device
CN101464841A (en) * 2008-12-31 2009-06-24 杭州华三通信技术有限公司 Method and system for implementing write protection of block memory stack

Also Published As

Publication number Publication date
CN102043734A (en) 2011-05-04

Similar Documents

Publication Publication Date Title
CN103577121B (en) A kind of highly reliable linear file access method based on Nand Flash
CN103136116B (en) Storage system and control device, management method and power interruption recovering method
TWI385523B (en) Data backup method for a flash memory and controller and storage system using the same
CN103262054B (en) For automatically submitting device, the system and method for storer to
CN101673243B (en) Data storage device and method
CN107193758A (en) The mapping table management method and solid state hard disc of a kind of solid state hard disc
CN103049224B (en) By the methods, devices and systems of data importing physical tape
CN102902637B (en) Solid-state hard disk data power-off protection method
CN101916290B (en) Managing method of internal memory database and device
CN102968353B (en) A kind of fail address disposal route and device
CN103019623B (en) Memory disc disposal route and device
KR20100065786A (en) Cache synchronization method and system for fast power-off
CN103544110A (en) Block-level continuous data protection method based on solid-state disc
CN102136274B (en) Mobile hard disk with two storage media
CN106155596A (en) Method for writing data and device
EP2291748A2 (en) Maintenance of exo-file system metadata on removable storage device
CN102043734B (en) Protection method and system of storage device data
CN105389268A (en) Data storage system and operating method thereof
CN103559119B (en) File operation requests disposal route and device
CN102609371B (en) System protecting method based on data security
CN103092719A (en) Power-off protection method for file system
CN105786721A (en) Memory address mapping management method and processor
CN101916234A (en) Information maintenance method and system of storage equipment
CN101398821A (en) Network storage method and system based on local cache and virtual file systems technology
CN105589912A (en) Method and storage structure for processing frequently written document with MRAM (Magnetic Random Access Memory)

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518057 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen jiangbolong electronic Limited by Share Ltd

Address before: 518000 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen jiangbolong Electronic Co., Ltd.