[go: up one dir, main page]

CN112596678A - Storage device and firmware setting method and repartitioning method thereof - Google Patents

Storage device and firmware setting method and repartitioning method thereof Download PDF

Info

Publication number
CN112596678A
CN112596678A CN202011555891.9A CN202011555891A CN112596678A CN 112596678 A CN112596678 A CN 112596678A CN 202011555891 A CN202011555891 A CN 202011555891A CN 112596678 A CN112596678 A CN 112596678A
Authority
CN
China
Prior art keywords
address
storage device
partition
logic
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.)
Granted
Application number
CN202011555891.9A
Other languages
Chinese (zh)
Other versions
CN112596678B (en
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.)
Yeestor Microelectronics Co ltd
Original Assignee
Yeestor Microelectronics 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 Yeestor Microelectronics Co ltd filed Critical Yeestor Microelectronics Co ltd
Priority to CN202011555891.9A priority Critical patent/CN112596678B/en
Publication of CN112596678A publication Critical patent/CN112596678A/en
Application granted granted Critical
Publication of CN112596678B publication Critical patent/CN112596678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • 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/0629Configuration or reconfiguration of storage systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a storage device and a firmware setting method and a repartitioning method thereof, belonging to the technical field of storage devices.

Description

Storage device and firmware setting method and repartitioning method thereof
Technical Field
The invention relates to the technical field of storage equipment, in particular to storage equipment and a firmware setting method and a repartitioning method thereof.
Background
At present, the storage device is a commonly used device, the requirement on the storage device is 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 period of time, the stored data or files need to be replaced, which causes fragmentation of the storage space or shortage of the storage space, so that the storage device is partitioned when in use, and the storage device is re-partitioned according to the requirement of the storage space after being used for a period of time, in the prior art, the content in the space of the storage device a needing partitioning is stored in another storage device B, then the storage device a is re-partitioned, and then the content copied in the storage device B is copied back to the storage device a, which is not only troublesome, when the content is large, the replication process takes a long time, greatly increasing labor costs.
Therefore, it is an urgent problem to improve the storage speed of the storage device and simplify the re-partitioning step.
Disclosure of Invention
The invention aims to provide a storage device and a firmware setting method and a repartitioning method thereof.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, a first address, a second address and an exchange address length of logic address exchange are set, logic address exchange is realized, the first address is converted to the second address, repartitioning is realized, the repartitioning method is simplified, and 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 a storage device is provided, a continuous logic address mapping exchange interface is arranged in the firmware of the storage device and is used for exchanging a first address field with a second address field; the first address field is continuous logic addresses with set length from the first address, and the second address field is continuous logic addresses with the same length from the second address.
In a second aspect, the above object of the present invention is also achieved by the following technical solutions:
a host calculates the logic space to be adjusted according to a re-partitioning instruction, calls a mapping exchange interface of the storage device and adjusts the size of the logic space of different partitions.
The invention is further configured to: the host calculates to obtain the address of the logic space to be adjusted according to the partition logic address information and the file system information, wherein the address comprises a first address and a second address.
The invention is further configured to: the first address and the second address belong to the same partition or different partitions; the first address field and the second address field are arbitrary non-coincident logical address fields on the storage device.
The invention is further configured to: 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 the file system information.
The invention is further configured to: and after the size of the partition logic space is adjusted, updating the partition table.
The invention is further configured to: and updating the logical address mapping table to perform logical address exchange.
In a third aspect, the above object of the present invention is also achieved by the following technical solutions:
a storage device is solidified with a program, and the program is 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 basis for the handover address by setting a logical address mapping exchange interface in firmware of the storage device;
2. furthermore, the logic address mapping exchange interface is called when the partition is re-partitioned, so that the quick re-partition is realized, the re-partitioning method is simplified, and the labor cost is saved;
3. furthermore, the storage device firmware is arranged, so that the simplicity and the practicability of the storage device repartitioning are ensured, and the efficiency is improved.
Drawings
FIG. 1 is a re-partition diagram 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 embodiment
The method for setting the firmware of the storage device comprises the steps of setting 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 parameter for setting the length of an exchange address, continuous logic addresses starting from the first address and setting the length of the exchange address are a first address field, and continuous logic addresses starting from the second address and setting the length of the exchange address are a second address field.
A logical address map exchange interface for exchanging a slave first address field with a slave second address field; and carrying out logic address exchange by updating the logic address mapping table.
Specifically, a logical address mapping exchange interface instruction is added to the firmware, which is represented by the following formula:
Swap(addr1,addr2,length)
in the formula, addr1 denotes a first address, addr2 denotes a second address, and length denotes a set exchange address length.
Detailed description of the invention
According to the method for repartitioning the storage equipment, the host calculates the logical space to be adjusted according to a repartitioning instruction, calls the mapping exchange interface of the storage equipment and adjusts the size of the logical space of different partitions.
The re-partition, viewed from the user plane, is to enlarge the size of the original first partition and reduce the size of the original second partition, which is essentially to adjust the user information from the a state to the B state.
After receiving the re-partition instruction, the host 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 starting address, the ending 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 and a second address and setting the length of the exchange address, and executing a logical address mapping exchange interface instruction to obtain the repartition.
And after the re-partition is completed, updating the partition table and the file use information.
And (3) in the repartitioning process, from the perspective of a firmware layer, the space mapping exchange of the first address field and the second address field is completed by calling a logic address mapping exchange interface.
When the space mapping is exchanged, the method also comprises the steps of identifying the data of the file system, 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 1-1, includes several storage spaces C/D/E/F/G/H, corresponds to a firmware physical address, and a current state logical address corresponds to a physical address mapping provided by the firmware, as shown in 1-2, an addr1 address segment of the E storage space in the firmware and an addr2 address segment of the F storage space are subjected to logical address mapping exchange to obtain a logical space state as shown in 1-3, thereby implementing logical address mapping exchange, expanding the size of the D storage space, and reducing the size of the F storage space.
In one embodiment of the present application, the first address and the second address belong to the same partition or belong to different partitions
The first address field and the second address field are arbitrary non-coincident logical address fields on the storage device.
Detailed description of the preferred embodiment
A storage device is solidified with a computer program, and a logical address mapping exchange interface is arranged in the program. When the storage equipment is partitioned again, the storage space can be partitioned again only by calling the logical address mapping exchange interface and setting the relevant parameters, so that the user operation is simple, and the labor cost is saved.
The embodiments of the present invention are preferred embodiments of the present invention, and the scope of the present invention is not limited by these embodiments, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

