Data storage device and operating method thereof
View Patent ↗A data storage device include a storage memory, an information memory suitable for storing disk information and/or file information transmitted from a host device, and a controller suitable for processing a request on the data memory, which is received from the host device, based on the disk information and/or the file information stored in the information memory.
1. A data storage device comprising:
a semiconductor storage memory including a plurality of physical blocks each including a plurality of physical pages;
an information memory configured to store mapping relation between disk information and/or file information transmitted from a host device and physical block addresses of the plurality of physical blocks; and
a controller configured to process a write request, which is received from the host device, on one or more physical blocks each having a physical block address related to information on disk and/or file included in the write request with reference to the mapping relation stored in the information memory,
wherein the one or more physical blocks do not include a physical page having a data unrelated to the information on disk and/or file included in the write request, and
wherein when a host request is received to delete a file and/or a disk related to the information on disk and/or file included in the write request, the controller invalidates some or all physical pages each included in the one or more physical blocks and the controller deletes a mapping relation corresponding to the information on disk and/or file included in the write request from the information memory and the one or more physical blocks do not include a valid physical page having a data unrelated to the information on disk and/or file included in the write request thereafter.
2. The data storage device of claim 1 , wherein the disk information includes logical address corresponding to a region managed by the host device, and the file information includes file identification number managed by the host device.
3. The data storage device of claim 1 , wherein the controller finds out the physical block address for the semiconductor storage memory corresponding to the information on disk and/or file and processes the write request on the physical block address.
4. The data storage device of claim 3 , wherein the controller inserts the information on disk and/or file in the write request into the information memory and relates the inserted information with a new physical block address of the semiconductor storage memory if the information on disk and/or file in the write request is not in the information memory.
5. A system comprising:
a data storage device; and
a host device providing disk information and/or file information to the data storage device,
wherein the data storage device comprises:
a semiconductor storage memory including a plurality of physical blocks each including a plurality of physical pages;
an information memory configured to store mapping relation between the disk information and/or the file information transmitted from the host device and physical block addresses of the plurality of physical blocks; and
a controller configured to process a write request, which is received from the host device, on one or more physical blocks each having a physical block address related to information on disk and/or file included in the write request with reference to the mapping relation stored in the information memory,
wherein the one or more physical blocks do not include a physical page having a data unrelated to the information on disk and/or file included in the write request, and
wherein when a host request is received to delete a file and/or a disk related to the information on disk and/or file included in the write request, the controller invalidates some or all physical pages each included in the one or more physical blocks and the controller deletes a mapping relation corresponding to the information on disk and/or file included in the write request from the information memory and the one or more physical blocks do not include a valid physical page having a data unrelated to the information on disk and/or file included in the write request thereafter.
6. The system of claim 5 , wherein the host device comprises an information management module for managing the disk information and/or the file information.
7. The system of claim 6 , wherein the information management module includes a disk information management module suitable for managing the disk information and a file information management module suitable for managing the file information.
8. The system of claim 5 , wherein the disk information includes a logical address corresponding to a region managed by the host device, and the file information includes file identification number managed by the host device.
9. The system of claim 5 , wherein the controller finds out the physical block address for the semiconductor storage memory corresponding to the information on disk and/or file and processes the write request on the physical block address.
10. The system of claim 9 , wherein the controller inserts the information on disk and/or file in the write request into the information memory and relates the inserted information with a new physical block address of the semiconductor storage memory, if the information on disk and/or file in the write request is not in the information memory.
11. An operating method of a system with a host device and a data storage device comprising a semiconductor storage memory including a plurality of physical blocks each including a plurality of physical pages and an information memory configured to store a mapping relation between disk information and/or file information and physical block addresses of the plurality of physical blocks, the operating method comprising:
receiving, by the data storage device, a write request and information on disk and/or file corresponding to the write request from the host device;
identifying, by the data storage device, a first physical block address corresponding to the information on disk and/or file with reference to the mapping relation stored in the information memory;
processing, by the data storage device, the write request on a physical block having the first physical block address if the first physical block address is identified,
wherein the physical block having the first physical block address does not include a physical page having a data unrelated to the information on disk and/or file corresponding to the write request;
receiving, by the data storage device, a delete request on a file and/or a disk having the information on disk and/or file corresponding to the write request from the host device;
invalidating, by the data storage device, some or all physical pages in the physical block having the first physical block address corresponding to the information on disk and/or file, wherein the physical block having the first physical block address does not include a valid physical page having a data unrelated to the information on disk and/or file corresponding to the write request thereafter; and
deleting, by the data storage device, a mapping relation corresponding to the information on disk and/or file included in the write request from the information memory.
12. The operating method of claim 11 , further comprising:
relating, by the data storage device, a second physical block address of the semiconductor storage memory with the information on disk and/or file if the first physical block address is not identified; and
processing, by the data storage device, the write request on the second physical block address.
13. The operating method of claim 11 , wherein the disk information includes a logical address corresponding to a region managed by the host device, and the file information includes file identification number managed by the host device.
14. The operating method of claim 11 , further comprising:
updating, by host device, the disk information and/or the file information; and
transmitting, by host device, the updated disk information and/or the updated file information to the data storage device.
15. The operating method of claim 14 , wherein the disk information includes a logical address corresponding to a region managed by the host device, and the file information includes file identification number managed by the host device.