CN107436734A - The logical partition implementation method and device of a kind of solid-state disk - Google Patents

The logical partition implementation method and device of a kind of solid-state disk Download PDF

Info

Publication number
CN107436734A
CN107436734A CN201710632460.XA CN201710632460A CN107436734A CN 107436734 A CN107436734 A CN 107436734A CN 201710632460 A CN201710632460 A CN 201710632460A CN 107436734 A CN107436734 A CN 107436734A
Authority
CN
China
Prior art keywords
logical partition
list
unit
logical
free
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710632460.XA
Other languages
Chinese (zh)
Inventor
王杰华
刘子明
殷军博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710632460.XA priority Critical patent/CN107436734A/en
Publication of CN107436734A publication Critical patent/CN107436734A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools

Abstract

The embodiment of the invention discloses the logical partition implementation method and device of a kind of solid-state disk, including the ID for creating logical partition instruction and generating logical partition yet to be built according to user's input, establish logical partition list corresponding with logical partition yet to be built according to ID;The quantity N of logical partition unit corresponding with logical partition yet to be built is determined according to the capacity of logical partition yet to be built and the size of logic of propositions zoning unit;N number of logical partition unit is selected at random from the free logical zoning unit list pre-established, N number of logical partition unit is added in logical partition list successively, to obtain corresponding logical partition;Free logical zoning unit list is established as the foundation capacity of solid-state disk and the size of logic of propositions zoning unit in advance, and solid-state disk is divided into multiple logical partition units;Free logical zoning unit list is created, all logical partition units are added in free logical zoning unit list.The embodiment of the present invention improves the flexibility ratio of logical partition management work.

Description

The logical partition implementation method and device of a kind of solid-state disk
Technical field
The present embodiments relate to technical field of memory, a kind of logical partition implementation method more particularly to solid-state disk and Device.
Background technology
With the development of science and technology, the application of solid-state disk is more and more extensive, military, vehicle-mounted, industry control is mainly used at present, is regarded The fields such as frequency monitoring, network monitoring, the network terminal, electric power, medical treatment, aviation and navigation equipment.
Solid-state disk uses as a kind of new storage device, its storage medium using NandFlash, control protocol Be NVMe standards.Need to carry out logical partition to solid-state disk during solid-state disk use, in order to use and manage.Existing Have when carrying out logical partition to solid-state disk in technology, by the way that solid-state disk is divided into multiple logical partition units, then by multiple logics Zoning unit is divided into each logical partition.But each logic in resulting each logical partition point in the prior art Area's unit must be continuous, and the management work of solid-state disk logical partition is brought inconvenience to the later stage, so as to reduce logic point The flexibility ratio of area's management work.
Therefore, the logical partition implementation method and device for how providing a kind of solid-state disk for solving above-mentioned technical problem turn into Those skilled in the art needs to solve the problems, such as at present.
The content of the invention
The purpose of the embodiment of the present invention is to provide the logical partition implementation method and device of a kind of solid-state disk, is using process In improve the flexibility ratio of logical partition management work.
In order to solve the above technical problems, the embodiments of the invention provide a kind of logical partition implementation method of solid-state disk, bag Include:
According to the ID for creating logical partition instruction and generating logical partition yet to be built of user's input, and according to the ID establish with Logical partition list corresponding to the logical partition yet to be built;
According to the capacity of the logical partition yet to be built and the size of logic of propositions zoning unit, it is determined that with the logic yet to be built The quantity N of logical partition unit corresponding to subregion;
Select N number of logical partition unit at random from the free logical zoning unit list pre-established, and will be N number of described Logical partition unit is added in the logical partition list successively, to obtain corresponding logical partition;
The process of establishing of the free logical zoning unit list is:
In advance according to the capacity of solid-state disk and the size of the logic of propositions zoning unit, solid-state disk is divided into multiple institutes State logical partition unit;
Free logical zoning unit list is created, and all logical partition units are divided added to the free logical In area's unit list.
Optionally, it is described to select N number of logical partition unit at random from the free logical zoning unit list pre-established Before, in addition to:
Judge whether the quantity of the logical partition unit in the free logical zoning unit list is not less than the quantity N, if it is, entering in next step;Otherwise, terminate.
Optionally, it is described to be added to the process in the logical partition list successively by N number of logical partition unit:
A logical partition unit is selected from N number of logical partition unit at random, and adds it to the logic In partition list;
A logical partition unit is selected at random from the remaining logical partition unit, and adds it to described patrol Collect in partition list;
Previous step is returned until N number of logical partition unit is all added in the logical partition list.
Optionally, methods described also includes:
Deletion logical partition according to user's input instructs to obtain ID corresponding with logical partition to be deleted;
Logical partition row corresponding with the ID are judged whether according to the ID corresponding with logical partition to be deleted Table, if it is, entering in next step;Otherwise, terminate;
It is invalid that LBA corresponding with each logical partition unit in the logical partition list is labeled as, and under entrance One step;
By each logical partition element deletion in the logical partition list, and by each logical partition unit according to It is secondary to be added in the free logical zoning unit list;
Delete the logical partition list.
Optionally, each logical partition element deletion by the logical partition list, and described patrolled each Collecting the process that zoning unit is added in the free logical zoning unit list successively is:
A logical partition is selected at random in each logical partition unit being currently included from the logical partition list Unit;
The free logical zoning unit is added to by the logical partition element deletion, and by the logical partition unit The tail end of list, and previous step is returned, until logical partition unit all in the logical partition list is deleted, and add Add in the free logical zoning unit list.
In order to solve the above technical problems, the embodiments of the invention provide a kind of logical partition realization device of solid-state disk, bag Include:
Module is established, for the ID for creating logical partition instruction and generating logical partition yet to be built according to user's input, and according to Logical partition list corresponding with the logical partition yet to be built is established according to the ID;
Determining module, for the capacity and the size of logic of propositions division module according to the logical partition yet to be built, it is determined that The quantity N of logical partition unit corresponding with the logical partition yet to be built;
Add module, for selecting N number of logical partition list at random from the free logical zoning unit list pre-established Member, and N number of logical partition module is added in the logical partition list successively, to obtain corresponding logical partition;
The process of establishing of the free logical zoning unit list is:
In advance according to the capacity of solid-state disk and the size of the logic of propositions zoning unit, solid-state disk is divided into multiple institutes State logical partition unit;
Free logical zoning unit list is created, and all logical partition units are divided added to the free logical In area's unit list.
Optionally, described device also includes judge module, for judging patrolling in the free logical zoning unit list Whether the quantity for collecting zoning unit is not less than the quantity N, if it is, triggering the add module;Otherwise, terminate.
Optionally, in addition to:
Enquiry module, it is corresponding with logical partition to be deleted for instructing to obtain according to the deletion logical partition of user's input ID;
The judge module, be additionally operable to according to the ID corresponding with logical partition to be deleted judge whether with it is described Logical partition list corresponding to ID, if it is, triggered mark module;Otherwise, terminate;
The mark module, for LBA corresponding with each logical partition unit in the logical partition list to be marked It is invalid to be designated as, and triggers removing module;
The removing module, for by each logical partition element deletion in the logical partition list;It is additionally operable to delete Except the logical partition list;
The add module, it is additionally operable to each logical partition unit being added to the free logical subregion list successively In first list.
Inputted the embodiments of the invention provide the logical partition implementation method and device of a kind of solid-state disk, including according to user The ID for creating logical partition instruction and generating logical partition yet to be built, and establish logic corresponding with logical partition yet to be built according to ID and divide Area's list;According to the capacity of logical partition yet to be built and the size of logic of propositions zoning unit, it is determined that corresponding with logical partition yet to be built Logical partition unit quantity N;N number of logical partition list is selected at random from the free logical zoning unit list pre-established Member, and N number of logical partition unit is added in logical partition list successively, to obtain corresponding logical partition;Free logical Zoning unit list establishes process as the foundation capacity of solid-state disk and the size of logic of propositions zoning unit in advance, by solid-state disk It is divided into multiple logical partition units;Free logical zoning unit list is created, and all logical partition units are added to sky In not busy logical partition unit list.
It can be seen that the embodiment of the present invention can manage the logical partition list of free time by the list of free logical zoning unit Member, and when establishing logical partition, can be according in the capacity of logical partition yet to be built and free logical zoning unit list The size of logical partition unit determines the quantity of logical partition unit required in the logical partition yet to be built, and is patrolled from the free time Collect in zoning unit list and select respective numbers logical partition unit at random, by these selected logical partition units successively Added in corresponding logical partition list so as to obtaining corresponding logical partition.The embodiment of the present invention, carry in use The high flexibility ratio of logical partition management work.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to institute in prior art and embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the logical partition implementation method of solid-state disk provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of free logical zoning unit list method for building up provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the logical partition realization device of solid-state disk provided in an embodiment of the present invention.
Embodiment
The embodiments of the invention provide the logical partition implementation method and device of a kind of solid-state disk, improve in use The flexibility ratio of logical partition management work.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Referring to Fig.1 and 2, Fig. 1 is a kind of logical partition implementation method of solid-state disk provided in an embodiment of the present invention Schematic flow sheet;Fig. 2 is that a kind of flow of free logical zoning unit list method for building up provided in an embodiment of the present invention is illustrated Figure.
This method includes:
S11:According to the ID for creating logical partition instruction and generating logical partition yet to be built of user's input, and according to ID establish with Logical partition list corresponding to logical partition yet to be built;
S12:According to the capacity of logical partition yet to be built and the size of logic of propositions zoning unit, it is determined that with logical partition yet to be built The quantity N of corresponding logical partition unit;
S13:N number of logical partition unit is selected at random from the free logical zoning unit list pre-established, and will be N number of Logical partition unit is added in logical partition list successively, to obtain corresponding logical partition;
The process of establishing of free logical zoning unit list is:
S131:In advance according to the capacity of solid-state disk and the size of logic of propositions zoning unit, solid-state disk is divided into multiple Logical partition unit;
S132:Free logical zoning unit list is created, and all logical partition units are added to free logical subregion In unit list.
It is understood that before logical partition is created, whole solid-state disk can be uniformly divided into multiple logical partitions Unit, the specific size of logical partition unit can be set according to being actually needed, specifically can also be by each logical partition Unit is numbered, and is addressed according to the order of numbering from small to large for each logical partition unit.Create a free time Logical partition unit list, before logical partition is carried out to solid-state disk, all logical partition units are not used, institute Now can be added to each logical partition unit in the free logical zoning unit list successively, in order to not have to each There is each logical partition unit for being partitioned and (not using) to be managed.
When user, which needs to establish, establishes logical partition to solid-state disk, you can input creates logical partition instruction, and system can To generate ID corresponding with logical partition yet to be built according to the instruction, and then logical partition row corresponding with the ID are established according to the ID Table, and in the capacity of the logical partition yet to be built of the required foundation inputted according to user and free logical zoning unit list The size (or length) of logical partition unit determines to need to include how many individual logical partition units in the logical partition yet to be built, obtains Quantity N.Now, you can N number of logical partition unit is randomly choosed out from free logical zoning unit list, and will be selected N number of logical partition unit is added in established logical partition list successively, so as to complete the foundation of logical partition.
For example, solid-state disk A capacity is 1G, then can be by solid-state disk A if the size of each logical partition unit is 100M It is divided into 10 logical partition units, the numbering of each logical partition unit can be successively 0123456789, due to now not right Solid-state disk carries out logical partition, and all logical partition units are not used, therefore can be by each logical partition unit 0123456789 is added in free logical zoning unit list, if it is patrolling for 300M that now user, which wants to set up a capacity, Subregion is collected, then can select 3 logical partition units from logical partition unit 0123456789 at random, such as can select to patrol Zoning unit 012 is collected, and the logical partition unit for numbering respectively 012 is added in corresponding logical partition list;If Now user still wants to resettle the logical partition that a capacity is 200M, then can be at random from remaining logical partition unit 2 logical partition units are selected in 3456789, such as the logical partition unit that numbering is respectively 56 can be selected, now can be with The logical partition unit for numbering respectively 56 is added in corresponding logical partition list;If user still wants to establish one Capacity is 400M logical partition, then can select 4 logical partition lists from remaining logical partition unit 34789 at random Member, such as the logical partition unit that numbering is respectively 3489 can be selected, and by this 4 logical partition units added to accordingly In logical partition list.
It can be seen that logical partition unit can be randomly choosed in the embodiment of the present invention, and between each logical partition unit Without mutually continuous, make management more flexible.In addition, added to each logical partition list in corresponding logical partition list It can be linked between member by chained list mode, in order to when changing the size of the logical partition, patrol increase or deletion Volume zoning unit is more convenient, and by each logical partition unit when added in corresponding logical partition list, respectively Do not have the relation of sequencing between individual logical partition unit, can be added successively according to random order.
The embodiments of the invention provide a kind of logical partition implementation method of solid-state disk, including the establishment according to user's input Logical partition instruction generates the ID of logical partition yet to be built, and establishes logical partition row corresponding with logical partition yet to be built according to ID Table;According to the capacity of logical partition yet to be built and the size of logic of propositions zoning unit, it is determined that corresponding with logical partition yet to be built patrol Collect the quantity N of zoning unit;N number of logical partition unit is selected at random from the free logical zoning unit list pre-established, And be added to N number of logical partition unit in logical partition list successively, to obtain corresponding logical partition;Free logical subregion Unit list establishes process as according to the capacity of solid-state disk and the size of logic of propositions zoning unit, solid-state disk is divided equally in advance For multiple logical partition units;Free logical zoning unit list is created, and all logical partition units were patrolled added to the free time Collect in zoning unit list.
It can be seen that the embodiment of the present invention can manage the logical partition list of free time by the list of free logical zoning unit Member, and when establishing logical partition, can be according in the capacity of logical partition yet to be built and free logical zoning unit list The size of logical partition unit determines the quantity of logical partition unit required in the logical partition yet to be built, and is patrolled from the free time Collect in zoning unit list and select respective numbers logical partition unit at random, by these selected logical partition units successively Added in corresponding logical partition list so as to obtaining corresponding logical partition.The embodiment of the present invention, carry in use The high flexibility ratio of logical partition management work.
The embodiment of the invention discloses a kind of logical partition implementation method of solid-state disk, relative to a upper embodiment, this reality Apply example and further instruction and optimization have been made to technical scheme.Specifically:
Further, in above-mentioned S13, N number of patrol is selected at random from the free logical zoning unit list pre-established Before collecting zoning unit, this method can also include:
Judge whether the quantity of the logical partition unit in free logical zoning unit list is not less than quantity N, if it is, Then enter in next step;Otherwise, terminate.
Specifically, the logical partition being not used by can also be inquired about in free logical zoning unit list in actual applications The quantity of unit, and judge the quantity whether be more than or equal to logical partition yet to be built required for logical partition unit quantity N, such as Current logical partition unit sum is not less than quantity N in fruit free logical zoning unit list, then can be from the free logical N number of logical partition unit is selected in zoning unit list at random, for building corresponding logical partition;When free logical subregion list When current logical partition unit sum is less than quantity N in first list, then illustrate patrolling in the free logical zoning unit list Volume zoning unit is not enough to build corresponding logical partition, now system can direct end operation, or exception can be reported And exit, abnormal cause can also be shown, so that user adjusts the capacity of established logical partition in time.
Further, in above-mentioned S13, by N number of logical partition unit successively added to the mistake in logical partition list Journey, it is specifically as follows:
A logical partition unit is selected from N number of logical partition unit at random, and adds it to logical partition list In;
Select a logical partition unit at random from remaining logical partition unit, and add it to logical partition row In table;
Previous step is returned until N number of logical partition unit is all added in logical partition list.
It should be noted that after the N number of logical partition unit selected from free logical zoning unit list, Ke Yicong A logical partition unit is selected at random in this N number of logical partition unit, and is added it in logical partition list, Ran Hou A logical partition unit is selected from remaining N-1 logical partition unit, adds it in logical partition list, follows altogether Ring n times, untill n-th logical partition unit is added in logical partition list.
It is of course also possible to since first logical partition unit in N number of logical partition unit, one by one by each logic Zoning unit is added in corresponding logical partition list.Which kind of method is specifically used, it is special that the embodiment of the present invention is not done to this Restriction, the purpose of the embodiment of the present invention can be realized.
Specifically, this method can also include:
Deletion logical partition according to user's input instructs to obtain ID corresponding with logical partition to be deleted;
Logical partition list corresponding with ID is judged whether according to ID corresponding with logical partition to be deleted, if It is then to enter in next step;Otherwise, terminate;
It is invalid that LBA corresponding with each logical partition unit in logical partition list is labeled as, and enters in next step;
It is added to successively by each logical partition element deletion in logical partition list, and by each logical partition unit In free logical zoning unit list;
Delete logical partition list.
It is understood that user not only needs to create logical partition, it is also possible to needs to enter the logical partition created Row is deleted.Therefore, when user needs to delete logical partition, it can input and delete logical partition instruction, in the instruction Include the ID of logical partition to be deleted, system can be searched into all logical partition lists according to ID, judged whether In the presence of logical partition list corresponding with logical partition to be deleted, if it does not exist, then illustrate that the logical partition has been deleted, this When can be with end operation, or prompting user is abnormal, and exits, and user can also be according to the deletion that prompt message inspection is inputted Whether logical partition instruction is wrong.
When exist logical partition list corresponding with logical partition to be deleted when, then need by with logical partition list LBA corresponding to each logical partition unit (Logical Block Address, logical block address), labeled as invalid, namely should The data message stored in logical partition to be deleted is no longer useful data message, now will corresponding each logical partition It is invalid that unit is labeled as, and corresponding data message is failed., will again by each logical partition unit labeled as after invalid Each logical partition unit is deleted from corresponding logical partition list, and is added to free logical zoning unit list with this In, namely delete each logical partition unit become the logical partition unit being not used, so as to by these not by The logical partition unit used is added in free logical zoning unit list again, is selected for resettling next time during logical partition With.Finally, the logical partition unit list for deleting logical partition unit is deleted, so as to complete to patrol to be deleted Collect the deletion action of subregion.
More specifically, by each logical partition element deletion in logical partition list, and by each logical partition unit It is added to the process in free logical zoning unit list successively:
A logical partition unit is selected at random in each logical partition unit being currently included from logical partition list;
By logical partition element deletion, and the tail end by logical partition unit added to free logical zoning unit list, And previous step is returned, until logical partition unit all in logical partition list is deleted, and added to free logical point In area's unit list.
It should be noted that specifically to each logical partition in logical partition list corresponding to logical partition to be deleted When unit is deleted, the number of logical partition unit included in the logical partition list, Ran Houzai can be first calculated Deleted one by one, for example, a logical partition unit can be selected from all logical partition units to be deleted at random Deleted, and the logical partition unit deleted is added to the tail end of free logical zoning unit list;Then, from surplus One is randomly choosed in remaining logical partition unit to be deleted, and it is current to add it to the list of free logical zoning unit Tail end, circulation carries out a to the last logical partition unit to be deleted and is deleted, and is added to free logical zoning unit Untill in list.
Certainly, can also be according to logic corresponding to logical partition to be deleted in addition to randomly choosing logical partition unit The order of each logical partition unit in partition list is deleted one by one, specifically using which kind of mode embodiment of the present invention pair This does not do special restriction, can realize the purpose of the embodiment of the present invention.
Accordingly the embodiment of the invention also discloses a kind of logical partition realization device of solid-state disk, Fig. 3 is specifically refer to, Fig. 3 is a kind of structural representation of the logical partition realization device of solid-state disk provided in an embodiment of the present invention.In above-described embodiment On the basis of:
The device includes:
Module 1 is established, for the ID for creating logical partition instruction and generating logical partition yet to be built according to user's input, and according to Logical partition list corresponding with logical partition yet to be built is established according to ID;
Determining module 2, for the size of the capacity according to logical partition yet to be built and logic of propositions division module, it is determined that with treating Build the quantity N of logical partition module corresponding to logical partition;
Add module 3, for selecting N number of logical partition list at random from the free logical zoning unit list pre-established Member, and N number of logical partition unit is added in logical partition list yet to be built successively, to obtain corresponding logical partition;
The process of establishing of free logical zoning unit list is:
In advance according to the capacity of solid-state disk and the size of logic of propositions zoning unit, solid-state disk is divided into multiple logics point Area's unit;
Free logical zoning unit list is created, and all logical partition modules are arranged added to free logical zoning unit In table.
Optionally, device also includes judge module, for judging the logical partition list in free logical zoning unit list Whether the quantity of member is not less than quantity N, if it is, triggering add module;Otherwise, terminate.
Optionally, in addition to:
Enquiry module, it is corresponding with logical partition to be deleted for instructing to obtain according to the deletion logical partition of user's input ID;
Judge module, it is additionally operable to judge whether logic corresponding with ID according to ID corresponding with logical partition to be deleted Partition list, if it is, triggered mark module;Otherwise, terminate;
Mark module, it is invalid for LBA corresponding with each logical partition unit in logical partition list to be labeled as, And trigger removing module;
Removing module, for by each logical partition element deletion in logical partition list;It is additionally operable to delete logic point Area's unit list;
Add module 3, it is additionally operable to each logical partition unit being added in free logical partition list successively.
It can be seen that the embodiment of the present invention can manage the logical partition unit of free time by free logical partition list, and And when establishing logical partition, can be according to the logical partition list in the capacity and free logical partition list of logical partition yet to be built The size of member determine in the logical partition yet to be built required for logical partition unit quantity, and from free logical partition list In select respective numbers logical partition unit at random, by these selected logical partition units successively added to accordingly patrolling Collect in partition list so as to obtain corresponding logical partition.The embodiment of the present invention, logical partition pipe is improved in use The flexibility ratio that science and engineering is made.
In addition, the specific solution for the logical partition implementation method of solid-state disk involved in the embodiment of the present invention please With reference to above method embodiment, the application will not be repeated here.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
It should also be noted that, in this manual, such as term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In the storage medium of any other forms well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (8)

  1. A kind of 1. logical partition implementation method of solid-state disk, it is characterised in that including:
    According to the ID for creating logical partition instruction and generating logical partition yet to be built of user's input, and according to the ID establish with it is described Logical partition list corresponding to logical partition yet to be built;
    According to the capacity of the logical partition yet to be built and the size of logic of propositions zoning unit, it is determined that with the logical partition yet to be built The quantity N of corresponding logical partition unit;
    Select N number of logical partition unit at random from the free logical zoning unit list pre-established, and by N number of logic Zoning unit is added in the logical partition list successively, to obtain corresponding logical partition;
    The process of establishing of the free logical zoning unit list is:
    In advance according to the capacity of solid-state disk and the size of the logic of propositions zoning unit, solid-state disk is divided into multiple described patrol Collect zoning unit;
    Free logical zoning unit list is created, and all logical partition units are added to the free logical subregion list In first list.
  2. 2. the logical partition implementation method of solid-state disk according to claim 1, it is characterised in that described from pre-establishing Before N number of logical partition unit is selected in free logical zoning unit list at random, in addition to:
    Judge whether the quantity of the logical partition unit in the free logical zoning unit list is not less than the quantity N, such as Fruit is then to enter in next step;Otherwise, terminate.
  3. 3. the logical partition implementation method of solid-state disk according to claim 2, it is characterised in that described described to be patrolled N number of Collecting the process that zoning unit is added in the logical partition list successively is:
    A logical partition unit is selected from N number of logical partition unit at random, and adds it to the logical partition In list;
    A logical partition unit is selected at random from the remaining logical partition unit, and adds it to the logic point In area's list;
    Previous step is returned until N number of logical partition unit is all added in the logical partition list.
  4. 4. the logical partition implementation method of solid-state disk according to claim 1, it is characterised in that methods described also includes:
    Deletion logical partition according to user's input instructs to obtain ID corresponding with logical partition to be deleted;
    Logical partition list corresponding with the ID is judged whether according to the ID corresponding with logical partition to be deleted, such as Fruit is then to enter in next step;Otherwise, terminate;
    It is invalid that LBA corresponding with each logical partition unit in the logical partition list is labeled as, and enters in next step;
    Add successively by each logical partition element deletion in the logical partition list, and by each logical partition unit Add in the free logical zoning unit list;
    Delete the logical partition list.
  5. 5. the logical partition implementation method of solid-state disk according to claim 4, it is characterised in that described by the logic point Each logical partition element deletion in area's list, and each logical partition unit is added to the free logical successively Process in zoning unit list is:
    A logical partition unit is selected at random in each logical partition unit being currently included from the logical partition list;
    By the logical partition element deletion, and the tail by the logical partition unit added to the free logical partition list End, and previous step is returned, until logical partition unit all in the logical partition list is deleted, and added to described In free logical zoning unit list.
  6. A kind of 6. logical partition realization device of solid-state disk, it is characterised in that including:
    Module is established, for the ID for creating logical partition instruction and generating logical partition yet to be built according to user's input, and according to institute State ID and establish logical partition list corresponding with the logical partition yet to be built;
    Determining module, for the capacity and the size of logic of propositions division module according to the logical partition yet to be built, it is determined that and institute State the quantity N of logical partition unit corresponding to logical partition yet to be built;
    Add module, for selecting N number of logical partition unit at random from the free logical zoning unit list pre-established, and N number of logical partition unit is added in the logical partition list successively, to obtain corresponding logical partition;
    The process of establishing of the free logical division module list is:
    In advance according to the capacity of solid-state disk and the size of the logic of propositions division module, solid-state disk is divided into multiple described patrol Collect zoning unit;
    Free logical zoning unit list is created, and all logical partition units are added to the free logical subregion list In first list.
  7. 7. the logical partition realization device of solid-state disk according to claim 6, it is characterised in that described device also includes sentencing Disconnected module, for judging whether the quantity of the logical partition unit in the free logical zoning unit list is not less than the number N is measured, if it is, triggering the add module;Otherwise, terminate.
  8. 8. the logical partition realization device of solid-state disk according to claim 6, it is characterised in that also include:
    Enquiry module, for instructing to obtain ID corresponding with logical partition to be deleted according to the deletion logical partition of user's input;
    The judge module, it is additionally operable to judge whether and described ID pairs according to the ID corresponding with logical partition to be deleted The logical partition list answered, if it is, triggered mark module;Otherwise, terminate;
    The mark module, for LBA corresponding with each logical partition unit in the logical partition list to be labeled as It is invalid, and trigger removing module;
    The removing module, for by each logical partition element deletion in the logical partition list;It is additionally operable to delete institute State logical partition list;
    The add module, it is additionally operable to successively arrange each logical partition unit added to the free logical zoning unit In table.
