CN112596678B - Storage device, firmware setting method thereof and repartitioning method thereof - Google Patents
Storage device, firmware setting method thereof and repartitioning method thereof Download PDFInfo
- Publication number
- CN112596678B CN112596678B CN202011555891.9A CN202011555891A CN112596678B CN 112596678 B CN112596678 B CN 112596678B CN 202011555891 A CN202011555891 A CN 202011555891A CN 112596678 B CN112596678 B CN 112596678B
- Authority
- CN
- China
- Prior art keywords
- address
- logic
- storage device
- exchange
- repartitioning
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000013507 mapping Methods 0.000 claims abstract description 36
- 238000005192 partition Methods 0.000 claims description 37
- 238000000638 solvent extraction Methods 0.000 description 3
- 230000001105 regulatory effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0253—Garbage collection, i.e. reclamation of unreferenced memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
Abstract
The invention discloses a storage device, a firmware setting method and a repartitioning method thereof, which belong to the technical field of storage devices, wherein a logic address mapping exchange interface is set in the firmware of the storage device, the logic address mapping exchange interface is called when repartitioning is carried out, a first address, a second address and an exchange address length of logic address exchange are set, the logic address exchange is realized, the first address is converted to the second address, the repartitioning method is realized, and the labor cost is saved.
Description
Technical Field
The present invention relates to the field of storage devices, and in particular, to a storage device, a firmware setting method thereof, and a repartitioning method thereof.
Background
At present, the storage device is a common device, the requirements on the storage device are also increasing, the storage capacity of the storage device is also increasing, but the storage capacity of the storage device is also limited, and after a certain time, the stored data or files need to be replaced, so that the fragmentation of the storage space or the shortage of the storage space is caused, therefore, the large-capacity storage device can be partitioned when in use, and the large-capacity storage device is re-partitioned according to the requirement of the storage space after being used for a period of time.
Therefore, improving the storage speed of the storage device and simplifying the repartitioning step is a problem to be solved at present.
Disclosure of Invention
The invention aims to provide a storage device, a firmware setting method and a repartitioning method thereof, wherein a logic address mapping exchange interface is set in the firmware of the storage device, the logic address mapping exchange interface is called when repartitioning is carried out, the first address, the second address and the exchange address length of logic address exchange are set, the logic address exchange is realized, the first address is converted to the second address, the repartitioning is realized, the repartitioning method is simplified, and the labor cost is saved.
In a first aspect, the above object of the present invention is achieved by the following technical solutions:
a firmware setting method of storage device sets a continuous logic address mapping exchange interface in the firmware of the storage device for exchanging the slave first address segment with the second address segment; the first address segment is a set length of continuous logical addresses starting from a first address, and the second address segment is the same length of continuous logical addresses starting from a second address.
In a second aspect, the above object of the present invention is also achieved by the following technical solutions:
a method for re-partitioning storage equipment includes calculating logic space to be regulated by host according to re-partitioning instruction, calling mapping exchange interface of storage equipment and regulating logic space size of different partitions.
The invention is further provided with: the host calculates the logical space address to be adjusted according to the partition logical address information and the file system information, wherein the logical space address comprises a first address and a second address.
The invention is further provided with: the first address and the second address belong to the same partition or belong to different partitions; the first address segment and the second address segment are any misaligned logical address segments on the storage device.
The invention is further provided with: the host obtains partition logic address information and partition file use information, including start and end address information of each partition, according to the partition table and file system information.
The invention is further provided with: after the size of the partition logic space is adjusted, the partition table is updated.
The invention is further provided with: and updating the logic address mapping table to perform logic address exchange.
In a third aspect, the above object of the present invention is also achieved by the following technical solutions:
a storage device having a program solidified therein, the program being provided with a logical address mapping exchange interface.
Compared with the prior art, the invention has the beneficial technical effects that:
1. the method and the device provide a foundation for handing over addresses by setting a logic address mapping exchange interface in firmware of the storage device;
2. further, the method and the device realize quick repartitioning by calling the logical address mapping exchange interface during repartitioning, simplify the repartitioning method and save labor cost;
3. further, by setting the storage device firmware, the method and the device ensure the simplicity and the feasibility of re-partitioning the storage device and improve the efficiency.
Drawings
FIG. 1 is a schematic representation of repartitioning of an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Detailed description of the preferred embodiments
The firmware setting method of the storage device sets a logic address mapping exchange interface in the firmware of the storage device, wherein the logic address mapping exchange interface comprises a first address, a second address and a set exchange address length parameter, the continuous logic address of which the exchange address length is set from the first address is a first address segment, and the continuous logic address of which the exchange address length is set from the second address is a second address segment.
A logical address mapping exchange interface for exchanging the slave first address field with the slave second address field; and updating the logic address mapping table to exchange the logic address.
Specifically, a logic address mapping exchange interface instruction is added in firmware, and the logic address mapping exchange interface instruction is expressed as the following formula:
Swap(addr1,addr2,length)
where addr1 represents a first address, addr2 represents a second address, and length represents a set swap address length.
Second embodiment
According to the repartitioning method of the storage device, a host calculates a logic space to be adjusted according to a repartitioning instruction, calls a mapping exchange interface of the storage device, and adjusts the size of the logic space of different partitions.
The re-partition, in terms of user level, enlarges the size of the original first partition, reduces the size of the original second partition, and essentially needs to adjust the user information from the a state to the B state.
After receiving the re-partition instruction, the host computer calls the partition table and the file system information to obtain the original partition logic address information and the original partition file use information, wherein the partition table comprises the start address information and the end address information of each partition.
According to the start address, the end address and the file use information of the partition, calculating to obtain a logical space address to be adjusted, calling a logical address mapping exchange interface, setting a first address, a second address and a set exchange address length, and executing a logical address mapping exchange interface instruction to obtain the repartition.
After the repartitioning is completed, the partition table and the file use information are updated.
And in the repartitioning process, from the firmware layer, the space mapping exchange of the first address segment and the second address segment is completed by calling a logic address mapping exchange interface.
During space mapping exchange, the method also comprises the steps of identifying file system data, adjusting the size of the file system, and carrying out mapping space exchange on the data of the file system.
Specifically, as shown in fig. 1, the current state of the storage device, as shown in fig. 1-1, includes several storage spaces of C/D/E/F/G/H, corresponds to a firmware physical address, and the corresponding relation between the current state logical address and the physical address mapping provided by the firmware, as shown in fig. 1-2, performs logical address mapping exchange on an addr1 address segment of an E storage space and an addr2 address segment of an F storage space in the firmware to obtain a logical space state as shown in fig. 1-3, thereby realizing logical address mapping exchange, expanding the size of a D storage space, and reducing the size of the F storage space.
In a specific embodiment of the present application, the first address, the second address, belong to the same partition or to different partitions
The first address segment and the second address segment are any misaligned logical address segments on the storage device.
Detailed description of the preferred embodiments
A storage device having a computer program solidified therein, the program having a logical address mapping exchange interface disposed therein. When the storage device is repartitioned, the repartitioning of the storage space can be realized only by calling the logic address mapping exchange interface and setting related parameters, so that the user operation is simplified, and the labor cost is saved.
The embodiments of the present invention are all preferred embodiments of the present invention, and are not intended to limit the scope of the present invention in this way, therefore: all equivalent changes in structure, shape and principle of the invention should be covered in the scope of protection of the invention.
Claims (6)
1. A firmware setting method of a storage device, characterized by: setting a logic address mapping exchange interface in firmware of the storage equipment, wherein the logic address mapping exchange interface comprises a first address, a second address and a set exchange address length, calling a mapping exchange interface instruction, and performing space mapping exchange on a first address segment and a second address segment, wherein the first address segment is a continuous logic address with the set exchange address length from the first address, the second address segment is a continuous logic address with the same exchange address length from the second address, and adjusting the logic space size; updating the logical address mapping table, performing logical address exchange, and updating the partition table after the size of the partition logical space is adjusted.
2. A method for repartitioning a storage device, comprising: the host calculates a logic space to be adjusted according to the repartitioning instruction, calls a mapping exchange interface of the storage device, and is used for exchanging the first address segment with the second address segment, adjusting the size of the logic space of different partitions, updating a logic address mapping table and exchanging the logic addresses; the first address segment is a continuous logic address with a set exchange address length from the first address, the second address segment is a continuous logic address with the same exchange address length from the second address, the logic space sizes of different partitions are adjusted, and after the logic space sizes of the partitions are adjusted, the partition table is updated.
3. The method of repartitioning a storage device of claim 2, wherein: the host calculates the logical space address to be adjusted according to the partition logical address information and the file system information, wherein the logical space address comprises a first address and a second address.
4. A method of repartitioning a storage device according to claim 3, wherein: the first address and the second address belong to the same partition or belong to different partitions; the first address segment and the second address segment are any misaligned logical address segments on the storage device.
5. The method of repartitioning a storage device of claim 2, wherein: the host obtains partition logic address information and partition file use information, including start and end address information of each partition, according to the partition table and file system information.
6. A memory device, characterized by: the storage device is solidified with a program provided with a logical address mapping exchange interface for repartitioning by the method according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011555891.9A CN112596678B (en) | 2020-12-24 | 2020-12-24 | Storage device, firmware setting method thereof and repartitioning method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011555891.9A CN112596678B (en) | 2020-12-24 | 2020-12-24 | Storage device, firmware setting method thereof and repartitioning method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112596678A CN112596678A (en) | 2021-04-02 |
CN112596678B true CN112596678B (en) | 2024-01-16 |
Family
ID=75202046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011555891.9A Active CN112596678B (en) | 2020-12-24 | 2020-12-24 | Storage device, firmware setting method thereof and repartitioning method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112596678B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5706472A (en) * | 1995-02-23 | 1998-01-06 | Powerquest Corporation | Method for manipulating disk partitions |
CN1567362A (en) * | 2003-06-10 | 2005-01-19 | 大唐微电子技术有限公司 | IC smart card with dynamic logic sectorization and access right control function and implementing method thereof |
CN101101557A (en) * | 2006-07-03 | 2008-01-09 | Lg电子株式会社 | Controlling memory access in a multi-booting system |
CN101770345A (en) * | 2008-12-31 | 2010-07-07 | 成都市华为赛门铁克科技有限公司 | Method for establishing logical address space, method for access to storage device and storage architecture |
US8230196B1 (en) * | 2009-05-28 | 2012-07-24 | Micron Technology, Inc. | Configurable partitions for non-volatile memory |
CN103109278A (en) * | 2010-09-22 | 2013-05-15 | 英特尔公司 | Dynamic physical memory replacement through address swapping |
CN104021022A (en) * | 2014-06-23 | 2014-09-03 | 联想(北京)有限公司 | Partition adjusting method and electronic equipment |
CN105824572A (en) * | 2015-01-05 | 2016-08-03 | 中兴通讯股份有限公司 | Disk storage space managing method, apparatus and storage device |
CN107025176A (en) * | 2016-02-01 | 2017-08-08 | 北京同方微电子有限公司 | One kind adjustment Large Copacity USIM massage storage subregion capacity systems and method |
CN107111450A (en) * | 2014-10-24 | 2017-08-29 | 微软技术许可有限责任公司 | The disk partition splicing and equilibrium again carried out using partition table |
CN107315544A (en) * | 2017-06-29 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of solid-state disk logical partition management method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7302547B2 (en) * | 2004-09-30 | 2007-11-27 | Hewlett-Packard Development Company, L.P. | Method and system for supporting virtual mappings for shared firmware |
US20120054734A1 (en) * | 2010-08-31 | 2012-03-01 | Apple Inc. | Device software upgrade using a dynamically sized partition |
-
2020
- 2020-12-24 CN CN202011555891.9A patent/CN112596678B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5706472A (en) * | 1995-02-23 | 1998-01-06 | Powerquest Corporation | Method for manipulating disk partitions |
CN1567362A (en) * | 2003-06-10 | 2005-01-19 | 大唐微电子技术有限公司 | IC smart card with dynamic logic sectorization and access right control function and implementing method thereof |
CN101101557A (en) * | 2006-07-03 | 2008-01-09 | Lg电子株式会社 | Controlling memory access in a multi-booting system |
CN101770345A (en) * | 2008-12-31 | 2010-07-07 | 成都市华为赛门铁克科技有限公司 | Method for establishing logical address space, method for access to storage device and storage architecture |
US8230196B1 (en) * | 2009-05-28 | 2012-07-24 | Micron Technology, Inc. | Configurable partitions for non-volatile memory |
CN103109278A (en) * | 2010-09-22 | 2013-05-15 | 英特尔公司 | Dynamic physical memory replacement through address swapping |
CN104021022A (en) * | 2014-06-23 | 2014-09-03 | 联想(北京)有限公司 | Partition adjusting method and electronic equipment |
CN107111450A (en) * | 2014-10-24 | 2017-08-29 | 微软技术许可有限责任公司 | The disk partition splicing and equilibrium again carried out using partition table |
CN105824572A (en) * | 2015-01-05 | 2016-08-03 | 中兴通讯股份有限公司 | Disk storage space managing method, apparatus and storage device |
CN107025176A (en) * | 2016-02-01 | 2017-08-08 | 北京同方微电子有限公司 | One kind adjustment Large Copacity USIM massage storage subregion capacity systems and method |
CN107315544A (en) * | 2017-06-29 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of solid-state disk logical partition management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112596678A (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984264B (en) | Virtual GPU (graphics processing Unit) implementation method, device and system | |
US20210240636A1 (en) | Memory Management Method and Apparatus | |
US8799615B2 (en) | Organization of a small object area and a large object area in a java heap | |
EP3905054B1 (en) | File management method, distributed storage system, and management node | |
CN103425602B (en) | A kind of method, device and the host computer system of data of flash memory storage equipment read-write | |
US11256445B2 (en) | Virtual disk file format conversion method and apparatus | |
CN105718287B (en) | A kind of program streaming execution method of intelligent terminal | |
KR20140133603A (en) | Data storage method and device | |
CN109508235B (en) | Memory pool management method and device and computer readable storage medium | |
CN106445835A (en) | Memory allocation method and apparatus | |
EP3304317B1 (en) | Method and apparatus for managing memory | |
CN103617123A (en) | Method and system for memory management by memory block | |
TW202004492A (en) | Task management method, host and storage device for electronic storage device | |
CN112596678B (en) | Storage device, firmware setting method thereof and repartitioning method thereof | |
US20180018361A1 (en) | Index Table Update Method, and Device | |
CN108427648B (en) | Storage system page viscera data indexing method and device | |
WO2007097581A1 (en) | Method and system for efficiently managing a dynamic memory in embedded system | |
CN103761060B (en) | Data processing method and server | |
CN110347614B (en) | Storage space mapping algorithm, cache state machine, storage device, and storage medium | |
CN110109677B (en) | Dynamic object cache pool allocation method | |
US9146859B2 (en) | Information processing apparatus, method, and program for improving use efficiency of a storage apparatus | |
CN113946444A (en) | Memory allocation method | |
CN107025073B (en) | NAND FLASH array Mapping information storage method | |
CN111913971A (en) | Method and device for modifying stored data, electronic equipment and storage medium | |
CN110008176A (en) | A kind of file creating method and relevant apparatus |
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 | ||
CB02 | Change of applicant information |
Address after: 518000 09-2, 10-11 unit, 6 building, Changhong science and technology building, 18 South Road, science and Technology Park, Nanshan District, Shenzhen, Guangdong, China 18 Applicant after: Deyi Microelectronics Co.,Ltd. Address before: 518000 09-2, 10-11 unit, 6 building, Changhong science and technology building, 18 South Road, science and Technology Park, Nanshan District, Shenzhen, Guangdong, China 18 Applicant before: YEESTOR MICROELECTRONICS Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |