WO2023060893A1 - Procédé et appareil de gestion d'espace de stockage, dispositif et support de stockage - Google Patents

Procédé et appareil de gestion d'espace de stockage, dispositif et support de stockage Download PDF

Info

Publication number
WO2023060893A1
WO2023060893A1 PCT/CN2022/093357 CN2022093357W WO2023060893A1 WO 2023060893 A1 WO2023060893 A1 WO 2023060893A1 CN 2022093357 W CN2022093357 W CN 2022093357W WO 2023060893 A1 WO2023060893 A1 WO 2023060893A1
Authority
WO
WIPO (PCT)
Prior art keywords
target device
storage space
instruction
partition
memory
Prior art date
Application number
PCT/CN2022/093357
Other languages
English (en)
Chinese (zh)
Inventor
成凯
Original Assignee
深圳市广和通无线股份有限公司
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 深圳市广和通无线股份有限公司 filed Critical 深圳市广和通无线股份有限公司
Publication of WO2023060893A1 publication Critical patent/WO2023060893A1/fr

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
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • 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
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of storage, and in particular to a storage space management method, device, device and storage medium.
  • sub-projects in the same project are distinguished by adding project compilation options in the compilation script.
  • the software run by each sub-project is highly similar, but developers need to develop or maintain each sub-project, which will increase the number of official versions of the project, increase the number of compiled versions and the workload of the testing department, and lead to
  • the project management and control in the software code is complex, and the project branches are complicated.
  • the present application relates to a storage space management method, the method comprising:
  • the size of the current storage space is updated to the software data required for the operation of the target device.
  • the management instructions include restart recovery instructions, erase instructions, and partition alignment instructions
  • the acquisition of the storage space size of the memory in the target device through the management instruction includes:
  • the current storage space size of the memory in the target device is acquired.
  • the target device after saving the size of the current storage space into the software data required for the operation of the target device, it further includes:
  • the current storage space size of the memory in the target device is obtained according to the partition alignment instruction Previously, also included:
  • the partition alignment instruction after obtaining the current storage space size of the memory in the target device, before updating the current storage space size to the software data required for the target device to run, further includes :
  • the memory includes at least one memory partition
  • the obtaining the current storage space size of the memory in the target device according to the partition alignment instruction includes:
  • the sum of the storage space sizes of each partition is used as the current storage space size of the memory in the target device.
  • the present application relates to a storage space management device, and the device includes:
  • the reading module is used to read the preset management instructions in the specified partition when the target device is turned on for the first time;
  • An acquisition module configured to acquire the current storage space size of the memory in the target device through the management instruction
  • An update module configured to update the size of the current storage space into the software data required for the operation of the target device.
  • the present application relates to electronic equipment, including a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus;
  • the memory is used to store computer programs
  • the processor is configured to execute the program stored in the memory to implement the storage space management method described in this application.
  • the present application relates to a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the storage space management method described in the present application is implemented.
  • FIG. 1 is a schematic diagram of the process steps of the implementation of the storage space management method provided in an embodiment of the present application
  • FIG. 2 is an example diagram of a mics partition format provided in another embodiment of the present application.
  • FIG. 3 is a schematic structural connection diagram of a storage space management device provided in another embodiment of the present application.
  • FIG. 4 is a schematic diagram of structural connection of an electronic device provided in another embodiment of the present application.
  • the storage space management method provided in the embodiment of the present application may be implemented by a software algorithm.
  • the algorithm corresponding to the method can be preset in the processor of the target device.
  • the target device may be any one of smart phones, tablet computers, smart bracelets, smart refrigerators and other types of electronic devices.
  • the process steps implemented by the storage space management method are as follows:
  • Step 102 when the target device is turned on for the first time, read the preset management instructions in the specified partition.
  • the management instruction is saved in a designated partition of the target device in advance.
  • the management instruction is read from the instruction partition.
  • the specified partition may be any storage partition in the memory of the target device, for example, the specified partition may be a miscellaneous (mics) partition.
  • the management instruction can be converted into ASCII ciphertext in advance, and the translated ciphertext can be written into the image to be upgraded by the misc partition through a software tool, so as to be used in the subsequent storage space management method of the target device.
  • a mics partition format is shown in FIG. 2 , in which management instructions are written in hexadecimal, and numbers and letters in FIG. 2 represent hexadecimal numbers.
  • the management instruction in the misc partition can be read through the preset Read From Partition function.
  • the recovery environment of the target device is initialized, so that the target device can execute the restart recovery command.
  • an electronic device based on the Linux system Linux system is a UNIX-like operating system that is freely used and freely disseminated
  • UEFI Unified Extensible Firmware Interface
  • Initializing the recovery (recovery) environment of the target device is realized during the initialization process.
  • Step 104 obtain the current storage space size of the memory in the target device through the management instruction.
  • the preset management instruction is used to obtain the current storage space size of the memory in the target device. That is, after the target device is turned on and before the user uses it, the current storage space size is first obtained, so that the target device can be used normally.
  • the memory in the target device can be Embedded Multi Media Card (EMMC for short), Universal Flash Storage (UFS for short), and any other type of memory that can implement this method.
  • EMMC Embedded Multi Media Card
  • UFS Universal Flash Storage
  • the protection scope of the application is not limited by the specific type of memory.
  • the management instructions include restart recovery instructions, erase instructions and partition alignment instructions. Obtain the storage space size of the memory in the target device through the management command.
  • the specific implementation process is as follows: save the erase command and partition alignment command into the buffer control block; restart the target device according to the restart recovery command, and read the buffer control block Erase instruction and partition alignment instruction in; according to the erase instruction, delete the original storage space size in the software data; according to the partition alignment instruction, obtain the current storage space size of the memory in the target device.
  • a buffer control block (Buffer Control Block, BCB for short) is a storage block capable of storing instruction data.
  • BCB Buffer Control Block
  • the target device After the target device reads the management command, it first saves the erase command and the partition alignment command in the BCB, and then enters the recovery environment after rebooting through the boot-recovery command. In the recovery environment after reboot, read the erase command and partition alignment command in BCB again. Then delete the original storage space size in the software data according to the erasing instruction. Then according to the partition alignment instruction, the current storage space size of the memory in the target device is acquired.
  • BCB Buffer Control Block
  • the partition alignment instruction after deleting the original storage space size in the software data according to the erase instruction, before obtaining the current storage space size of the memory in the target device according to the partition alignment instruction, delete the erase instruction stored in the buffer control block.
  • the partition alignment instruction after obtaining the current storage space size of the memory in the target device, before updating the current storage space size to the software data required for the target device to run, delete the partition alignment instruction stored in the buffer control block.
  • the erase instruction stored in the BCB when executed, the erase instruction in the BCB is immediately deleted; when the partition alignment instruction stored in the BCB is executed, the partition alignment instruction in the BCB is immediately deleted to ensure that the partition alignment instruction in the BCB is executed.
  • the erase instruction and partition alignment instruction are only used once, avoiding the process of repeatedly executing instructions.
  • the preset management instruction in the specified partition is deleted.
  • the storage space management process for the target device only needs to be performed once, and the target device does not need to repeatedly execute the process.
  • the preset management command in the specified partition is deleted, and when the target device is turned on again, the storage space management process will not be started again through the management command. Avoid the boot delay that occurs when the storage space is managed every time the boot is started, and improve the user experience.
  • the memory includes at least one storage partition.
  • the partition alignment instruction obtain the current storage space size of the memory in the target device.
  • the specific process is: according to the partition alignment instruction, obtain the partition storage space size corresponding to at least one storage partition that can be used by the user; The sum is used as the current storage space size of the memory in the target device.
  • partition alignment means reasonable boundary alignment between the partition and the memory. Through the process of partition alignment, it is possible to accurately know the partition storage space size corresponding to each storage partition that can be used by users, such as the size of user data (userdata) or the size of cache (cache). Through the storage space size of each partition, a more accurate current storage space size available to the user can be obtained, paving the way for the normal operation of the target device.
  • the partition alignment function can be enabled by enabling the partition alignment (ALIGN_PARTITIONS_TO_PERFORMANCE_BOUNDARY) feature.
  • the partition alignment ALIGN_PARTITIONS_TO_PERFORMANCE_BOUNDARY
  • the target device will automatically align all partitions and recalculate the userdate size after the device is restored to factory settings.
  • Step 106 updating the current storage space size into the software data required for the target device to run.
  • the current storage space size is updated to the software data required for the target device to run, so that the target device starts running based on the current storage space size. That is, the target device has completed the self-adaptation of the storage space.
  • the target device is restarted so that the target device can be used normally.
  • the target device automatically completes the process of rebooting the target device, which can avoid the problem of poor user experience caused by manual operation by the user, and make the target device more intelligent.
  • the target device when the target device is turned on for the first time, it reads the preset management command in the specified partition, obtains the current storage space size of the memory in the target device through the management command, and updates the current storage space size to In the software data required for the target device to run. That is to say, when the target device is turned on for the first time, the current storage space size of the target device memory is obtained through management instructions, and then the operation of the target device is realized based on the current storage space size, rather than through the previously written storage space. The size of the space to run the software. When the software data runs on another new device with a different size of the current storage space, the method can adapt to the storage space instead of redeveloping the software data for the new device. By adapting to the current storage space of the target device, the process of adapting a set of software data to multiple hardware devices is realized, which greatly reduces the development difficulty of developers and improves development efficiency.
  • the device mainly include:
  • the reading module 302 is used to read the preset management instructions in the specified partition when the target device is turned on for the first time;
  • An acquisition module 304 configured to acquire the current storage space size of the memory in the target device through a management instruction
  • the update module 306 is configured to update the current storage space size into the software data required for the target device to run.
  • Another embodiment of the present application also provides an electronic device.
  • the memories 420 communicate with each other through the communication bus 430 .
  • the memory 420 stores programs executable by the processor 410, and the processor 410 executes the programs stored in the memory 420 to implement the storage space management method described in the above embodiments.
  • the communication bus 430 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 430 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 4 , but it does not mean that there is only one bus or one type of bus.
  • the memory 420 may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the memory may also be at least one storage device located away from the aforementioned processor 410 .
  • the above-mentioned processor 410 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc., and can also be a digital signal processor (Digital Signal Processing, referred to as DSP). ), Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the electronic device provided in this embodiment may specifically be a module capable of realizing a communication function or a terminal device including the module, and the terminal device may be a mobile terminal or a smart terminal.
  • the mobile terminal can be at least one of mobile phones, tablet computers, notebook computers, etc.
  • the smart terminal can be specifically smart cars, smart watches, shared bicycles, smart cabinets and other terminals containing wireless communication modules
  • the module can be specifically wireless Communication module, such as any one of 2G communication module, 3G communication module, 4G communication module, 5G communication module, NB-IOT communication module, etc.
  • a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium.
  • the computer program is run on a computer, the computer is made to execute the above-mentioned embodiment.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) to another website site, computer, server or data center.
  • DSL digital subscriber line
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