CN201710632460.XA 2017-07-28 2017-07-28 The logical partition implementation method and device of a kind of solid-state disk Pending CN107436734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710632460.XA CN107436734A (en) 2017-07-28 2017-07-28 The logical partition implementation method and device of a kind of solid-state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710632460.XA CN107436734A (en) 2017-07-28 2017-07-28 The logical partition implementation method and device of a kind of solid-state disk

Publications (1)

Publication Number Publication Date
CN107436734A true CN107436734A (en) 2017-12-05

Family

ID=60460211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710632460.XA Pending CN107436734A (en) 2017-07-28 2017-07-28 The logical partition implementation method and device of a kind of solid-state disk

Country Status (1)

Country Link
CN (1) CN107436734A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491612A (en) * 2018-11-15 2019-03-19 苏州韦科韬信息技术有限公司 A kind of logical partition method and device of solid state hard disk

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001076024A (en) * 1999-09-07 2001-03-23 Nec Corp Logic circuit simulation method
CN1494681A (en) * 2000-10-27 2004-05-05 �ֹ��� Partition creating method and deleting method
CN101271430A (en) * 2007-03-21 2008-09-24 联想(北京)有限公司 Method and apparatus for data protection of memory device
CN101847126A (en) * 2009-10-27 2010-09-29 深圳市朗科科技股份有限公司 Storage equipment partitioning device and method
CN102339244A (en) * 2010-07-29 2012-02-01 上海置水软件技术有限公司 System backup and restoration technology based on virtual partition
CN102999436A (en) * 2012-11-28 2013-03-27 华为终端有限公司 Method and device for generating dynamic partition information in Nand flash memory
CN103020550A (en) * 2012-12-03 2013-04-03 记忆科技(深圳)有限公司 Solid state disk and secure access method thereof as well as solid state disk system
CN103425464A (en) * 2012-05-15 2013-12-04 鸿富锦精密工业(深圳)有限公司 Method and device for making motherboard

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001076024A (en) * 1999-09-07 2001-03-23 Nec Corp Logic circuit simulation method
CN1494681A (en) * 2000-10-27 2004-05-05 �ֹ��� Partition creating method and deleting method
CN101271430A (en) * 2007-03-21 2008-09-24 联想(北京)有限公司 Method and apparatus for data protection of memory device
CN101847126A (en) * 2009-10-27 2010-09-29 深圳市朗科科技股份有限公司 Storage equipment partitioning device and method
CN102339244A (en) * 2010-07-29 2012-02-01 上海置水软件技术有限公司 System backup and restoration technology based on virtual partition
CN103425464A (en) * 2012-05-15 2013-12-04 鸿富锦精密工业(深圳)有限公司 Method and device for making motherboard
CN102999436A (en) * 2012-11-28 2013-03-27 华为终端有限公司 Method and device for generating dynamic partition information in Nand flash memory
CN103020550A (en) * 2012-12-03 2013-04-03 记忆科技(深圳)有限公司 Solid state disk and secure access method thereof as well as solid state disk system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491612A (en) * 2018-11-15 2019-03-19 苏州韦科韬信息技术有限公司 A kind of logical partition method and device of solid state hard disk

Similar Documents

Publication Publication Date Title
CN109919315A (en) A kind of forward inference method, apparatus, equipment and the storage medium of neural network
CN107015892A (en) A kind of method for testing pressure, device and system
CN111552555B (en) Point cloud visualization method and equipment
CN109656873A (en) Data archiving method, device and terminal device based on block chain
CN104216759B (en) A kind of method for the logic magnetic disc for generating virtual machine, and device
CN107680003A (en) The node tree generation method and device of project supervision task
TWI460436B (en) Method for optimize phasor measurement unit placement
CN106201819A (en) The system resource occupancy monitoring method and apparatus of application container engine
CN109710542A (en) A kind of completely N-ary tree construction method and device
CN103543901B (en) The method and apparatus generating menu
CN110287179A (en) A kind of filling equipment of shortage of data attribute value, device and method
CN110275873A (en) File memory method, device, storage management apparatus and storage medium
CN107436734A (en) The logical partition implementation method and device of a kind of solid-state disk
CN103905310B (en) Message processing method and forwarding device
CN105630419A (en) Partition view sending method of resource pools and management node
CN104009863A (en) Server system and method for automatically acquiring server number
CN108933844A (en) The method and apparatus of DHCP service is provided
CN104376366B (en) A kind of system of selection of optimal network maximum-flow algorithm and equipment
CN105095239A (en) Uncertain graph query method and device
CN110033189B (en) Method, device and equipment for automatically generating fiber core segment
CN110134751B (en) Pile position wire ID generation method and device and mobile terminal
CN105099732B (en) A kind of methods, devices and systems identifying abnormal IP traffic
CN110032796B (en) Fiber core segment automatic generation method, device, equipment and readable storage medium
CN103457876A (en) Method and system for determining nearest access network resources
CN105988868A (en) Method for transferring application programs and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171205