CPC G06F 3/064 (2013.01) [G06F 3/0607 (2013.01); G06F 3/0635 (2013.01); G06F 3/0679 (2013.01)] | 20 Claims |
1. A data storage device comprising:
a memory including a plurality of zones in a Zone Namespace (ZNS); and
a data storage controller including an electronic processor and a data storage controller memory that includes a variable capacity scheme, the electronic processor, when executing the variable capacity scheme, is configured to:
determine whether a special indication is received from a host regarding a particular zone in the ZNS,
delay an association of a final flash block for the particular zone in response determining that to the special indication is received from the host regarding the particular zone in the ZNS,
receive host data from the host for storage in the particular zone,
stage the host data in a staging area in response to receiving the host data from the host,
receive a zone close request regarding the particular zone from the host, and
perform a folding algorithm, the folding algorithm includes
compacting the host data for storage in the particular zone with other host data for storage in other zones into second host data, and
moving the second host data from the staging area to the final flash block that is associated with the particular zone and the other zones.
|