La présente demande se rapporte au domaine des unités de stockage, et concerne un procédé et un appareil de gestion d'espace de stockage, un dispositif et un support de stockage. Le procédé consiste : après mise sous tension d'un dispositif cible pour la première fois, à lire une instruction de gestion prédéfinie dans une partition spécifiée ; à acquérir la taille actuelle de l'espace de stockage d'une mémoire dans le dispositif cible au moyen de l'instruction de gestion ; et à mettre à jour la taille actuelle de l'espace de stockage sur des données logicielles qui sont requises pour l'exécution du dispositif cible.
PCT/CN2022/093357 2021-10-12 2022-05-17 Procédé et appareil de gestion d'espace de stockage, dispositif et support de stockage WO2023060893A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111187852.2 2021-10-12
CN202111187852.2A CN114020211B (zh) 2021-10-12 2021-10-12 存储空间管理方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023060893A1 true WO2023060893A1 (fr) 2023-04-20

Family

ID=80055743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/093357 WO2023060893A1 (fr) 2021-10-12 2022-05-17 Procédé et appareil de gestion d'espace de stockage, dispositif et support de stockage

Country Status (2)

Country Link
CN (1) CN114020211B (fr)
WO (1) WO2023060893A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020211B (zh) * 2021-10-12 2024-03-15 深圳市广和通无线股份有限公司 存储空间管理方法、装置、设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572365A (zh) * 2013-10-18 2015-04-29 中国长城计算机深圳股份有限公司 一种内存自适配方法及装置
CN107451023A (zh) * 2017-08-18 2017-12-08 济南浪潮高新科技投资发展有限公司 一种基于uboot的内存自适配方法
CN107479969A (zh) * 2017-07-31 2017-12-15 深圳天珑无线科技有限公司 数据处理方法及装置
US20190286354A1 (en) * 2018-03-19 2019-09-19 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Selecting and compressing target files to obtain additional free data storage space to perform an operation in a virtual machine
CN111538684A (zh) * 2018-12-28 2020-08-14 美光科技公司 主机自适应存储器装置优化
CN111694580A (zh) * 2019-03-13 2020-09-22 杭州宏杉科技股份有限公司 存储设备升级及初始化的方法、装置、电子设备
CN114020211A (zh) * 2021-10-12 2022-02-08 深圳市广和通无线股份有限公司 存储空间管理方法、装置、设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1939860B1 (fr) * 2006-11-30 2009-03-18 Harman Becker Automotive Systems GmbH Système de reconnaissance de la parole interactif
JP5121439B2 (ja) * 2007-12-26 2013-01-16 株式会社東芝 不揮発性半導体記憶装置
US8731062B2 (en) * 2008-02-05 2014-05-20 Ntt Docomo, Inc. Noise and/or flicker reduction in video sequences using spatial and temporal processing
CN104765697A (zh) * 2015-03-10 2015-07-08 安科智慧城市技术(中国)有限公司 一种嵌入式设备交互方法及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572365A (zh) * 2013-10-18 2015-04-29 中国长城计算机深圳股份有限公司 一种内存自适配方法及装置
CN107479969A (zh) * 2017-07-31 2017-12-15 深圳天珑无线科技有限公司 数据处理方法及装置
CN107451023A (zh) * 2017-08-18 2017-12-08 济南浪潮高新科技投资发展有限公司 一种基于uboot的内存自适配方法
US20190286354A1 (en) * 2018-03-19 2019-09-19 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Selecting and compressing target files to obtain additional free data storage space to perform an operation in a virtual machine
CN111538684A (zh) * 2018-12-28 2020-08-14 美光科技公司 主机自适应存储器装置优化
CN111694580A (zh) * 2019-03-13 2020-09-22 杭州宏杉科技股份有限公司 存储设备升级及初始化的方法、装置、电子设备
CN114020211A (zh) * 2021-10-12 2022-02-08 深圳市广和通无线股份有限公司 存储空间管理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN114020211A (zh) 2022-02-08
CN114020211B (zh) 2024-03-15

Similar Documents

Publication Publication Date Title
WO2019047571A1 (fr) Procédé de traitement de demande, système sur puce, et composante de gestion de nuage public
US10810017B2 (en) Systems and methods for handling firmware driver dependencies in host operating systems while applying updates from bootable image file
WO2017166447A1 (fr) Procédé et dispositif permettant de charger un module de noyau
WO2020001112A1 (fr) Procédé d'application pour plateforme prenant en charge de multiples types de dispositifs, et terminal mobile
US10503489B1 (en) Updating firmware via a remote utility
US20160012232A1 (en) Systems and methods for secure delivery of public keys for operating system drivers
US8515732B2 (en) Opening a message catalog file for a language that is not installed
US10430181B1 (en) Retrieving updated firmware code
US20230266958A1 (en) Method for creating private image in public cloud and related device
CN107135462B (zh) Uefi固件的蓝牙配对方法及其计算系统
WO2023060893A1 (fr) Procédé et appareil de gestion d'espace de stockage, dispositif et support de stockage
WO2019144621A1 (fr) Procédé, appareil et serveur pour acquérir un élément de démarrage d'os uefi
CN114020340B (zh) 一种服务器系统及其数据处理方法
CN115291946A (zh) 鸿蒙系统移植方法、装置、电子设备及可读介质
CN114780019A (zh) 电子设备的管理方法、装置、电子设备及存储介质
CN112181467B (zh) 终端的存储器固件升级方法、装置、终端和存储介质
US11340882B2 (en) Systems and methods for enforcing update policies while applying updates from bootable image file
US12008111B2 (en) System and method for efficient secured startup of data processing systems
CN109522174B (zh) 控制adb使能的方法、装置、终端及存储介质
CN111913753A (zh) 一种windows系统云迁移中启动方式的变更方法及系统
CN111782474A (zh) 日志处理方法、装置、电子设备和介质
WO2019100704A1 (fr) Procédé de démarrage pour dispositif iot multi-mode, dispositif iot multi-mode et support de mémoire
US8997044B2 (en) Overriding system attributes and function returns in a software subsystem
CN111722880B (zh) 一种设备生产方法、装置、终端设备及介质
US11314603B2 (en) Recovery image downloads via data chunks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22879843

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE