Method for creating multi-namespace and method for accessing data therein
Abstract
A method for creating a multi-namespace includes steps of: returning information of a namespace data structure according to a query command from, wherein the information of the namespace data structure comprises a maximum number and a total capacity of supportable namespace; receiving and determining whether a create command for creating a plurality of namespaces is correct, wherein the create command comprises a number of a namespace and a capacity of the namespace; and if the determination is correct, creating a global host logical-flash physical address (H2F) mapping table according to the create command, wherein a number of the global H2F mapping tables is independent of the maximum number of the supportable namespaces and the number of namespace. A method for accessing data in a multi-namespace is also provided.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method for creating a multi-namespace, comprising steps of:
returning information of a namespace data structure according to a query command, wherein the information of the namespace data structure comprises a maximum number and a total capacity of supportable namespace;
receiving and determining whether a create command for creating a plurality of namespaces is correct, wherein the create command comprises a number of a namespace and a capacity of the namespace; and
if the determination is correct, creating a global host logical-flash physical address (H2F) mapping table according to the create command, wherein a number of the global H2F mapping tables is independent of the maximum number of the supportable namespaces and the number of namespace.
2. The method for creating a multi-namespace according to claim 1 , further comprising a step of:
if the determination is correct, returning an acknowledgment message to a host.
3. The method for creating a multi-namespace according to claim 1 , further comprising a step of:
if the determination is not correct, returning a failure message to a host.
4. The method for creating a multi-namespace according to claim 1 , wherein the step of determining whether the create command is correct comprises steps of:
determining whether the number of the namespace is smaller than or equal to the maximum number of the supportable namespace; and
determining whether a sum of the capacity of the namespace is smaller than or equal to the total capacity of the supportable namespace.
5. The method for creating a multi-namespace according to claim 1 , wherein a size of the global H2F mapping table is proportional to a sum of the capacity of the number of the namespaces to be created.
6. The method for creating a multi-namespace according to claim 1 , wherein the global H2F mapping table is partitioned into a plurality of sectors, and a total number of the sectors is equal to the number of namespace.
7. The method for creating a multi-namespace according to claim 1 , wherein the global H2F mapping table records correspondences among a plurality of logical block addresses (LBAs), a plurality of block identifiers (block IDs) and a plurality of page identifiers (page IDs).Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.