WO2016183906A1 - Storage space allocation method and apparatus - Google Patents

Storage space allocation method and apparatus Download PDF

Info

Publication number
WO2016183906A1
WO2016183906A1 PCT/CN2015/082899 CN2015082899W WO2016183906A1 WO 2016183906 A1 WO2016183906 A1 WO 2016183906A1 CN 2015082899 W CN2015082899 W CN 2015082899W WO 2016183906 A1 WO2016183906 A1 WO 2016183906A1
Authority
WO
WIPO (PCT)
Prior art keywords
space
storage device
storage space
extended
extended storage
Prior art date
Application number
PCT/CN2015/082899
Other languages
French (fr)
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 WO2016183906A1 publication Critical patent/WO2016183906A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation

Definitions

  • the present application relates to the field of electronic information, and in particular, to a storage space allocation method and apparatus.
  • most electronic devices include storage space for data generated during the operation of the system for storing electronic devices and data input by the user (such as installation packages, pictures or videos, etc.).
  • a fixed-capacity partition is allocated in advance to store different types of data.
  • the storage space shown in FIG. 1 is divided into partitions such as /system, /cache, and /data, which are used to store system data, cache data, and Business data, etc.
  • the present application provides a method and an apparatus for allocating a storage space, and aims to solve the problem of poor user experience due to insufficient storage space.
  • a storage space allocation method includes:
  • the space requester is any one of the dual systems, and the dual system includes a security domain system and a non-security domain system;
  • the capacity of the pre-allocated storage space is insufficient, determining whether the capacity of the storage space in the extended storage device is sufficient, and if the capacity of the storage space in the extended storage device is sufficient, assigning the space to the space requester Expand the storage space in the storage device.
  • the allocating a storage space package in the extended storage device to the space requester include:
  • the encrypted storage space in the extended storage device is allocated to the secure domain system.
  • the process of generating the encrypted storage space in the extended storage device includes at least one of the following:
  • the storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
  • the determining whether the capacity of the storage space in the extended storage device is sufficient includes:
  • the method further includes:
  • the user is prompted to insert the extended storage device.
  • it also includes:
  • the user is prompted to delete the data in the extended storage device until the space capacity in the extended storage device is sufficient.
  • a storage space allocation device includes:
  • a receiving module configured to receive a space occupation request, where the space occupation request is sent by a space requester, where the space requester is any one of the dual systems, and the dual system includes a security domain system and a non-security domain system;
  • a storage space allocation module configured to determine, if the capacity of the pre-allocated storage space is insufficient, whether the capacity of the storage space in the extended storage device is sufficient, if the capacity of the storage space in the extended storage device is sufficient, The space requester allocates storage space in the extended storage device.
  • the storing, by the storage space allocation module, the storage space in the extended storage device to the space requester includes:
  • the storage space allocation module is specifically configured to: when the any one of the systems is the security domain system, allocate the encrypted storage space in the extended storage device to the security domain system.
  • it also includes:
  • an encryption module configured to generate the encrypted storage space in the extended storage device, where the process of generating the encrypted storage space in the extended storage device includes at least one of the following:
  • the storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
  • the storage space allocation module is configured to determine whether the capacity of the storage space in the extended storage device is sufficient to include:
  • the storage space allocation module is specifically configured to: determine, when the extended storage device is detected, whether the capacity of the storage space in the extended storage device is sufficient;
  • the storage space allocation module is further configured to:
  • the user is prompted to insert the extended storage device.
  • the storage space allocation module is further configured to:
  • the user is prompted to delete the data in the extended storage device until the space capacity in the extended storage device is sufficient.
  • the method and device of the present application receive a space occupation request sent by a space requester, and determine whether the space capacity in the extended storage device is sufficient if the pre-allocated space capacity is insufficient, if the space capacity in the extended storage device is sufficient , the space requestor is allocated storage space in the extended storage device. It can be seen that, in the method and apparatus described in the present application, if the pre-allocated space capacity is insufficient, if the space capacity in the extended storage device is sufficient, the storage space in the extended storage device can still be allocated to the system for use, thereby being able to reduce Possibility of poor user experience due to insufficient storage space.
  • 1 is a schematic diagram of allocation of a storage space
  • FIG. 2 is a flowchart of a storage space allocation method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of allocation of storage space in a dual system
  • FIG. 5 is a flowchart of still another storage space allocation method according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present application.
  • the embodiment of the present application discloses a storage space allocation method and device, which can be used in an electronic device, and the purpose is to automatically seek to expand the storage space when the storage space of the electronic device itself is insufficient, thereby improving the user experience. .
  • a storage space allocation method disclosed in the embodiment of the present application, as shown in FIG. 2, includes the following steps:
  • the space occupation request may be sent by the space requester.
  • the space requester may be a system in the electronic device, an application in the electronic device, or the like.
  • a fixed storage space is usually allocated in advance for different types of data. For example, as shown in FIG. 1, a fixed storage space is allocated for system data, cache data, and the like.
  • a system or an application When a system or an application generates some type of data, Store by default into storage space pre-allocated for such data, for example, sound
  • the music player downloads the audio data, and by default this audio data is stored in the /data partition in Figure 1.
  • S203 Allocating pre-allocated storage space to the space requester
  • S204 determining whether the capacity of the storage space in the extended storage device is sufficient, if yes, executing S205, if not, prompting the user that the storage space has insufficient capacity;
  • the extended storage device may be preset in the electronic device, for example, a secure digital memory card (SD card) is pre-inserted into the electronic device.
  • SD card secure digital memory card
  • S205 Allocate storage space in the extended storage device to the space requester.
  • the method described in this embodiment can actively seek to expand the storage space in the storage device, if there is sufficient storage space in the extended storage device.
  • the storage space in the extended storage device can be allocated to the space requester. Only when the extended storage device space is insufficient, the user is reminded that the storage space is insufficient, and the existing way of focusing only on the pre-allocated storage space. In comparison, it is possible to increase the possibility that the space occupation request is allowed, thereby improving the user experience.
  • Another storage space allocation method disclosed in the embodiment of the present application can be applied to an electronic device having dual systems.
  • the so-called dual system that is, the electronic device has two systems, wherein one system is a PPD system (personal private domain).
  • the other system is the SED system (secure enterprise domain).
  • the SED system has high security requirements, and can also be called a security domain system.
  • the PPD system is a general system and can be called a non-security domain system.
  • the storage space pre-allocated for the dual system is as shown in FIG. 3: the PPD system includes a storage space for storing different types of data, wherein the /data partition reserves a part of the fixed storage space for the SED security domain system, and this part of the space is It is divided into /system, /cache and /data partitions, which are used to store different types of data generated by the SED security domain system.
  • the /system, /cache and /data partitions of the SED security domain system are fixed. Some spaces must comply with the relevant security policy specifications of the SED security domain system.
  • the method disclosed in this embodiment includes the following steps:
  • the space requester is a secure domain system or a non-secure domain system.
  • S402 determining whether the capacity of the storage space pre-allocated by the space requester is sufficient, and if so, S403 is performed, if no, executing S404;
  • S403 Allocating pre-allocated storage space to the space requester
  • S405 determining whether the capacity of the storage space in the SD card is sufficient, if yes, executing S407, if not, executing S408;
  • S406 prompt the user to insert the SD card
  • S407 Allocating storage space in the SD card to the space requester
  • S408 The user is prompted to delete the data in the SD card. After the operation of deleting the data by the user is completed, the process returns to S405.
  • S408 The purpose of S408 is to prompt the user to delete the data in the SD card to empty the storage space when the storage space in the SD card is not enough. After the operation of deleting the data by the user is completed, the process returns to S405 automatically.
  • the response process of the space request is not interrupted, so that the user can trigger the system to issue a space request again after deleting the data in the SD card, thereby further improving the user experience.
  • the system issues a space occupation request. If the remaining space capacity of the pre-assigned /data partition is insufficient to store the audio data, it is determined whether the remaining space in the SD card is sufficient to store the audio data. If the remaining space in the SD card is not enough to store the audio data, the user is prompted to delete the data in the SD card. When the user completes the operation of deleting the data in the SD card according to the prompt, it is determined whether the remaining space in the SD card is sufficient. This audio data is stored and executed repeatedly. It is no longer necessary for the user to start executing the audio data again after completing the data deletion, and the process of applying for the storage space can be continued.
  • the method described in this embodiment can not only improve the success rate of the space occupation application, but also further improve the user experience in the space application process.
  • the implementation cost of the method described in this embodiment is controllable and easy to be practically applied.
  • the embodiment of the present application discloses another storage space allocation method, which is different from the method shown in FIG. 4 in that the method in this embodiment can effectively improve the security of the security domain data in the SD card.
  • the method in this embodiment includes the following steps:
  • S502 Determine whether the space requester is a security domain system or a non-security domain system. If it is a security domain system, execute S503. If it is a non-security domain system, perform the steps of S402 and subsequent steps according to the process shown in FIG. 4;
  • S503 determining whether the capacity of the storage space pre-allocated by the security domain system is sufficient, if yes, executing S504, if not, executing S505;
  • S504 Allocating pre-allocated storage space to the security domain system
  • S505 detecting whether there is an SD card, if yes, executing S506, if not, executing S507;
  • S506 determining whether the capacity of the storage space in the SD card is sufficient, if yes, executing S508, if not, executing S509;
  • S507 prompting the user to insert an SD card
  • S508 Allocating the encrypted storage space in the SD card to the security domain system
  • the specific implementation manner of encrypting the storage space in the SD card may be at least one of the following: encrypting the SD card by using a key preset in the system, encrypting the SD card by using a password input by the user, and using the system.
  • the pre-set key encrypts the storage space allocated to the secure domain system in the SD card, and encrypts the storage space allocated to the secure domain system in the SD card by using the password input by the user. That is to say, the key can be pre-stored in the system or input by the user.
  • the encrypted object can be the entire storage space of the SD card, or only the storage space allocated to the security domain system, and can also be used for the SD card.
  • the entire storage space is encrypted, and the storage space allocated to the secure domain system is also encrypted, and the two encryptions use different keys to improve data security.
  • the encrypted storage space can only be accessed in the electronic device in which the key is stored.
  • the method described in this embodiment not only extends the storage space of the dual system to the SD card, but also encrypts the SD card space allocated to the secure domain system when the SD card space is applied. Therefore, On the basis of improving the user experience, the security of the security domain data is further improved.
  • the embodiment of the present application further discloses a storage space allocation device, as shown in FIG. 6, comprising:
  • the receiving module 601 is configured to receive a space occupation request, where the space occupation request is sent by a space requester;
  • a storage space allocation module 602 configured to determine, if the capacity of the pre-allocated storage space is insufficient, whether the capacity of the storage space in the extended storage device is sufficient, if the capacity of the storage space in the extended storage device is sufficient, The space requester allocates a storage space in the extended storage device.
  • the storage space allocation module determines whether the capacity of the storage space in the extended storage device is sufficient: if the extended storage device is detected, determining whether the capacity of the storage space in the extended storage device is sufficient; In this premise, the storage space allocation module may be further configured to prompt the user to insert the extended storage device if the extended storage device is not detected; and if the space capacity in the extended storage device is insufficient, prompting The user deletes data in the extended storage device until the amount of space in the extended storage device is sufficient.
  • the device described in this embodiment may be applied to an electronic device having the dual system shown in FIG. 3.
  • the specific implementation manner of the receiving module receiving the space occupation request may be : Receiving a space occupation request sent by any one of the dual systems, the dual system including a security domain system and a non-security domain system.
  • the specific implementation manner of the storage space allocation module to allocate the storage space in the extended storage device to the space requesting party may be: In the case of the system, the encrypted storage space in the extended storage device is allocated to the secure domain system.
  • the device described in this embodiment may further include:
  • the encryption module 603 is configured to generate an encrypted storage space in the extended storage device.
  • the process of generating the encrypted storage space in the extended storage device includes at least one of the following:
  • the storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
  • the storage storage space can be allocated to the system as much as possible, thereby reducing the possibility of poor user experience due to insufficient local storage space and improving the user experience.
  • the functions described in the methods of the embodiments of the present application may be stored in a computing device readable storage medium. Based on such understanding, a portion of the embodiments of the present application that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a
  • the computing device (which may be a personal computer, server, mobile computing device, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

A storage space allocation method and apparatus. The method comprises: receiving a space occupation request sent by a space requesting party (S201); in a case in which a pre-allocated space capacity is insufficient, determining whether a space capacity of an expansion storage device is sufficient (S202); and if the space capacity of the expansion storage device is sufficient, allocating storage space in the expansion storage device to the space requesting party (S205). Accordingly, in the method and the apparatus, in a case in which a pre-allocated space capacity is insufficient, if a space capacity of an expansion storage device is sufficient, storage space in the expansion storage device can still be allocated to a system for use, and therefore the possibility of poor use experience of a user due to insufficiency of storage space can be reduced.

Description

一种存储空间分配方法及装置Storage space allocation method and device
本申请要求于2015年5月21日提交中国专利局、申请号为201510262396.1,发明名称为“一种存储空间分配方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510262396.1, filed on May 21, 2015, the entire disclosure of which is hereby incorporated by reference. in.
技术领域Technical field
本申请涉及电子信息领域,尤其涉及一种存储空间分配方法及装置。The present application relates to the field of electronic information, and in particular, to a storage space allocation method and apparatus.
背景技术Background technique
目前,绝大部分电子设备中均包括存储空间,用于存储电子设备的系统在运行过程中产生的数据以及用户输入的数据(例如安装包、图片或者视频等)。At present, most electronic devices include storage space for data generated during the operation of the system for storing electronic devices and data input by the user (such as installation packages, pictures or videos, etc.).
通常,会预先分配容量固定的分区给系统存储不同类型的数据,例如,如图1所示的存储空间被分成/system、/cache、/data等分区,分别用于存储系统数据、缓存数据、业务数据等。Generally, a fixed-capacity partition is allocated in advance to store different types of data. For example, the storage space shown in FIG. 1 is divided into partitions such as /system, /cache, and /data, which are used to store system data, cache data, and Business data, etc.
系统申请存储空间时,如果其相应的存储空间不够用,则会提示用户存储空间不足,而无法存储数据,这无疑会导致用户的使用体验不佳。When the system applies for storage space, if the corresponding storage space is not enough, the user will be prompted to store insufficient space and cannot store data, which will undoubtedly lead to poor user experience.
发明内容Summary of the invention
本申请提供了一种存储空间的分配方法及装置,目的在于解决因存储空间不足而导致的用户体验不佳的问题。The present application provides a method and an apparatus for allocating a storage space, and aims to solve the problem of poor user experience due to insufficient storage space.
为了实现上述目的,本申请提供了以下技术方案:In order to achieve the above object, the present application provides the following technical solutions:
一种存储空间分配方法,包括:A storage space allocation method includes:
接收空间占用请求,所述空间占用请求由空间请求方发送,所述空间请求方为双系统中的任意一个系统,所述双系统包括安全域系统以及非安全域系统;Receiving a space occupation request, where the space occupation request is sent by a space requester, the space requester is any one of the dual systems, and the dual system includes a security domain system and a non-security domain system;
在预先分配的存储空间的容量不足的情况下,判断扩展存储设备中的存储空间的容量是否足够,如果所述扩展存储设备中的存储空间的容量足够,则向所述空间请求方分配所述扩展存储设备中的存储空间。If the capacity of the pre-allocated storage space is insufficient, determining whether the capacity of the storage space in the extended storage device is sufficient, and if the capacity of the storage space in the extended storage device is sufficient, assigning the space to the space requester Expand the storage space in the storage device.
可选地,所述向所述空间请求方分配所述扩展存储设备中的存储空间包 括:Optionally, the allocating a storage space package in the extended storage device to the space requester include:
在所述任意一个系统为所述安全域系统的情况下,将所述扩展存储设备中加密后的存储空间分配给所述安全域系统。In the case that any one of the systems is the secure domain system, the encrypted storage space in the extended storage device is allocated to the secure domain system.
可选地,所述扩展存储设备中加密后的存储空间的生成过程至少包括以下一项:Optionally, the process of generating the encrypted storage space in the extended storage device includes at least one of the following:
使用所述系统中预先设置的密钥对所述扩展存储设备进行加密;Encrypting the extended storage device using a key set in the system;
使用用户输入的密码对所述扩展存储设备进行加密;Encrypting the extended storage device with a password entered by the user;
使用所述系统中预先设置的密钥对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密;Encrypting a storage space allocated to the secure domain system in the extended storage device by using a key preset in the system;
使用用户输入的密码对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密。The storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
可选地,所述判断扩展存储设备中的存储空间的容量是否足够包括:Optionally, the determining whether the capacity of the storage space in the extended storage device is sufficient includes:
在检测到所述扩展存储设备的情况下,判断扩展存储设备中的存储空间的容量是否足够;When the extended storage device is detected, determining whether the capacity of the storage space in the extended storage device is sufficient;
所述方法还包括:The method further includes:
在没有检测到所述扩展存储设备的情况下,提示用户插入扩展存储设备。In the event that the extended storage device is not detected, the user is prompted to insert the extended storage device.
可选地,还包括:Optionally, it also includes:
如果所述扩展存储设备中的空间容量不够,则提示用户删除所述扩展存储设备中的数据,直至所述扩展存储设备中的空间容量足够。If the space capacity in the extended storage device is insufficient, the user is prompted to delete the data in the extended storage device until the space capacity in the extended storage device is sufficient.
一种存储空间分配装置,包括:A storage space allocation device includes:
接收模块,用于接收空间占用请求,所述空间占用请求由空间请求方发送,所述空间请求方为双系统中的任意一个系统,所述双系统包括安全域系统以及非安全域系统;a receiving module, configured to receive a space occupation request, where the space occupation request is sent by a space requester, where the space requester is any one of the dual systems, and the dual system includes a security domain system and a non-security domain system;
存储空间分配模块,用于在预先分配的存储空间的容量不足的情况下,判断扩展存储设备中的存储空间的容量是否足够,如果所述扩展存储设备中的存储空间的容量足够,则向所述空间请求方分配所述扩展存储设备中的存储空间。a storage space allocation module, configured to determine, if the capacity of the pre-allocated storage space is insufficient, whether the capacity of the storage space in the extended storage device is sufficient, if the capacity of the storage space in the extended storage device is sufficient, The space requester allocates storage space in the extended storage device.
可选地,所述存储空间分配模块用于向所述空间请求方分配所述扩展存储设备中的存储空间包括: Optionally, the storing, by the storage space allocation module, the storage space in the extended storage device to the space requester includes:
所述存储空间分配模块具体用于,在所述任意一个系统为所述安全域系统的情况下,将所述扩展存储设备中加密后的存储空间分配给所述安全域系统。The storage space allocation module is specifically configured to: when the any one of the systems is the security domain system, allocate the encrypted storage space in the extended storage device to the security domain system.
可选地,还包括:Optionally, it also includes:
加密模块,用于生成所述扩展存储设备中加密后的存储空间,所述扩展存储设备中加密后的存储空间的生成过程至少包括以下一项:And an encryption module, configured to generate the encrypted storage space in the extended storage device, where the process of generating the encrypted storage space in the extended storage device includes at least one of the following:
使用所述系统中预先设置的密钥对所述扩展存储设备进行加密;Encrypting the extended storage device using a key set in the system;
使用用户输入的密码对所述扩展存储设备进行加密;Encrypting the extended storage device with a password entered by the user;
使用所述系统中预先设置的密钥对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密;Encrypting a storage space allocated to the secure domain system in the extended storage device by using a key preset in the system;
使用用户输入的密码对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密。The storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
可选地,所述存储空间分配模块用于判断扩展存储设备中的存储空间的容量是否足够包括:Optionally, the storage space allocation module is configured to determine whether the capacity of the storage space in the extended storage device is sufficient to include:
所述存储空间分配模块具体用于,在检测到所述扩展存储设备的情况下,判断扩展存储设备中的存储空间的容量是否足够;The storage space allocation module is specifically configured to: determine, when the extended storage device is detected, whether the capacity of the storage space in the extended storage device is sufficient;
所述存储空间分配模块还用于:The storage space allocation module is further configured to:
在没有检测到所述扩展存储设备的情况下,提示用户插入扩展存储设备。In the event that the extended storage device is not detected, the user is prompted to insert the extended storage device.
可选地,所述存储空间分配模块还用于:Optionally, the storage space allocation module is further configured to:
如果所述扩展存储设备中的空间容量不够,则提示用户删除所述扩展存储设备中的数据,直至所述扩展存储设备中的空间容量足够。If the space capacity in the extended storage device is insufficient, the user is prompted to delete the data in the extended storage device until the space capacity in the extended storage device is sufficient.
本申请所述的方法及装置,接收空间请求方发送的空间占用请求,在预先分配的空间容量不足的情况下,判断扩展存储设备中的空间容量是否足够,如果扩展存储设备中的空间容量足够,则向空间请求方分配扩展存储设备中的存储空间。可见,本申请所述的方法及装置,在预先分配的空间容量不足的情况下,如果扩展存储设备中的空间容量足够,仍然可以将扩展存储设备中的存储空间分配给系统使用,从而能够降低因存储空间不够而导致的用户使用体验不佳的可能性。 The method and device of the present application receive a space occupation request sent by a space requester, and determine whether the space capacity in the extended storage device is sufficient if the pre-allocated space capacity is insufficient, if the space capacity in the extended storage device is sufficient , the space requestor is allocated storage space in the extended storage device. It can be seen that, in the method and apparatus described in the present application, if the pre-allocated space capacity is insufficient, if the space capacity in the extended storage device is sufficient, the storage space in the extended storage device can still be allocated to the system for use, thereby being able to reduce Possibility of poor user experience due to insufficient storage space.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为存储空间的分配示意图;1 is a schematic diagram of allocation of a storage space;
图2为本申请实施例公开的一种存储空间分配方法的流程图;2 is a flowchart of a storage space allocation method according to an embodiment of the present application;
图3为双系统中存储空间的分配示意图;3 is a schematic diagram of allocation of storage space in a dual system;
图4为本申请实施例公开的又一种存储空间分配方法的流程图;4 is a flowchart of still another storage space allocation method according to an embodiment of the present application;
图5为本申请实施例公开的又一种存储空间分配方法的流程图;FIG. 5 is a flowchart of still another storage space allocation method according to an embodiment of the present application;
图6为本申请实施例公开的一种存储空间分配装置的结构示意图。FIG. 6 is a schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例公开了一种存储空间分配方法及装置,可以用于在电子设备中,目的在于在电子设备自身的存储空间不足的情况下,可以自动寻求扩展存储空间,从而提高用户的使用体验。The embodiment of the present application discloses a storage space allocation method and device, which can be used in an electronic device, and the purpose is to automatically seek to expand the storage space when the storage space of the electronic device itself is insufficient, thereby improving the user experience. .
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请实施例公开的一种存储空间分配方法,如图2所示,包括以下步骤:A storage space allocation method disclosed in the embodiment of the present application, as shown in FIG. 2, includes the following steps:
S201:接收空间占用请求;S201: Receive a space occupation request;
空间占用请求可以由空间请求方发送,例如,空间请求方可以为电子设备中的系统,也可以为电子设备中的某个应用等。The space occupation request may be sent by the space requester. For example, the space requester may be a system in the electronic device, an application in the electronic device, or the like.
S202:判断预先分配的存储空间的容量是否足够,如果是,执行S203,如果否,执行S204;S202: determining whether the capacity of the pre-allocated storage space is sufficient, if yes, executing S203, if not, executing S204;
在电子设备中,通常会预先为不同类型的数据分配固定的存储空间,例如图1所示,为系统数据、缓存数据等分配固定的存储空间,当系统或应用产生某种类型的数据时,默认存储到为此类数据预先分配的存储空间中,例如,音 乐播放器下载了音频数据,则默认将此音频数据存储到图1中的/data分区中。In an electronic device, a fixed storage space is usually allocated in advance for different types of data. For example, as shown in FIG. 1, a fixed storage space is allocated for system data, cache data, and the like. When a system or an application generates some type of data, Store by default into storage space pre-allocated for such data, for example, sound The music player downloads the audio data, and by default this audio data is stored in the /data partition in Figure 1.
S203:将预先分配的存储空间分配给空间请求方;S203: Allocating pre-allocated storage space to the space requester;
S204:判断扩展存储设备中的存储空间的容量是否足够,如果是,执行S205,如果否,则提示用户存储空间的容量不足;S204: determining whether the capacity of the storage space in the extended storage device is sufficient, if yes, executing S205, if not, prompting the user that the storage space has insufficient capacity;
本实施例中,扩展存储设备可以预先设置在电子设备中,例如,将安全数字存储卡(Secure Digital Memory Card,简称SD卡)预先插入电子设备中。In this embodiment, the extended storage device may be preset in the electronic device, for example, a secure digital memory card (SD card) is pre-inserted into the electronic device.
S205:向空间请求方分配扩展存储设备中的存储空间。S205: Allocate storage space in the extended storage device to the space requester.
从上述步骤可以看出,在预先分配的存储空间的容量不足的情况下,本实施例中所述的方法,可以主动寻求扩展存储设备中的存储空间,如果扩展存储设备中有足够的存储空间,则可以将扩展存储设备中的存储空间分配给空间请求方,只有在扩展存储设备空间也不足的情况下,才会提醒用户存储空间不足,与现有的只关注预先分配的存储空间的方式相比,能够提高空间占用请求被允许的可能性,从而提高用户的使用体验。It can be seen from the above steps that, in the case that the capacity of the pre-allocated storage space is insufficient, the method described in this embodiment can actively seek to expand the storage space in the storage device, if there is sufficient storage space in the extended storage device. The storage space in the extended storage device can be allocated to the space requester. Only when the extended storage device space is insufficient, the user is reminded that the storage space is insufficient, and the existing way of focusing only on the pre-allocated storage space. In comparison, it is possible to increase the possibility that the space occupation request is allowed, thereby improving the user experience.
本申请实施例公开的又一种存储空间分配方法,可以应用在具有双系统的电子设备中,所谓双系统,即电子设备中存在两套系统,其中一套系统为PPD系统(personal private domain),另一套系统为SED系统(secure enterprise domain)。其中,SED系统对安全性的要求高,也可称为安全域系统,PPD系统为普通系统,可以称为非安全域系统。Another storage space allocation method disclosed in the embodiment of the present application can be applied to an electronic device having dual systems. The so-called dual system, that is, the electronic device has two systems, wherein one system is a PPD system (personal private domain). The other system is the SED system (secure enterprise domain). Among them, the SED system has high security requirements, and can also be called a security domain system. The PPD system is a general system and can be called a non-security domain system.
为双系统预先分配的存储空间如图3所示:PPD系统包括用于存储不同类型的数据的存储空间,其中,/data分区预留一部分固定的存储空间给SED安全域系统,这部分空间又被划分为/system、/cache及/data分区,分别用于存储SED安全域系统产生的不同类型的数据,SED安全域系统的/system、/cache以及/data分区都是固定不变的,这部分空间必须遵守SED安全域系统的相关安全策略规范。The storage space pre-allocated for the dual system is as shown in FIG. 3: the PPD system includes a storage space for storing different types of data, wherein the /data partition reserves a part of the fixed storage space for the SED security domain system, and this part of the space is It is divided into /system, /cache and /data partitions, which are used to store different types of data generated by the SED security domain system. The /system, /cache and /data partitions of the SED security domain system are fixed. Some spaces must comply with the relevant security policy specifications of the SED security domain system.
如图4所示,本实施例公开的方法包括以下步骤:As shown in FIG. 4, the method disclosed in this embodiment includes the following steps:
S401:接收双系统中的任意一个系统发送的空间占用请求;S401: Receive a space occupation request sent by any one of the dual systems;
也就是说,空间请求方为安全域系统或者非安全域系统。That is to say, the space requester is a secure domain system or a non-secure domain system.
S402:判断为空间请求方预先分配的存储空间的容量是否足够,如果是, 执行S403,如果否,执行S404;S402: determining whether the capacity of the storage space pre-allocated by the space requester is sufficient, and if so, S403 is performed, if no, executing S404;
S403:将预先分配的存储空间分配给空间请求方;S403: Allocating pre-allocated storage space to the space requester;
S404:检测是否存在SD卡,如果是,执行S405,如果否,执行S406;S404: detecting whether there is an SD card, if yes, executing S405, if not, executing S406;
S405:判断SD卡中的存储空间的容量是否足够,如果是,执行S407,如果否,执行S408;S405: determining whether the capacity of the storage space in the SD card is sufficient, if yes, executing S407, if not, executing S408;
从实际应用角度而言,通常,为任意一个系统分配的存储空间中,只有/data分区用于存储业务类型的数据,而其它分区相对于/data分区,空间容量都比较小,因此,在实际应用中,数据的存储通常发生在/data分区中。From a practical point of view, in general, for the storage space allocated for any one system, only the /data partition is used to store the data of the service type, while the other partitions have relatively small space capacity relative to the /data partition, so in practice In an application, the storage of data usually occurs in the /data partition.
S406:提示用户插入SD卡;S406: prompt the user to insert the SD card;
S407:向空间请求方分配SD卡中的存储空间;S407: Allocating storage space in the SD card to the space requester;
S408:提示用户删除SD卡中的数据,在用户删除数据的操作执行完毕后,返回执行S405。S408: The user is prompted to delete the data in the SD card. After the operation of deleting the data by the user is completed, the process returns to S405.
S408的目的在于,在SD卡中的存储空间也不够用的情况下,提示用户删除SD卡中的数据,以空出存储空间;在用户删除数据的操作执行完毕后,自动返回执行S405,能够保证空间请求的响应过程不中断,从而避免用户在删除SD卡中的数据后,再次触发系统发出空间请求,从而进一步提高用户的使用体验。The purpose of S408 is to prompt the user to delete the data in the SD card to empty the storage space when the storage space in the SD card is not enough. After the operation of deleting the data by the user is completed, the process returns to S405 automatically. The response process of the space request is not interrupted, so that the user can trigger the system to issue a space request again after deleting the data in the SD card, thereby further improving the user experience.
例如,当用户运行音乐播放器下载音频数据时,系统发出空间占用请求,如果预先分配的/data分区的剩余空间容量不够存放此音频数据,判断SD卡中的剩余空间是否足够存储此音频数据,如果SD卡中的剩余空间也不够存放此音频数据,则提示用户删除SD卡中数据,当用户根据提示完成删除SD卡中的数据的操作的情况下,再次判断SD卡中的剩余空间是否足够存储此音频数据,如此反复执行,不再需要用户在完成数据删除后,再次从下载音频数据开始执行,而能够继续执行申请存储空间的流程。For example, when the user runs the music player to download audio data, the system issues a space occupation request. If the remaining space capacity of the pre-assigned /data partition is insufficient to store the audio data, it is determined whether the remaining space in the SD card is sufficient to store the audio data. If the remaining space in the SD card is not enough to store the audio data, the user is prompted to delete the data in the SD card. When the user completes the operation of deleting the data in the SD card according to the prompt, it is determined whether the remaining space in the SD card is sufficient. This audio data is stored and executed repeatedly. It is no longer necessary for the user to start executing the audio data again after completing the data deletion, and the process of applying for the storage space can be continued.
可见,本实施例中所述的方法,不仅能够提高空间占用申请的成功率,还能够进一步提高用户在空间申请过程中的使用体验。It can be seen that the method described in this embodiment can not only improve the success rate of the space occupation application, but also further improve the user experience in the space application process.
并且,因为SD卡成本的低廉,本实施例所述的方法的实现成本可控,易于实际应用。 Moreover, because the cost of the SD card is low, the implementation cost of the method described in this embodiment is controllable and easy to be practically applied.
在上述双系统的电子设备中,在空间请求方为安全域系统的情况下,如果为安全域系统分配扩展存储设备中的存储空间,有必要考虑存储在扩展存储设备中的数据的安全性,因此,本申请实施例公开了又一种存储空间分配方法,与图4所示的方法相比,区别在于,本实施例中的方法,能够有效提高SD卡中的安全域数据的安全性。In the above dual-system electronic device, in the case where the space requester is a secure domain system, if the storage space in the extended storage device is allocated to the secure domain system, it is necessary to consider the security of the data stored in the extended storage device. Therefore, the embodiment of the present application discloses another storage space allocation method, which is different from the method shown in FIG. 4 in that the method in this embodiment can effectively improve the security of the security domain data in the SD card.
如图5所示,本实施例所述方法包括以下步骤:As shown in FIG. 5, the method in this embodiment includes the following steps:
S501:接收双系统中的任意一个系统发送的空间占用请求;S501: Receive a space occupation request sent by any one of the dual systems;
S502:判断空间请求方是安全域系统还是非安全域系统,如果是安全域系统,执行S503,如果是非安全域系统,则按照图4所示的流程,执行S402及其之后的步骤;S502: Determine whether the space requester is a security domain system or a non-security domain system. If it is a security domain system, execute S503. If it is a non-security domain system, perform the steps of S402 and subsequent steps according to the process shown in FIG. 4;
S503:判断为安全域系统预先分配的存储空间的容量是否足够,如果是,执行S504,如果否,执行S505;S503: determining whether the capacity of the storage space pre-allocated by the security domain system is sufficient, if yes, executing S504, if not, executing S505;
S504:将预先分配的存储空间分配给安全域系统;S504: Allocating pre-allocated storage space to the security domain system;
S505:检测是否存在SD卡,如果是,执行S506,如果否,执行S507;S505: detecting whether there is an SD card, if yes, executing S506, if not, executing S507;
S506:判断SD卡中的存储空间的容量是否足够,如果是,执行S508,如果否,执行S509;S506: determining whether the capacity of the storage space in the SD card is sufficient, if yes, executing S508, if not, executing S509;
S507:提示用户插入SD卡;S507: prompting the user to insert an SD card;
S508:将SD卡中加密后的存储空间分配给安全域系统;S508: Allocating the encrypted storage space in the SD card to the security domain system;
具体地,给SD卡中的存储空间加密的具体实现方式可以为以下至少一种:使用系统中预先设置的密钥对SD卡进行加密、使用用户输入的密码对SD卡进行加密、使用系统中预先设置的密钥对SD卡中分配给安全域系统的存储空间进行加密、使用用户输入的密码对SD卡中分配给安全域系统的存储空间进行加密。也就是说,密钥可以在系统中预先存储,也可以由用户输入,加密的对象可以为SD卡的全部存储空间,也可以仅为分配给安全域系统的存储空间,还可以既对SD卡的全部存储空间加密,也对分配给安全域系统的存储空间加密,并且,两次加密使用不同的密钥,以提高数据的安全性。Specifically, the specific implementation manner of encrypting the storage space in the SD card may be at least one of the following: encrypting the SD card by using a key preset in the system, encrypting the SD card by using a password input by the user, and using the system. The pre-set key encrypts the storage space allocated to the secure domain system in the SD card, and encrypts the storage space allocated to the secure domain system in the SD card by using the password input by the user. That is to say, the key can be pre-stored in the system or input by the user. The encrypted object can be the entire storage space of the SD card, or only the storage space allocated to the security domain system, and can also be used for the SD card. The entire storage space is encrypted, and the storage space allocated to the secure domain system is also encrypted, and the two encryptions use different keys to improve data security.
如果使用系统中预先存储的密钥加密,则加密后的存储空间只有在存储有此密钥的电子设备中才能够被访问。If encrypted with a pre-stored key in the system, the encrypted storage space can only be accessed in the electronic device in which the key is stored.
S509:提示用户删除SD卡中的数据,在用户删除数据的操作执行完毕后, 返回执行S506。S509: prompting the user to delete the data in the SD card, after the user deletes the data, the operation is completed. Return to execution S506.
本实施例中所述的方法,不仅将双系统的存储空间延伸至SD卡,而且还可以在安全域系统申请SD卡空间的情况下,对分配给其的SD卡空间进行加密,因此,在提升用户体验的基础上,进一步提高了安全域数据的安全性。The method described in this embodiment not only extends the storage space of the dual system to the SD card, but also encrypts the SD card space allocated to the secure domain system when the SD card space is applied. Therefore, On the basis of improving the user experience, the security of the security domain data is further improved.
与上述方法实施例相对应地,本申请实施例还公开了一种存储空间分配装置,如图6所示,包括:Corresponding to the foregoing method embodiment, the embodiment of the present application further discloses a storage space allocation device, as shown in FIG. 6, comprising:
接收模块601,用于接收空间占用请求,所述空间占用请求由空间请求方发送;The receiving module 601 is configured to receive a space occupation request, where the space occupation request is sent by a space requester;
存储空间分配模块602,用于在预先分配的存储空间的容量不足的情况下,判断扩展存储设备中的存储空间的容量是否足够,如果所述扩展存储设备中的存储空间的容量足够,则向所述空间请求方分配所述扩展存储设备中的存储空间。a storage space allocation module 602, configured to determine, if the capacity of the pre-allocated storage space is insufficient, whether the capacity of the storage space in the extended storage device is sufficient, if the capacity of the storage space in the extended storage device is sufficient, The space requester allocates a storage space in the extended storage device.
具体地,存储空间分配模块判断扩展存储设备中的存储空间的容量是否足够的具体实现方式为:在检测到所述扩展存储设备的情况下,判断扩展存储设备中的存储空间的容量是否足够;在此前提下,存储空间分配模块还可以用于,在没有检测到所述扩展存储设备的情况下,提示用户插入扩展存储设备;并且,如果所述扩展存储设备中的空间容量不够,则提示用户删除所述扩展存储设备中的数据,直至所述扩展存储设备中的空间容量足够。Specifically, the storage space allocation module determines whether the capacity of the storage space in the extended storage device is sufficient: if the extended storage device is detected, determining whether the capacity of the storage space in the extended storage device is sufficient; In this premise, the storage space allocation module may be further configured to prompt the user to insert the extended storage device if the extended storage device is not detected; and if the space capacity in the extended storage device is insufficient, prompting The user deletes data in the extended storage device until the amount of space in the extended storage device is sufficient.
进一步地,本实施例中所述的装置,可以应用在具有图3所示的双系统的电子设备中,在双系统的场景下,具体地,接收模块接收空间占用请求的具体实现方式可以为:接收双系统中的任意一个系统发送的空间占用请求,所述双系统包括安全域系统以及非安全域系统。Further, the device described in this embodiment may be applied to an electronic device having the dual system shown in FIG. 3. In a scenario of a dual system, specifically, the specific implementation manner of the receiving module receiving the space occupation request may be : Receiving a space occupation request sent by any one of the dual systems, the dual system including a security domain system and a non-security domain system.
为了保证安全域系统的保密性,进一步地,存储空间分配模块向所述空间请求方分配所述扩展存储设备中的存储空间的具体实现方式可以为:在所述任意一个系统为所述安全域系统的情况下,将所述扩展存储设备中加密后的存储空间分配给所述安全域系统。In order to ensure the confidentiality of the security domain system, the specific implementation manner of the storage space allocation module to allocate the storage space in the extended storage device to the space requesting party may be: In the case of the system, the encrypted storage space in the extended storage device is allocated to the secure domain system.
进一步地,本实施例中所述的装置,还可以包括: Further, the device described in this embodiment may further include:
加密模块603,用于生成所述扩展存储设备中加密后的存储空间;The encryption module 603 is configured to generate an encrypted storage space in the extended storage device.
其中,所述扩展存储设备中加密后的存储空间的生成过程至少包括以下一项:The process of generating the encrypted storage space in the extended storage device includes at least one of the following:
使用所述系统中预先设置的密钥对所述扩展存储设备进行加密;Encrypting the extended storage device using a key set in the system;
使用用户输入的密码对所述扩展存储设备进行加密;Encrypting the extended storage device with a password entered by the user;
使用所述系统中预先设置的密钥对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密;Encrypting a storage space allocated to the secure domain system in the extended storage device by using a key preset in the system;
使用用户输入的密码对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密。The storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
本实施例所述的装置,应用在电子设备中时,可以尽可能地为系统分配存储存储空间,从而降低因为本地存储空间不足而导致的用户体验不佳的可能性,提高用户的使用体验。When the device is applied to an electronic device, the storage storage space can be allocated to the system as much as possible, thereby reducing the possibility of poor user experience due to insufficient local storage space and improving the user experience.
本申请实施例方法所述的功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算设备可读取存储介质中。基于这样的理解,本申请实施例对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台计算设备(可以是个人计算机,服务器,移动计算设备或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions described in the methods of the embodiments of the present application, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computing device readable storage medium. Based on such understanding, a portion of the embodiments of the present application that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a The computing device (which may be a personal computer, server, mobile computing device, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the respective embodiments may be referred to each other. The above description of the disclosed embodiments enables those skilled in the art to make or use the application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims (10)

  1. 一种存储空间分配方法,其特征在于,包括:A storage space allocation method, comprising:
    接收空间占用请求,所述空间占用请求由空间请求方发送,所述空间请求方为双系统中的任意一个系统,所述双系统包括安全域系统以及非安全域系统;Receiving a space occupation request, where the space occupation request is sent by a space requester, the space requester is any one of the dual systems, and the dual system includes a security domain system and a non-security domain system;
    在预先分配的存储空间的容量不足的情况下,判断扩展存储设备中的存储空间的容量是否足够,如果所述扩展存储设备中的存储空间的容量足够,则向所述空间请求方分配所述扩展存储设备中的存储空间。If the capacity of the pre-allocated storage space is insufficient, determining whether the capacity of the storage space in the extended storage device is sufficient, and if the capacity of the storage space in the extended storage device is sufficient, assigning the space to the space requester Expand the storage space in the storage device.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述向所述空间请求方分配所述扩展存储设备中的存储空间包括:The allocating the storage space in the extended storage device to the space requester includes:
    在所述任意一个系统为所述安全域系统的情况下,将所述扩展存储设备中加密后的存储空间分配给所述安全域系统。In the case that any one of the systems is the secure domain system, the encrypted storage space in the extended storage device is allocated to the secure domain system.
  3. 根据权利要求2所述的方法,其特征在于,所述扩展存储设备中加密后的存储空间的生成过程至少包括以下一项:The method according to claim 2, wherein the process of generating the encrypted storage space in the extended storage device comprises at least one of the following:
    使用所述系统中预先设置的密钥对所述扩展存储设备进行加密;Encrypting the extended storage device using a key set in the system;
    使用用户输入的密码对所述扩展存储设备进行加密;Encrypting the extended storage device with a password entered by the user;
    使用所述系统中预先设置的密钥对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密;Encrypting a storage space allocated to the secure domain system in the extended storage device by using a key preset in the system;
    使用用户输入的密码对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密。The storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述判断扩展存储设备中的存储空间的容量是否足够包括:The method according to any one of claims 1 to 3, wherein the determining whether the capacity of the storage space in the extended storage device is sufficient comprises:
    在检测到所述扩展存储设备的情况下,判断扩展存储设备中的存储空间的容量是否足够;When the extended storage device is detected, determining whether the capacity of the storage space in the extended storage device is sufficient;
    所述方法还包括:The method further includes:
    在没有检测到所述扩展存储设备的情况下,提示用户插入扩展存储设备。In the event that the extended storage device is not detected, the user is prompted to insert the extended storage device.
  5. 根据权利要求1至3任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 3, further comprising:
    如果所述扩展存储设备中的空间容量不够,则提示用户删除所述扩展存储 设备中的数据,直至所述扩展存储设备中的空间容量足够。If the space capacity in the extended storage device is insufficient, prompting the user to delete the extended storage The data in the device until the amount of space in the extended storage device is sufficient.
  6. 一种存储空间分配装置,其特征在于,包括:A storage space allocation device, comprising:
    接收模块,用于接收空间占用请求,所述空间占用请求由空间请求方发送,所述空间请求方为双系统中的任意一个系统,所述双系统包括安全域系统以及非安全域系统;a receiving module, configured to receive a space occupation request, where the space occupation request is sent by a space requester, where the space requester is any one of the dual systems, and the dual system includes a security domain system and a non-security domain system;
    存储空间分配模块,用于在预先分配的存储空间的容量不足的情况下,判断扩展存储设备中的存储空间的容量是否足够,如果所述扩展存储设备中的存储空间的容量足够,则向所述空间请求方分配所述扩展存储设备中的存储空间。a storage space allocation module, configured to determine, if the capacity of the pre-allocated storage space is insufficient, whether the capacity of the storage space in the extended storage device is sufficient, if the capacity of the storage space in the extended storage device is sufficient, The space requester allocates storage space in the extended storage device.
  7. 根据权利要求6所述的装置,其特征在于,The device of claim 6 wherein:
    所述存储空间分配模块用于向所述空间请求方分配所述扩展存储设备中的存储空间包括:The storage space allocation module is configured to allocate the storage space in the extended storage device to the space requester, including:
    所述存储空间分配模块具体用于,在所述任意一个系统为所述安全域系统的情况下,将所述扩展存储设备中加密后的存储空间分配给所述安全域系统。The storage space allocation module is specifically configured to: when the any one of the systems is the security domain system, allocate the encrypted storage space in the extended storage device to the security domain system.
  8. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    加密模块,用于生成所述扩展存储设备中加密后的存储空间,所述扩展存储设备中加密后的存储空间的生成过程至少包括以下一项:And an encryption module, configured to generate the encrypted storage space in the extended storage device, where the process of generating the encrypted storage space in the extended storage device includes at least one of the following:
    使用所述系统中预先设置的密钥对所述扩展存储设备进行加密;Encrypting the extended storage device using a key set in the system;
    使用用户输入的密码对所述扩展存储设备进行加密;Encrypting the extended storage device with a password entered by the user;
    使用所述系统中预先设置的密钥对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密;Encrypting a storage space allocated to the secure domain system in the extended storage device by using a key preset in the system;
    使用用户输入的密码对所述扩展存储设备中分配给所述安全域系统的存储空间进行加密。The storage space allocated to the secure domain system in the extended storage device is encrypted using a password entered by the user.
  9. 根据权利要求6至8任一项所述的装置,其特征在于,所述存储空间分配模块用于判断扩展存储设备中的存储空间的容量是否足够包括:The device according to any one of claims 6 to 8, wherein the storage space allocation module is configured to determine whether the capacity of the storage space in the extended storage device is sufficient to include:
    所述存储空间分配模块具体用于,在检测到所述扩展存储设备的情况下,判断扩展存储设备中的存储空间的容量是否足够;The storage space allocation module is specifically configured to: determine, when the extended storage device is detected, whether the capacity of the storage space in the extended storage device is sufficient;
    所述存储空间分配模块还用于:The storage space allocation module is further configured to:
    在没有检测到所述扩展存储设备的情况下,提示用户插入扩展存储设备。 In the event that the extended storage device is not detected, the user is prompted to insert the extended storage device.
  10. 根据权利要求6至8任一项所述的装置,其特征在于,所述存储空间分配模块还用于:The device according to any one of claims 6 to 8, wherein the storage space allocation module is further configured to:
    如果所述扩展存储设备中的空间容量不够,则提示用户删除所述扩展存储设备中的数据,直至所述扩展存储设备中的空间容量足够。 If the space capacity in the extended storage device is insufficient, the user is prompted to delete the data in the extended storage device until the space capacity in the extended storage device is sufficient.
PCT/CN2015/082899 2015-05-21 2015-06-30 Storage space allocation method and apparatus WO2016183906A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510262396.1 2015-05-21
CN201510262396.1A CN105653467A (en) 2015-05-21 2015-05-21 Storage space distribution method and apparatus

Publications (1)

Publication Number Publication Date
WO2016183906A1 true WO2016183906A1 (en) 2016-11-24

Family

ID=56481907

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082899 WO2016183906A1 (en) 2015-05-21 2015-06-30 Storage space allocation method and apparatus

Country Status (2)

Country Link
CN (1) CN105653467A (en)
WO (1) WO2016183906A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10846580B2 (en) * 2016-10-27 2020-11-24 Rakuten, Inc. IC chip support terminal, IC chip setting method, and program
CN107741828B (en) * 2017-09-19 2020-04-24 维沃移动通信有限公司 Storage space filling method and mobile terminal
CN112069139B (en) * 2020-07-28 2023-03-21 重庆攸亮科技股份有限公司 High-speed read-write cyclic coverage file transmission system and transmission method
CN113867643A (en) * 2021-09-29 2021-12-31 北京金山云网络技术有限公司 Data storage method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890654A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Information saving method of mobile terminal and mobile terminal
CN103218305A (en) * 2013-05-10 2013-07-24 曙光信息产业(北京)有限公司 Distribution method of memory space
US20140122676A1 (en) * 2012-10-31 2014-05-01 Sheng Tai (Ted) Tsao Method and Apparatus For Web Based Storage On Demand
CN104462905A (en) * 2014-12-18 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Data processing method and device of operating systems and terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7565685B2 (en) * 2005-11-12 2009-07-21 Intel Corporation Operating system independent data management
CN101655818A (en) * 2009-09-10 2010-02-24 深圳华为通信技术有限公司 Storage method and equipment
US8533420B2 (en) * 2010-11-24 2013-09-10 Microsoft Corporation Thin provisioned space allocation
CN102103470A (en) * 2011-01-28 2011-06-22 鸿富锦精密工业(深圳)有限公司 Memory-expandable electronic equipment and memory expanding method
EP2726991B1 (en) * 2011-06-29 2018-03-14 Intel Corporation Method and apparatus for memory encryption with integrity check and protection against replay attacks
KR102017828B1 (en) * 2012-10-19 2019-09-03 삼성전자 주식회사 Security management unit, host controller interface including the same, method for operating the host controller interface, and devices including the host controller interface
CN103383660A (en) * 2013-04-01 2013-11-06 华为终端有限公司 Method and device for realizing functions of cache partition of Android system as well as terminal equipment
CN103310169B (en) * 2013-04-28 2016-09-21 东莞宇龙通信科技有限公司 A kind of method protecting SD card data and protection system
CN204178294U (en) * 2014-11-18 2015-02-25 深圳市信步科技有限公司 A kind ofly collect safety monitoring, decode and be stored in the server-specific mainboard of one
CN104572484B (en) * 2015-01-23 2017-12-12 宇龙计算机通信科技(深圳)有限公司 Memory allocation method, memory allocation device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890654A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Information saving method of mobile terminal and mobile terminal
US20140122676A1 (en) * 2012-10-31 2014-05-01 Sheng Tai (Ted) Tsao Method and Apparatus For Web Based Storage On Demand
CN103218305A (en) * 2013-05-10 2013-07-24 曙光信息产业(北京)有限公司 Distribution method of memory space
CN104462905A (en) * 2014-12-18 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Data processing method and device of operating systems and terminal

Also Published As

Publication number Publication date
CN105653467A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US11089023B2 (en) Computer readable storage media for tiered connection pooling and methods and systems for utilizing same
KR101966767B1 (en) System for managing encryption keys for cloud services
US9928080B2 (en) Hardware security module access management in a cloud computing environment
US8769269B2 (en) Cloud data management
CN107124271B (en) Data encryption and decryption method and equipment
WO2019037775A1 (en) Issuance of service configuration file
US10241681B2 (en) Management of physical extents for space efficient storage volumes
US10001926B2 (en) Management of extents for space efficient storage volumes by reusing previously allocated extents
US8839399B2 (en) Tenant driven security in a storage cloud
KR101837678B1 (en) Computing apparatus based on trusted execution environment
US9940020B2 (en) Memory management method, apparatus, and system
WO2016183906A1 (en) Storage space allocation method and apparatus
TWI706663B (en) Data storage method and system based on multiple blockchain networks
CN107577538B (en) Container resource management method and system
WO2016141808A1 (en) Security management method and apparatus for server
JP2017538194A (en) Composite partition function
WO2016041446A1 (en) Resource allocation method, apparatus and device
TW202036441A (en) Data reading method based on a plurality of block chain networks and system
US20160364565A1 (en) Authentication and secure communication with application extensions
US11251961B2 (en) Methods and apparatuses for storing or invoking blockchain account private keys
JP2005208999A (en) Virtual machine management program
CN111988262A (en) Authentication method, authentication device, server and storage medium
WO2016115798A1 (en) Storage space allocation method, storage space allocation device, and terminal
WO2016183868A1 (en) Storage space allocation method and apparatus, and electronic device
CN111124956B (en) Container protection method, processor, operating system and computer equipment

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: 15892284

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.04.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15892284

Country of ref document: EP

Kind code of ref document: A1