Data protecting method, memory controller and memory storage device using the same
First Claim
1. A data protecting method, for a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical blocks, a plurality of logical block addresses are configured to map to a part of the physical blocks, the data protecting method comprising:
- configuring a plurality of virtual block addresses to map to the logical block addresses;
grouping at least one virtual block address of the virtual block addresses into a first virtual block address area and allocating the first virtual block address area to a first application, wherein the at least one virtual block address is mapped to at least one logical block address, and the first virtual block address area is mapped to a first logical block address area;
receiving a first access command from the first application, wherein the first access command instructs accessing a first virtual block address of the virtual block addresses;
determining whether the first virtual block address belongs to the first virtual block address area; and
if the first virtual block address does not belong to the first virtual block address area, sending an access error message to the first application.
1 Assignment
0 Petitions
Accused Products
Abstract
A data protecting method for a rewritable non-volatile memory module having physical blocks is provided, a plurality of logical block addresses is mapped to a part of the physical blocks. The method includes, configuring a plurality of virtual block addresses to map to the logical block addresses, grouping at least one virtual block address into a virtual block address area, and allocating the virtual block address area to an application. The method also includes, receiving an access command which is configured to instruct accessing a first virtual block address from the application. The method also includes: determining whether the first virtual block address belongs to the virtual block address area, if not, sending an error message to the application. Accordingly, the method can effectively prevent an application from accessing the data which can not be accessed by the application program.
-
Citations
14 Claims
-
1. A data protecting method, for a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical blocks, a plurality of logical block addresses are configured to map to a part of the physical blocks, the data protecting method comprising:
-
configuring a plurality of virtual block addresses to map to the logical block addresses; grouping at least one virtual block address of the virtual block addresses into a first virtual block address area and allocating the first virtual block address area to a first application, wherein the at least one virtual block address is mapped to at least one logical block address, and the first virtual block address area is mapped to a first logical block address area; receiving a first access command from the first application, wherein the first access command instructs accessing a first virtual block address of the virtual block addresses; determining whether the first virtual block address belongs to the first virtual block address area; and if the first virtual block address does not belong to the first virtual block address area, sending an access error message to the first application. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A memory storage device, comprising:
-
a connector, configured to be coupled to a host system; a rewritable non-volatile memory module, comprising a plurality of physical blocks, wherein a plurality of logical block addresses are configured to map to a part of the physical blocks; and a memory controller, coupled to the connector and rewritable non-volatile memory module, configured to group at least one logical block address of the logical block addresses into a first logical block address area and allocating the first logical block address area to a first application, wherein the memory controller is configured to receive a first access command from the first application, wherein the first access command instructs accessing at least one first logical block address, wherein the memory controller is further configured to determine whether the at least one first logical block address belongs to the first logical block address area, if the at least one first logical block address does not belong to the first logical block address area, the memory controller is configured to send an access error message to the first application. - View Dependent Claims (7, 8, 9)
-
-
10. A memory controller, for controlling a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical blocks, a plurality of logical block addresses is configured to map to a part of the physical blocks, the memory controller comprising:
-
a host interface, configured to couple to a host system; a memory interface, coupled to the rewritable non-volatile memory module; and a memory management circuit, coupled to the host interface and memory interface, configured to configure a plurality of virtual block addresses to map to the logical block addresses, wherein the memory management circuit is further configured to group at least one virtual block address of the virtual block addresses into a first virtual block address area and allocates the first virtual block address area to a first application, wherein the at least one virtual block address is mapped to at least one logical block address, and the first virtual block address area is mapped to a first logical block address area, wherein the memory management circuit is further configured to receive a first access command from the first application, wherein the first access command instructs accessing a first virtual block address of the virtual block addresses, wherein the memory management circuit is further configured to determine whether the first virtual block address belongs to the first virtual block address area, if the first virtual block address does not belong to the first virtual block address area, the memory management circuit is configured to send an access error message to the first application. - View Dependent Claims (11, 12, 13, 14)
-
Specification