Claims (8)

1. A firmware setting method of a storage device, characterized by: setting a logic address mapping exchange interface in firmware of the storage device, wherein the logic address mapping exchange interface is used for exchanging a first address field with a second address field; the first address field is continuous logic addresses with set exchange address length from the first address, and the second address field is continuous logic addresses with the same exchange address length from the second address.
2. A method of repartitioning a storage device, comprising: and the host calculates the logical space to be adjusted according to the re-partitioning instruction, calls a mapping exchange interface of the storage equipment and adjusts the size of the logical space of different partitions.
3. A method of repartitioning of a storage device according to claim 2, wherein: the host calculates to obtain the address of the logic space to be adjusted according to the partition logic address information and the file system information, wherein the address comprises a first address and a second address.
4. A method of repartitioning of a storage device according to claim 3, wherein: the first address and the second address belong to the same partition or different partitions; the first address field and the second address field are arbitrary non-coincident logical address fields on the storage device.
5. A method of repartitioning of a storage device according to 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 the file system information.
6. A method of repartitioning of a storage device according to claim 2, wherein: and after the size of the partition logic space is adjusted, updating the partition table.
7. A method of repartitioning of a storage device according to claim 1, wherein: and updating the logical address mapping table to perform logical address exchange.
8. A storage device, characterized by: the storage device is solidified with a program, and the program is provided with a logical address mapping exchange interface.
CN202011555891.9A 2020-12-24 2020-12-24 Storage device, firmware setting method thereof and repartitioning method thereof Active CN112596678B (en)

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 true CN112596678A (en) 2021-04-02
CN112596678B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911716A (en) * 2022-03-08 2022-08-16 太仓市同维电子有限公司 Dynamic, discrete and fragmented embedded system nand flash using method

Citations (13)

* Cited by examiner, † Cited by third party
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
US20060069900A1 (en) * 2004-09-30 2006-03-30 Powers Richard D Method and system for supporting virtual mappings for shared firmware
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
US20120054734A1 (en) * 2010-08-31 2012-03-01 Apple Inc. Device software upgrade using a dynamically sized partition
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

Patent Citations (13)

* Cited by examiner, † Cited by third party
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
US20060069900A1 (en) * 2004-09-30 2006-03-30 Powers Richard D Method and system for supporting virtual mappings for shared firmware
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
US20120054734A1 (en) * 2010-08-31 2012-03-01 Apple Inc. Device software upgrade using a dynamically sized partition
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911716A (en) * 2022-03-08 2022-08-16 太仓市同维电子有限公司 Dynamic, discrete and fragmented embedded system nand flash using method

Also Published As

Publication number Publication date
CN112596678B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
EP3905054B1 (en) File management method, distributed storage system, and management node
CN105933376B (en) A data manipulation method, server and storage system
KR101994021B1 (en) File manipulation method and apparatus
WO2016165597A1 (en) Processing method and device for data storage
US10642817B2 (en) Index table update method, and device
CN103455437A (en) Data storage device and data storage device operation method
KR20140133603A (en) Data storage method and device
CN112507020A (en) Data synchronization method and device, computer equipment and storage medium
CN112995257B (en) Cache expansion method and device based on cloud storage architecture and storage medium
CN103106147B (en) Memory allocation method and system
CN105718319B (en) Memory pool layout analysis method and memory pool device
CN101271429A (en) A data storage method and device
CN103455433A (en) Memory management method and system
CN113111038A (en) File storage method, device, server and storage medium
CN101727503A (en) Method for establishing disk file system
CN112596678A (en) Storage device and firmware setting method and repartitioning method thereof
CN105447064A (en) Electronic map data making method and using method and apparatus therefor
CN103593259A (en) Snapshot method and snapshot device for memories virtual clusters
US10896056B2 (en) Cluster expansion method and apparatus, electronic device and storage medium
CN103049561A (en) Data compressing method, storage engine and storage system
CN101833585A (en) Database server operation control system, method and device
CN110399354B (en) Partition exchange method and device for database
CN102270179A (en) Data storing and processing method and system for CAD (Computer Assisted Drafting) system based on fragments
CN105095478A (en) Method and device for obtaining establishing time of file in distributed file system
CN107329702B (en) Self-simplification metadata management method and device

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