Memory system, data storage device, user device and data management method thereof having a data management information matching determination
AssigneeSamsung Electronics Co., Ltd.
InventorsHyojin Jeong, Youngjoon Choi, Sunghoon Lee, Jae-Hyeon Ju
Life of this patent
Estimating the term…
Abstract
A data management method of a data storage device having a data management unit different from a data management unit of a user device receives information regarding a storage area of a file to be deleted, from the user device, selects a storage area which matches with the data management unit of the data storage device, from among the storage area of the deleted file, and performs an erasing operation on the selected storage area which matches with the data management unit.
Claims16
A data management method for a memory system including a host and a data storage device, the host having a different data management unit than the data storage device, the method comprising:
- generating a sector address range of a first file that is no longer required in the memory system, data of the first file being stored in a first management unit and only a portion of a second management unit of the data storage device, wherein the first management unit and the second management unit do not overlap each other;
- assigning the sector address range of the first file to both a first sector address range and a second sector address range based on information of a mapping table received from the data storage device, the first sector address range and the second sector address range corresponding to the first management unit and the only a portion of the second management unit, respectively;
- marking writing state information of the first management unit as invalid in the mapping table when the first sector address range matches the first management unit;
- keeping writing state information of the second management unit as valid in the mapping table, and marking writing state information corresponding to the only a portion of the second management unit as invalid in a TRIM managing table, when the second sector address range mismatches the second management unit;
- erasing the first management unit during a first idle time in response to the writing state information of the first management unit being marked as invalid, wherein the only a portion of the second management unit marked as invalid is not erased during the first idle time;
- and
- erasing the second management unit during a second idle time subsequent to the first idle time, wherein the second management unit is not erased until writing state information corresponding to all remaining data in the second management unit other than the only a portion of the second management unit has been marked as invalid in the TRIM managing table.
A memory system comprising:
- a host;
- and
- a data storage device,
- wherein:
- the host is configured to:
- drive a file system to manage a file by a unit different from a data management unit of the data storage device and to change metadata of a first file that is no longer required in the memory system, data of the first file being stored in a first management unit and only a portion of a second management unit of the data storage device, wherein the first management unit and the second management unit do not overlap each other;
- and
- transmit a command including a first sector address range of the first file and a second sector address range of the first file to the data storage device wherein the first sector address range and the second sector address range correspond to the first management unit and the only a portion of the second management unit, respectively;
- and
- the data storage device is configured to:
- mark writing state information of the first management unit as invalid in the mapping table when the first sector address range matches the first management unit;
- keep writing state information of the second management unit as valid in the mapping table, and mark writing state information corresponding to the only a portion of the second management unit as invalid in a TRIM managing table, when the second sector address range mismatches the second management unit;
- erase the first management unit during a first idle time in response to the writing state information of the first management unit being marked as invalid, wherein the only a portion of the second management unit marked as invalid is not erased during the first idle time;
- and
- erase the second management unit during a second idle time subsequent to the first idle time, wherein the second management unit is not erased until writing state information corresponding to all remaining data in the second management unit other than the only a portion of the second management unit has been marked as invalid in the TRIM managing table.
Dependencies are inferred from the claim text.