WO2016183868A1 - 存储空间分配方法、装置及电子设备 - Google Patents
存储空间分配方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2016183868A1 WO2016183868A1 PCT/CN2015/080376 CN2015080376W WO2016183868A1 WO 2016183868 A1 WO2016183868 A1 WO 2016183868A1 CN 2015080376 W CN2015080376 W CN 2015080376W WO 2016183868 A1 WO2016183868 A1 WO 2016183868A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- storage space
- data area
- data
- memory card
- external memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
Definitions
- the present invention relates to the field of storage technologies, and in particular, to a storage space allocation method, apparatus, and electronic device.
- the system is generally divided into a personal private domain (PPD) and a secure enterprise domain (SED).
- PPD personal private domain
- SED secure enterprise domain
- FIG. A schematic diagram of a conventional storage space allocation method is shown in FIG. (such as /data partition) Reserve a part of the fixed storage space to the security system, this part of the fixed storage space as the system area of the security system (such as /system partition), cache area (such as /cache partition) and data area (such as /data Partition), regardless of the system, the system's system area, buffer area and data area are fixed.
- the inventor has found that the traditional storage space allocation method, because the storage space of the common system and the storage space of the security system are pre-allocated and fixed, therefore, the security system space is prone to occur.
- the available space of the ordinary system has a large amount of surplus, or the ordinary system space is insufficient, and the safe available space has a large surplus, and since the security system cannot store the data in the storage space of the ordinary system when the data is stored, the ordinary system cannot store the data to the security system.
- Storage space therefore, existing solutions are prone to low storage space utilization problems.
- the present invention provides the following technical solutions:
- a storage space allocation method is applied to an electronic device, and the data storage area corresponding to the common system of the electronic device includes at least: a data area and a system area and a buffer area corresponding to the security system of the electronic device; include:
- the first system is the ordinary system or the security system
- a storage space is allocated to the first system in the data area.
- the above method preferably, further includes:
- the first prompt information is output, where the first prompt information is used to prompt the user to delete data of a common system in the data area;
- the above method preferably, further includes:
- the first system is a normal system, determining whether the electronic device is installed with an external memory card;
- the storage space of the external memory card is sufficient, the storage space is allocated to the first system from the external memory card.
- the above method preferably, further includes:
- the second prompt information is output, where the second prompt information is used to prompt the user to delete data of the common system in the data area;
- the above method preferably, further includes:
- the third prompt information is output, where the third prompt information is used to prompt the user to delete the data in the external memory card;
- a storage space allocation device is applied to an electronic device, and the data storage area corresponding to the general system of the electronic device includes at least: a data area and a system area and a buffer area corresponding to the security system of the electronic device; :
- a receiving module configured to receive a storage space allocation request of the first system;
- the first system is the ordinary system or the security system;
- a first determining module configured to determine whether a storage space of the data area is sufficient
- the first allocation module is configured to allocate a storage space for the first system in the data area if the first determining module determines that the storage space of the data area is sufficient.
- the above device preferably, further comprises:
- a first output module configured to: if the first determining module determines that the storage space of the data area is insufficient, output first prompt information, where the first prompt information is used to prompt a user to delete a common system in the data area The data;
- the first triggering module is configured to trigger, when the data of the common system in the data area is deleted, the first determining module to determine whether the storage space of the data area is sufficient.
- the above device preferably, further comprises:
- a second judging module configured to: when the first judging module determines that the storage space of the data area is insufficient, if the first system is an ordinary system, determine whether the electronic device is installed with an external memory card;
- a third determining module configured to determine whether the storage space of the external memory card is sufficient if the second determining module determines that the electronic device is installed with an external memory card
- the second allocation module is configured to allocate a storage space for the first system from the external memory card if the third determining module determines that the storage space of the external memory card is sufficient.
- the above device preferably, further comprises:
- a second output module configured to: if the third determining module determines that the storage space of the external memory card is insufficient, output second prompt information, where the second prompt information is used to prompt the user to delete the common data area Systematic data;
- the second triggering module is configured to trigger, when the data of the common system in the data area is deleted, the first determining module to determine whether the storage space of the data area is sufficient.
- the above device preferably, further comprises:
- a third output module configured to: if the third determining module determines that the storage space of the external memory card is insufficient, the third prompt information is used, where the third prompt information is used to prompt the user to delete the external storage Data in the storage card;
- a third triggering module configured to: when the data in the external memory card is deleted, trigger the third determining module to determine whether the storage space of the external memory card is sufficient.
- An electronic device the data storage area corresponding to the general system of the electronic device at least includes: a data area and a system area and a buffer area corresponding to the security system of the electronic device; the electronic device includes a communication bus, a transceiver, Memory and processor, wherein:
- the communication bus is configured to implement connection communication between the transceiver device, the memory, and the processor;
- the program stores a set of program codes, and the transceiver device and the processor call program code stored in the memory to perform the following operations:
- the transceiver device is configured to receive a storage space allocation request of the first system;
- the first system is the ordinary system or the security system;
- the processor is configured to determine whether a storage space of the data area is sufficient, and if it is determined that a storage space of the data area is sufficient, allocate a storage space for the first system in the data area.
- the processor is further configured to:
- the first prompt information is output, where the first prompt information is used to prompt the user to delete data of a common system in the data area;
- the processor is further configured to:
- the first system is a normal system, determining whether the electronic device is installed with an external memory card;
- the storage space of the external memory card is sufficient, the storage space is allocated to the first system from the external memory card.
- the processor is further configured to:
- the second prompt information is output, where the second prompt information is used to prompt the user to delete data of a common system in the data area;
- the processor is further configured to:
- the third prompt information is output, where the third prompt information is used to prompt the user to delete the data in the external memory card;
- the data storage area corresponding to the general system of the electronic device includes at least: a data area and a security system corresponding to the electronic device, a system area and a buffer area; when receiving a storage space allocation request of the first system, determining whether the storage space of the data area is sufficient; if it is determined that the storage space of the data area is sufficient, the data area is The first system allocates storage space.
- the first system is any one of a common system and a security system. That is to say, in the embodiment of the present invention, in addition to the exclusive system area and the buffer area allocated to the security system, the data area is configured as a shared storage area of the common system and the security system, and any system requests storage. Space, all allocate storage space from the data area, that is, for each system, the data area is dynamically allocated, thereby improving the utilization of storage space under multiple systems.
- FIG. 1 is a schematic diagram of a conventional storage space allocation method
- FIG. 2 is a schematic diagram of a storage space allocation method according to an embodiment of the present invention.
- FIG. 3 is a flowchart of an implementation of a storage space allocation method according to an embodiment of the present invention.
- FIG. 4 is a flowchart of another implementation of a storage space allocation method according to an embodiment of the present invention.
- FIG. 5 is a flowchart of still another implementation of a storage space allocation method according to an embodiment of the present invention.
- FIG. 6 is a flowchart of still another implementation of a storage space allocation method according to an embodiment of the present invention.
- FIG. 7 is a flowchart of still another implementation of a storage space allocation method according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present disclosure.
- FIG. 9 is another schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present invention.
- FIG. 10 is still another schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present disclosure.
- FIG. 11 is still another schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present invention.
- FIG. 12 is still another schematic structural diagram of a storage space allocation apparatus according to an embodiment of the present disclosure.
- FIG. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the storage space allocation method and apparatus provided by the embodiments of the present invention are applied to an electronic device having multiple systems.
- FIG. 2 is a schematic diagram of a storage space allocation method according to an embodiment of the present invention.
- the data storage area (/data corresponding to the PPD) corresponding to the general system of the electronic device includes at least: a data area and a system area corresponding to the security system of the electronic device (/system corresponding to the SED) And a buffer area (/cache corresponding to the SED); that is, in the embodiment of the present invention, the data storage area corresponding to the general system of the electronic device reserves a part of the fixed area as a system for the security system of the electronic device. Zones and buffers, the remaining zones serve as shared storage areas for common systems and security systems.
- FIG. 3 is a flowchart of an implementation of a storage space allocation method according to an embodiment of the present disclosure, which may include:
- Step S31 Receive a storage space allocation request of the first system;
- the first system is the ordinary System or the security system;
- the first system is any one of a general system and a security system of an electronic device.
- Step S32 determining whether the storage space of the data area is sufficient; if yes, executing step S33;
- the storage space requested by the first system is less than or equal to the unoccupied space of the data area, it is determined that the storage space of the data area is sufficient. Otherwise, it is determined that the storage space of the data area is insufficient.
- Step S33 Allocating a storage space for the first system in the data area.
- the storage space is allocated from the data area to the first system. That is to say, in the embodiment of the present invention, a fixed-size data storage area is not allocated to the common system and the security system, but the common system and the security system share the data area, and the storage space is dynamically allocated to the common system and the security system in the data area. .
- the data storage area corresponding to the common system of the electronic device at least includes: a data area and a system area and a buffer area corresponding to the security system of the electronic device;
- the storage space allocation request of the system is determined, it is determined whether the storage space of the data area is sufficient; if it is determined that the storage space of the data area is sufficient, the storage space is allocated for the first system in the data area.
- the first system is any one of a common system and a security system. That is to say, in the embodiment of the present invention, in addition to the exclusive system area and the buffer area allocated to the security system, the data area is configured as a shared storage area of the common system and the security system, and any system requests storage. Space, all allocate storage space from the data area, that is, for each system, the data area is dynamically allocated, rather than fixed, thereby improving the utilization of storage space under multiple systems.
- the storage space allocation method provided by the embodiment of the present invention may further include:
- step S34 is performed
- Step S34 output first prompt information, where the first prompt information is used to prompt the user to delete data of a common system in the data area;
- the first prompt information may be output in a text manner or may be output in a voice manner.
- the data list of the common system in the data area may be displayed for the user to select the data to be deleted.
- Step S35 Monitor whether data of the normal system in the data area is deleted; if yes, return to step S32.
- the embodiment of the present invention when the storage space of the data area is insufficient, the user is preferentially prompted to delete the data stored by the general system in the data area.
- the data of the security system is usually data that is more important to the user. Therefore, the embodiment of the present invention can ensure that the data of the security system is not deleted as much as possible.
- the user is prompted to delete the data of the security system.
- the storage space of the data area is insufficient, if the first system is a normal system, and only data of the security system is stored in the data area, it is determined whether the electronic device is installed with an external memory card;
- the user is prompted to delete the data of the security system.
- the storage space of the external memory card is sufficient, the storage space is allocated to the first system from the external memory card.
- the user is prompted to delete the data of the external memory card to recover the storage space.
- FIG. 4 another implementation flowchart of the storage space allocation method provided by the embodiment of the present invention is as shown in FIG. 4, and may include:
- Step S41 Receive a storage space allocation request of the first system;
- the first system is the ordinary system or the security system;
- the first system is any one of a general system and a security system of an electronic device.
- Step S42 determining whether the storage space of the data area is sufficient; if so, proceeding to step S43; if not, executing step S44;
- the storage space requested by the first system is less than or equal to the unoccupied space of the data area, it is determined that the storage space of the data area is sufficient. Otherwise, it is determined that the storage space of the data area is insufficient.
- Step S43 Allocating a storage space for the first system in the data area
- step S41 to step S43 refer to step S31 to step S33, and details are not described herein again.
- Step S44 If the first system is a normal system, it is determined whether the electronic device is installed with an external memory card; if yes, step S45 is performed; if not, step S47 is performed;
- Step S45 determining whether the storage space of the external memory card is sufficient; if yes, performing steps S46; if not, proceed to step S47;
- Step S46 Allocating a storage space for the first system from the external memory card.
- Step S47 output second prompt information, where the second prompt information is used to prompt the user to delete data of a common system in the data area;
- Step S48 Monitor whether the data area of the ordinary system in the data area has data deleted, and if yes, return to step S42.
- FIG. 5 Another implementation flowchart of the storage space allocation method provided by the embodiment of the present invention is as shown in FIG. 5, and may include:
- Step S51 Receive a storage space allocation request of the first system; the first system is the ordinary system or the security system;
- the first system is any one of a general system and a security system of an electronic device.
- Step S52 determining whether the storage space of the data area is sufficient; if yes, proceeding to step S53; if not, executing step S54;
- the storage space requested by the first system is less than or equal to the unoccupied space of the data area, it is determined that the storage space of the data area is sufficient. Otherwise, it is determined that the storage space of the data area is insufficient.
- Step S53 Allocating a storage space for the first system in the data area
- step S51 to step S53 refer to step S31 to step S33, and details are not described herein again.
- Step S54 If the first system is a normal system, it is determined whether the electronic device is installed with an external memory card; if yes, step S55 is performed; if not, step S57 is performed;
- Step S55 determining whether the storage space of the external memory card is sufficient; if yes, proceeding to step S56; if not, executing step S57;
- Step S56 Allocating a storage space for the first system from the external memory card.
- Step S57 output third prompt information, the third prompt information is used to prompt the user to delete data in the external memory card;
- Step S58 Monitor whether the data is deleted in the external memory card, and if yes, return to step S55.
- FIG. 6 Another implementation flowchart of the storage space allocation method provided by the embodiment of the present invention is as shown in the following figure. As shown in 6, it can include:
- Step S61 Receive a storage space allocation request of the first system; the first system is the ordinary system or the security system;
- the first system is any one of a general system and a security system of an electronic device.
- Step S62 determining whether the storage space of the data area is sufficient; if yes, executing step S63; if not, if the first system is a normal system, step S64 is performed; if the first system is a security system, Go to step S67;
- the storage space requested by the first system is less than or equal to the unoccupied space of the data area, it is determined that the storage space of the data area is sufficient. Otherwise, it is determined that the storage space of the data area is insufficient.
- Step S63 Allocating a storage space for the first system in the data area
- step S61 to step S63 refer to step S31 to step S33, and details are not described herein again.
- Step S64 determining whether the electronic device is installed with an external memory card; if yes, executing step S65; if not, executing step S67;
- Step S65 determining whether the storage space of the external memory card is sufficient; if yes, proceeding to step S66; if not, executing step S67;
- Step S66 Allocating a storage space for the first system from the external memory card.
- Step S67 output second prompt information, where the second prompt information is used to prompt the user to delete data of a common system in the data area;
- Step S68 Monitor whether the data area of the ordinary system in the data area has data deleted, and if yes, return to step S62.
- FIG. 7 another implementation flowchart of the storage space allocation method provided by the embodiment of the present invention is as shown in FIG. 7 , and may include:
- Step S71 Receive a storage space allocation request of the first system; the first system is the ordinary system or the security system;
- the first system is any one of a general system and a security system of an electronic device.
- Step S72 determining whether the storage space of the data area is sufficient; if yes, executing step S73; if not, if the first system is a normal system, executing step S74; if the first system is a security system, executing Step S79;
- the storage space requested by the first system is less than or equal to the unoccupied space of the data area, it is determined that the storage space of the data area is sufficient. Otherwise, it is determined that the storage space of the data area is insufficient.
- Step S73 Allocating storage space for the first system in the data area
- step S71 to step S73 refer to step S31 to step S33, and details are not described herein again.
- Step S74 determining whether the electronic device is installed with an external memory card; if yes, executing step S75; if not, executing step S77;
- Step S75 determining whether the storage space of the external memory card is sufficient; if yes, executing step S76; if not, executing step S77;
- Step S76 Allocating a storage space for the first system from the external memory card.
- Step S77 output third prompt information, the third prompt information is used to prompt the user to delete data in the external memory card;
- Step S78 Monitor whether the data is deleted in the external memory card, and if yes, return to step S75.
- Step S79 output first prompt information, where the first prompt information is used to prompt the user to delete data of a common system in the data area;
- the first prompt information may be output in a text manner or may be output in a voice manner.
- the data list of the common system in the data area may be displayed for the user to select the data to be deleted.
- Step S710 Monitor whether data of the normal system in the data area is deleted; if yes, return to step S72.
- the embodiment of the present invention further provides a storage space allocation device.
- a schematic structural diagram of a storage space allocation device according to an embodiment of the present invention is as shown in FIG.
- the receiving module 81 is configured to receive a storage space allocation request of the first system; the first system is the ordinary system or the security system;
- the first determining module 82 is configured to determine whether the storage space of the data area is sufficient
- the first allocating module 83 is configured to allocate a storage space for the first system in the data area if the first determining module determines that the storage space of the data area is sufficient.
- the data storage area corresponding to the common system of the electronic device at least includes: a data area and a system area and a buffer area corresponding to the security system of the electronic device;
- the first determining module determines whether the storage space of the data area is sufficient; if it is determined that the storage space of the data area is sufficient, the first allocation module is in the data area
- the first system allocates storage space.
- the first system is any one of a common system and a security system.
- the data area in addition to the exclusive system area and the buffer area allocated to the security system, the data area is configured as a shared storage area of the common system and the security system, and any system requests storage. Space, all allocate storage space from the data area, that is, for each system, the data area is dynamically allocated, rather than fixed, thereby improving the utilization of storage space under multiple systems.
- FIG. 9 another schematic structural diagram of the storage space allocation apparatus according to the embodiment of the present invention is as shown in FIG. 9 , and may further include:
- the first output module 91 is configured to: if the first determining module 82 determines that the storage space of the data area is insufficient, output first prompt information, where the first prompt information is used to prompt the user to delete the common data area.
- Systematic data
- the first triggering module 92 is configured to trigger the first determining module 82 to determine whether the storage space of the data area is sufficient when the data of the common system in the data area is deleted.
- FIG. 10 another schematic structural diagram of the storage space allocation device according to the embodiment of the present invention is as shown in FIG. 10 , and may further include:
- the second judging module 101 is configured to: when the first judging module 82 determines that the storage space of the data area is insufficient, if the first system is an ordinary system, determine whether the electronic device installs an external memory card;
- the third determining module 102 is configured to determine whether the storage space of the external memory card is sufficient if the second determining module 101 determines that the electronic device installs an external memory card;
- the second allocation module 103 is configured to allocate a storage space for the first system from the external memory card if the third determining module 102 determines that the storage space of the external memory card is sufficient.
- FIG. 10 another schematic structural diagram of the storage space allocation apparatus provided by the embodiment of the present invention is as shown in FIG.
- the second output module 111 is configured to: if the third determining module 102 determines that the storage space of the external memory card is insufficient, output second prompt information, where the second prompt information is used to prompt the user to delete the data area.
- the second triggering module 112 is configured to trigger the first determining module 82 to determine whether the storage space of the data area is sufficient when the data of the common system in the data area is deleted.
- FIG. 12 another schematic structural diagram of the storage space allocation apparatus according to the embodiment of the present invention is as shown in FIG. 12, and may further include:
- the third output module 121 is configured to: if the third determining module 102 determines that the storage space of the external memory card is insufficient, the third prompt information is used, where the third prompt information is used to prompt the user to delete the external storage.
- the third triggering module 122 is configured to trigger the third determining module 102 to determine whether the storage space of the external memory card is sufficient when the data in the external memory card is deleted.
- FIG. 13 shows a schematic structural view of an electronic device according to an embodiment of the present invention.
- the data storage area corresponding to the general system of the electronic device includes at least: a data area and a system area and a buffer area corresponding to the security system of the electronic device.
- the electronic device may include at least one transceiver 503, at least one processor 501, such as a CPU, a memory 504, and at least one communication bus 502.
- the communication bus 502 is configured to connect the transceiver 503, the processor 501, and the memory 504.
- the above memory 504 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
- the memory 504 is further configured to store a set of program codes, and the transceiver 503 and the processor 501 are configured to call the program code stored in the memory 504, and perform the following operations:
- the transceiver device 503 is configured to receive a storage space allocation request of the first system; the first system is the ordinary system or the security system;
- the processor 501 is configured to determine whether a storage space of the data area is sufficient. If it is determined that the storage space of the data area is sufficient, allocate a storage space for the first system in the data area.
- the processor 501 is further configured to:
- the first prompt information is output, where the first prompt information is used to prompt the user to delete data of a common system in the data area;
- the processor 501 is further configured to:
- the first system is a normal system, determining whether the electronic device is installed with an external memory card;
- the storage space of the external memory card is sufficient, the storage space is allocated to the first system from the external memory card.
- the processor 501 is further configured to:
- the processor is further configured to:
- the second prompt information is output, where the second prompt information is used to prompt the user to delete data of a common system in the data area;
- the processor 501 is further configured to:
- the processor is further configured to:
- the third prompt information is output, where the third prompt information is used to prompt the user to delete the data in the external memory card;
- the disclosed system if present
- apparatus if present
- method may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
- the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
- the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- 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)
- Memory System (AREA)
- Storage Device Security (AREA)
Abstract
一种存储空间分配方法、装置及电子设备,与电子设备的普通系统对应的数据存储区域至少包括:数据区以及与电子设备的安全系统对应的系统区和缓存区;当接收第一系统的存储空间分配请求时,判断数据区的存储空间是否足够;若判断出数据区的存储空间足够,则在数据区为第一系统分配存储空间。其中,第一系统为普通系统和安全系统中任意一个系统。本方法中,普通系统的数据存储区域除了为安全系统分配独享的系统区和缓存区外,数据区配置为普通系统和安全系统的共享存储区域,任意一个系统请求存储空间,都从数据区中分配存储空间,即,对于每一个系统来说,数据区都是动态分配的,从而提高多系统下存储空间的利用率。
Description
本申请要求于2015年5月21日提交中国专利局、申请号为201510263933.4,发明名称为“存储空间分配方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及存储技术领域,更具体地说,涉及一种存储空间分配方法、装置及电子设备。
在多系统电子设备中,系统通常分为普通系统(personal private domain,PPD)和安全系统(secure enterprise domain,SED),传统的存储空间的分配方法示意图如图1所示,普通系统的数据区(如/data分区)预留一部分固定的存储空间给安全系统,这部分固定存储空间作为安全系统的系统区(如/system分区)、缓存区(如/cache分区)和数据区(如/data分区)使用,不管是哪个系统,系统的系统区、缓存区和数据区都是固定不变的。
发明人在实现本发明的过程中发现,传统的存储空间分配方法,由于普通系统的存储空间和安全系统的存储空间都是预先分配好且固定不变的,因此,容易出现安全系统空间不足,而普通系统可用空间有大量剩余,或者普通系统空间不足,而安全可用空间有大量剩余,而由于安全系统存储数据时不能存储到普通系统的存储空间,普通系统存储数据时也不能存储到安全系统的存储空间,因此,现有方案容易造成存储空间利用率低的问题。
因此,如何提高多系统下存储空间的利用率成为亟待解决的问题。
发明内容
本发明的目的是提供一种存储空间分配方法、装置及电子设备,以提高多系统下存储空间的利用率。
为实现上述目的,本发明提供了如下技术方案:
一种存储空间分配方法,应用于电子设备,与所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;所述方法包括:
接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
判断所述数据区的存储空间是否足够;
若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
上述方法,优选的,还包括:
若判断出所述数据区的存储空间不足,则输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
当所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
上述方法,优选的,还包括:
当判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;
若判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;
若判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
上述方法,优选的,还包括:
若判断出所述外部存储卡的存储空间不足,则输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
当所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
上述方法,优选的,还包括:
若判断出所述外部存储卡的存储空间不足,则输出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;
当所述外部存储卡中的数据被删除时,返回执行所述判断所述外部存储卡的存储空间是否足够的步骤。
一种存储空间分配装置,应用于电子设备,所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;所述装置包括:
接收模块,用于接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
第一判断模块,用于判断所述数据区的存储空间是否足够;
第一分配模块,用于若所述第一判断模块判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
上述装置,优选的,还包括:
第一输出模块,用于若所述第一判断模块判断出所述数据区的存储空间不足,则输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
第一触发模块,用于当所述数据区中普通系统的数据被删除时,触发所述第一判断模块判断所述数据区的存储空间是否足够。
上述装置,优选的,还包括:
第二判断模块,用于当所述第一判断模块判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;
第三判断模块,用于若所述第二判断模块判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;
第二分配模块,用于若所述第三判断模块判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
上述装置,优选的,还包括:
第二输出模块,用于若所述第三判断模块判断出所述外部存储卡的存储空间不足,则输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
第二触发模块,用于当所述数据区中普通系统的数据被删除时,触发所述第一判断模块判断所述数据区的存储空间是否足够。
上述装置,优选的,还包括:
第三输出模块,用于若所述第三判断模块判断出所述外部存储卡的存储空间不足,则出第三提示信息,所述第三提示信息用于提示用户删除所述外部存
储卡中的数据;
第三触发模块,用于当所述外部存储卡中的数据被删除时,触发所述第三判断模块判断所述外部存储卡的存储空间是否足够。
一种电子设备,所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;所述电子设备包括通信总线、收发装置、存储器以及处理器,其中:
所述通信总线,用于实现所述收发装置、所述存储器以及所述处理器之间的连接通信;
所述存储器中存储一组程序代码,且所述收发装置和所述处理器调用存储器中存储的程序代码,用于执行以下操作:
所述收发装置,用于接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
所述处理器,用于判断所述数据区的存储空间是否足够,若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
在上述技术方案中,优选地,所述处理器还用于:
在判断出所述数据区的存储空间不足时,输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
在所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
在上述技术方案中,优选地,所述处理器还用于:
在判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;
若判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;
若判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
在上述技术方案中,优选地,所述处理器还用于:
在判断出所述外部存储卡的存储空间不足时,输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
在所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
在上述技术方案中,优选地,所述处理器还用于:
在判断出所述外部存储卡的存储空间不足时,输出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;
在所述外部存储卡中的数据被删除时,返回执行所述判断所述外部存储卡的存储空间是否足够的步骤。
通过以上方案可知,本申请提供的一种存储空间分配方法、装置及电子设备,与所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;当接收第一系统的存储空间分配请求时,判断所述数据区的存储空间是否足够;若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。其中,第一系统为普通系统和安全系统中任意一个系统。也就是说,本发明实施例中,普通系统的数据存储区域除了为安全系统分配独享的系统区和缓存区外,数据区配置为普通系统和安全系统的共享存储区域,任意一个系统请求存储空间,都从数据区中分配存储空间,也就是说,对于每一个系统来说,数据区都是动态分配的,从而提高多系统下存储空间的利用率。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为传统的存储空间的分配方法示意图;
图2为本发明实施例提供的存储空间分配方法示意图;
图3为本发明实施例提供的存储空间分配方法的一种实现流程图;
图4为本发明实施例提供的存储空间分配方法的另一种实现流程图;
图5为本发明实施例提供的存储空间分配方法的又一种实现流程图;
图6为本发明实施例提供的存储空间分配方法的又一种实现流程图;
图7为本发明实施例提供的存储空间分配方法的又一种实现流程图;
图8为本发明实施例提供的存储空间分配装置的一种结构示意图;
图9为本发明实施例提供的存储空间分配装置的另一种结构示意图;
图10为本发明实施例提供的存储空间分配装置的又一种结构示意图;
图11为本发明实施例提供的存储空间分配装置的又一种结构示意图;
图12为本发明实施例提供的存储空间分配装置的又一种结构示意图;
图13为本发明实施例提供的电子设备的一种结构示意图。
说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的部分,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示的以外的顺序实施。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供的存储空间分配方法及装置应用于电子设备中,该电子设备具有多个系统。
请参阅图2,图2为本发明实施例提供的存储空间分配方法示意图。本发明实施例中,与所述电子设备的普通系统对应的数据存储区域(PPD对应的/data)至少包括:数据区以及与所述电子设备的安全系统对应的系统区(SED对应的/system)和缓存区(SED对应的/cache);也就是说,本发明实施例中,与所述电子设备的普通系统对应的数据存储区域为所述电子设备的安全系统预留一部分固定区域作为系统区和缓存区,剩余的区域作为普通系统和安全系统的共享存储区域。
请参阅图3,图3为本发明实施例提供的存储空间分配方法的一种实现流程图,可以包括:
步骤S31:接收第一系统的存储空间分配请求;所述第一系统为所述普通
系统或所述安全系统;
也就是说,第一系统是电子设备的普通系统和安全系统中的任意一系统。
步骤S32:判断所述数据区的存储空间是否足够;若是,则执行步骤S33;
当第一系统请求分配的存储空间小于或等于数据区的未占用空间时,确定数据区的存储空间足够,否则,确定数据区的存储空间不足。
步骤S33:在所述数据区为所述第一系统分配存储空间。
本发明实施例中,不管第一系统是哪个系统,只要数据区的存储空间足够,都从数据区为第一系统分配存储空间。也就是说,本发明实施例中,未对普通系统和安全系统分配固定大小的数据存储区域,而是普通系统和安全系统共享数据区,动态在数据区中为普通系统和安全系统分配存储空间。
本发明实施例提供的存储空间分配方法,与所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;当接收第一系统的存储空间分配请求时,判断所述数据区的存储空间是否足够;若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。其中,第一系统为普通系统和安全系统中任意一个系统。也就是说,本发明实施例中,普通系统的数据存储区域除了为安全系统分配独享的系统区和缓存区外,数据区配置为普通系统和安全系统的共享存储区域,任意一个系统请求存储空间,都从数据区中分配存储空间,也就是说,对于每一个系统来说,数据区都是动态分配的,而不是固定不变的,从而提高多系统下存储空间的利用率。
可选的,本发明实施例提供的存储空间分配方法还可以包括:
若步骤S32判断出所述数据区的存储空间不足,则执行步骤S34;
步骤S34:输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
所述第一提示信息可以以文本方式输出,也可以以语音方式输出。
进一步的,为了简化用户操作,在输出第一提示信息的同时,可以显示数据区中普通系统的数据列表,以供用户选择需要删除的数据。
步骤S35:监测所述数据区中是否有普通系统的数据被删除;若是,则返回步骤S32。
本发明实施例中,当数据区的存储空间不足时,优先提示用户删除数据区中普通系统存储的数据。而安全系统的数据通常是对应用户来说比较重要的数据,因而,通过本发明实施例,可以保证安全系统的数据尽量不被删除。
可选的,当数据区的存储空间不足时,若数据区中只存储有安全系统的数据,则提示用户删除安全系统的数据。
或者,当数据区的存储空间不足时,若第一系统为普通系统,且数据区中只存储有安全系统的数据,则判断电子设备是否安装外部存储卡;
若电子设备未安装外部存储卡,则提示用户删除安全系统的数据。
若判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;
若判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
若判断出所述外部存储卡的存储空间不足,则提示用户删除所述外部存储卡的数据,以回收存储空间。
可选的,本发明实施例提供的存储空间分配方法的另一种实现流程图如图4所示,可以包括:
步骤S41:接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
也就是说,第一系统是电子设备的普通系统和安全系统中的任意一系统。
步骤S42:判断所述数据区的存储空间是否足够;若是,则执行步骤S43;若否,则执行步骤S44;
当第一系统请求分配的存储空间小于或等于数据区的未占用空间时,确定数据区的存储空间足够,否则,确定数据区的存储空间不足。
步骤S43:在所述数据区为所述第一系统分配存储空间;
其中,步骤S41至步骤S43的具体实现过程可参看步骤S31至步骤S33,这里不再赘述。
步骤S44:若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;若是,则执行步骤S45;若否,则执行步骤S47;
步骤S45:判断所述外部存储卡的存储空间是否足够;若是,则执行步骤
S46;若否,则执行步骤S47;
步骤S46:从所述外部存储卡为所述第一系统分配存储空间。
步骤S47:输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
步骤S48:监测所述数据区中普通系统的数据区是否有数据被删除,若是,则返回执行步骤S42。
可选的,本发明实施例提供的存储空间分配方法的又一种实现流程图如图5所示,可以包括:
步骤S51:接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
也就是说,第一系统是电子设备的普通系统和安全系统中的任意一系统。
步骤S52:判断所述数据区的存储空间是否足够;若是,则执行步骤S53;若否,则执行步骤S54;
当第一系统请求分配的存储空间小于或等于数据区的未占用空间时,确定数据区的存储空间足够,否则,确定数据区的存储空间不足。
步骤S53:在所述数据区为所述第一系统分配存储空间;
其中,步骤S51至步骤S53的具体实现过程可参看步骤S31至步骤S33,这里不再赘述。
步骤S54:若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;若是,则执行步骤S55;若否,则执行步骤S57;
步骤S55:判断所述外部存储卡的存储空间是否足够;若是,则执行步骤S56;若否,则执行步骤S57;
步骤S56:从所述外部存储卡为所述第一系统分配存储空间。
步骤S57:输出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;
步骤S58:监测所述外部存储卡中是否有数据被删除,若是,则返回执行步骤S55。
可选的,本发明实施例提供的存储空间分配方法的又一种实现流程图如图
6所示,可以包括:
步骤S61:接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
也就是说,第一系统是电子设备的普通系统和安全系统中的任意一系统。
步骤S62:判断所述数据区的存储空间是否足够;若是,则执行步骤S63;若否,则,若所述第一系统为普通系统,执行步骤S64;若所述第一系统为安全系统,执行步骤S67;
当第一系统请求分配的存储空间小于或等于数据区的未占用空间时,确定数据区的存储空间足够,否则,确定数据区的存储空间不足。
步骤S63:在所述数据区为所述第一系统分配存储空间;
其中,步骤S61至步骤S63的具体实现过程可参看步骤S31至步骤S33,这里不再赘述。
步骤S64:判断所述电子设备是否安装外部存储卡;若是,则执行步骤S65;若否,则执行步骤S67;
步骤S65:判断所述外部存储卡的存储空间是否足够;若是,则执行步骤S66;若否,则执行步骤S67;
步骤S66:从所述外部存储卡为所述第一系统分配存储空间。
步骤S67:输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
步骤S68:监测所述数据区中普通系统的数据区是否有数据被删除,若是,则返回执行步骤S62。
可选的,本发明实施例提供的存储空间分配方法的又一种实现流程图如图7所示,可以包括:
步骤S71:接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
也就是说,第一系统是电子设备的普通系统和安全系统中的任意一系统。
步骤S72:判断所述数据区的存储空间是否足够;若是,则执行步骤S73;若否,则若所述第一系统为普通系统,执行步骤S74;若所述第一系统为安全系统,执行步骤S79;
当第一系统请求分配的存储空间小于或等于数据区的未占用空间时,确定数据区的存储空间足够,否则,确定数据区的存储空间不足。
步骤S73:在所述数据区为所述第一系统分配存储空间;
其中,步骤S71至步骤S73的具体实现过程可参看步骤S31至步骤S33,这里不再赘述。
步骤S74:判断所述电子设备是否安装外部存储卡;若是,则执行步骤S75;若否,则执行步骤S77;
步骤S75:判断所述外部存储卡的存储空间是否足够;若是,则执行步骤S76;若否,则执行步骤S77;
步骤S76:从所述外部存储卡为所述第一系统分配存储空间。
步骤S77:输出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;
步骤S78:监测所述外部存储卡中是否有数据被删除,若是,则返回执行步骤S75。
步骤S79:输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
所述第一提示信息可以以文本方式输出,也可以以语音方式输出。
进一步的,为了简化用户操作,在输出第一提示信息的同时,可以显示数据区中普通系统的数据列表,以供用户选择需要删除的数据。
步骤S710:监测所述数据区中是否有普通系统的数据被删除;若是,则返回步骤S72。
与方法实施例相对应,本发明实施例还提供一种存储空间分配装置,本发明实施例提供的存储空间分配装置的一种结构示意图如图8所示,可以包括:
接收模块81,第一判断模块82和第一分配模块83;其中,
接收模块81用于接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
第一判断模块82用于判断所述数据区的存储空间是否足够;
第一分配模块83用于若所述第一判断模块判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
本发明实施例提供的存储空间分配装置,与所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;当接收模块接收到第一系统的存储空间分配请求时,第一判断模块判断所述数据区的存储空间是否足够;若判断出所述数据区的存储空间足够,则第一分配模块在所述数据区为所述第一系统分配存储空间。其中,第一系统为普通系统和安全系统中任意一个系统。也就是说,本发明实施例中,普通系统的数据存储区域除了为安全系统分配独享的系统区和缓存区外,数据区配置为普通系统和安全系统的共享存储区域,任意一个系统请求存储空间,都从数据区中分配存储空间,也就是说,对于每一个系统来说,数据区都是动态分配的,而不是固定不变的,从而提高多系统下存储空间的利用率。
在图8所示实施例的基础上,本发明实施例提供的存储空间分配装置的另一种结构示意图如图9所示,还可以包括:
第一输出模块91和第一触发模块92;其中,
第一输出模块91用于若所述第一判断模块82判断出所述数据区的存储空间不足,则输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
第一触发模块92用于当所述数据区中普通系统的数据被删除时,触发所述第一判断模块82判断所述数据区的存储空间是否足够。
在图8所示实施例的基础上,本发明实施例提供的存储空间分配装置的又一种结构示意图如图10所示,还可以包括:
第二判断模块101,第三判断模块102和第二分配模块103;其中,
第二判断模块101用于当所述第一判断模块82判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;
第三判断模块102用于若所述第二判断模块101判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;
第二分配模块103用于若所述第三判断模块102判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
可选的,在图10所示实施例的基础上,本发明实施例提供的存储空间分配装置的又一种结构示意图如图11所示,还可以包括:
第二输出模块111和第二触发模块112;其中,
第二输出模块111用于若所述第三判断模块102判断出所述外部存储卡的存储空间不足,则输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
第二触发模块112用于当所述数据区中普通系统的数据被删除时,触发所述第一判断模块82判断所述数据区的存储空间是否足够。
可选的,在图10所示实施例的基础上,本发明实施例提供的存储空间分配装置的又一种结构示意图如图12所示,还可以包括:
第三输出模块121和第三触发模块122;其中,
第三输出模块121用于若所述第三判断模102块判断出所述外部存储卡的存储空间不足,则出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;
第三触发模块122用于当所述外部存储卡中的数据被删除时,触发所述第三判断模块102判断所述外部存储卡的存储空间是否足够。
图13示出了根据本发明的实施例的电子设备的结构示意图。所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区。如图13所示,所述电子设备可以包括:至少一个收发装置503,至少一个处理器501,例如CPU,存储器504和至少一个通信总线502。
其中,上述通信总线502用于连接上述收发装置503、处理器501和存储器504。
上述存储器504可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器504还用于存储一组程序代码,上述收发装置503和处理器501用于调用存储器504中存储的程序代码,执行如下操作:
所述收发装置503,用于接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;
所述处理器501,用于判断所述数据区的存储空间是否足够,若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
在上述技术方案中,优选地,所述处理器501还用于:
在判断出所述数据区的存储空间不足时,输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;
在所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
在上述技术方案中,优选地,所述处理器501还用于:
在判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;
若判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;
若判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
在上述技术方案中,优选地,所述处理器501还用于:
所述处理器还用于:
在判断出所述外部存储卡的存储空间不足时,输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;
在所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
在上述技术方案中,优选地,所述处理器501还用于:
所述处理器还用于:
在判断出所述外部存储卡的存储空间不足时,输出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;
在所述外部存储卡中的数据被删除时,返回执行所述判断所述外部存储卡的存储空间是否足够的步骤。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来
实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统(若存在)、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统(若存在)、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
Claims (15)
- 一种存储空间分配方法,应用于电子设备,其特征在于,与所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;所述方法包括:接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;判断所述数据区的存储空间是否足够;若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
- 根据权利要求1所述的方法,其特征在于,还包括:若判断出所述数据区的存储空间不足,则输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;当所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
- 根据权利要求1所述的方法,其特征在于,还包括:当判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;若判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;若判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
- 根据权利要求3所述的方法,其特征在于,还包括:若判断出所述外部存储卡的存储空间不足,则输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;当所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
- 根据权利要求3所述的方法,其特征在于,还包括:若判断出所述外部存储卡的存储空间不足,则输出第三提示信息,所述第 三提示信息用于提示用户删除所述外部存储卡中的数据;当所述外部存储卡中的数据被删除时,返回执行所述判断所述外部存储卡的存储空间是否足够的步骤。
- 一种存储空间分配装置,应用于电子设备,其特征在于,所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;所述装置包括:接收模块,用于接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;第一判断模块,用于判断所述数据区的存储空间是否足够;第一分配模块,用于若所述第一判断模块判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
- 根据权利要求6所述的装置,其特征在于,还包括:第一输出模块,用于若所述第一判断模块判断出所述数据区的存储空间不足,则输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;第一触发模块,用于当所述数据区中普通系统的数据被删除时,触发所述第一判断模块判断所述数据区的存储空间是否足够。
- 根据权利要求6所述的装置,其特征在于,还包括:第二判断模块,用于当所述第一判断模块判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;第三判断模块,用于若所述第二判断模块判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;第二分配模块,用于若所述第三判断模块判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
- 根据权利要求8所述的装置,其特征在于,还包括:第二输出模块,用于若所述第三判断模块判断出所述外部存储卡的存储空间不足,则输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;第二触发模块,用于当所述数据区中普通系统的数据被删除时,触发所述第一判断模块判断所述数据区的存储空间是否足够。
- 根据权利要求8所述的装置,其特征在于,还包括:第三输出模块,用于若所述第三判断模块判断出所述外部存储卡的存储空间不足,则出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;第三触发模块,用于当所述外部存储卡中的数据被删除时,触发所述第三判断模块判断所述外部存储卡的存储空间是否足够。
- 一种电子设备,其特征在于,所述电子设备的普通系统对应的数据存储区域至少包括:数据区以及与所述电子设备的安全系统对应的系统区和缓存区;所述电子设备包括通信总线、收发装置、存储器以及处理器,其中:所述通信总线,用于实现所述收发装置、所述存储器以及所述处理器之间的连接通信;所述存储器中存储一组程序代码,且所述收发装置和所述处理器调用存储器中存储的程序代码,用于执行以下操作:所述收发装置,用于接收第一系统的存储空间分配请求;所述第一系统为所述普通系统或所述安全系统;所述处理器,用于判断所述数据区的存储空间是否足够,若判断出所述数据区的存储空间足够,则在所述数据区为所述第一系统分配存储空间。
- 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于:在判断出所述数据区的存储空间不足时,输出第一提示信息,所述第一提示信息用于提示用户删除所述数据区中普通系统的数据;在所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
- 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于:在判断出所述数据区的存储空间不足时,若所述第一系统为普通系统,则判断所述电子设备是否安装外部存储卡;若判断出所述电子设备安装外部存储卡,则判断所述外部存储卡的存储空间是否足够;若判断出所述外部存储卡的存储空间足够,则从所述外部存储卡为所述第一系统分配存储空间。
- 根据权利要求14所述的电子设备,其特征在于,所述处理器还用于:在判断出所述外部存储卡的存储空间不足时,输出第二提示信息,所述第二提示信息用于提示用户删除所述数据区中普通系统的数据;在所述数据区中普通系统的数据被删除时,返回执行所述判断所述数据区的存储空间是否足够的步骤。
- 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于:在判断出所述外部存储卡的存储空间不足时,输出第三提示信息,所述第三提示信息用于提示用户删除所述外部存储卡中的数据;在所述外部存储卡中的数据被删除时,返回执行所述判断所述外部存储卡的存储空间是否足够的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510263933.4 | 2015-05-21 | ||
| CN201510263933.4A CN105653471A (zh) | 2015-05-21 | 2015-05-21 | 存储空间分配方法、装置及电子设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016183868A1 true WO2016183868A1 (zh) | 2016-11-24 |
Family
ID=56481872
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/080376 Ceased WO2016183868A1 (zh) | 2015-05-21 | 2015-05-29 | 存储空间分配方法、装置及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105653471A (zh) |
| WO (1) | WO2016183868A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526814A (zh) * | 2017-08-25 | 2017-12-29 | 青岛海信移动通信技术股份有限公司 | 移动终端文件存储方法及装置 |
| CN114564454A (zh) * | 2020-11-27 | 2022-05-31 | 中兴通讯股份有限公司 | 一种存储管理、人机交互方法、计算机设备及存储介质 |
| CN117271453A (zh) * | 2023-09-21 | 2023-12-22 | 重庆长安汽车股份有限公司 | 一种数据存储方法、装置、车辆及存储介质 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107741828B (zh) * | 2017-09-19 | 2020-04-24 | 维沃移动通信有限公司 | 一种存储空间填充方法及移动终端 |
| CN111858048A (zh) * | 2020-07-17 | 2020-10-30 | 苏州浪潮智能科技有限公司 | 一种存储空间调整的方法和设备 |
| CN112118262B (zh) * | 2020-09-21 | 2022-07-29 | 武汉中元华电科技股份有限公司 | 一种基于动态内存分配实现数据排序与合并的系统及方法 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102004700A (zh) * | 2010-11-26 | 2011-04-06 | 华为终端有限公司 | 闪存的存储空间分配方法及装置 |
| CN104463033A (zh) * | 2014-12-29 | 2015-03-25 | 宇龙计算机通信科技(深圳)有限公司 | 存储区域设置方法、存储区域设置装置与终端 |
| CN104572484A (zh) * | 2015-01-23 | 2015-04-29 | 宇龙计算机通信科技(深圳)有限公司 | 存储空间分配方法、存储空间分配装置和终端 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101655818A (zh) * | 2009-09-10 | 2010-02-24 | 深圳华为通信技术有限公司 | 一种存储方法及设备 |
| CN104536820B (zh) * | 2014-12-29 | 2018-11-30 | 宇龙计算机通信科技(深圳)有限公司 | 运行多系统的方法、装置及终端 |
-
2015
- 2015-05-21 CN CN201510263933.4A patent/CN105653471A/zh active Pending
- 2015-05-29 WO PCT/CN2015/080376 patent/WO2016183868A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102004700A (zh) * | 2010-11-26 | 2011-04-06 | 华为终端有限公司 | 闪存的存储空间分配方法及装置 |
| CN104463033A (zh) * | 2014-12-29 | 2015-03-25 | 宇龙计算机通信科技(深圳)有限公司 | 存储区域设置方法、存储区域设置装置与终端 |
| CN104572484A (zh) * | 2015-01-23 | 2015-04-29 | 宇龙计算机通信科技(深圳)有限公司 | 存储空间分配方法、存储空间分配装置和终端 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526814A (zh) * | 2017-08-25 | 2017-12-29 | 青岛海信移动通信技术股份有限公司 | 移动终端文件存储方法及装置 |
| CN107526814B (zh) * | 2017-08-25 | 2020-11-03 | 青岛海信移动通信技术股份有限公司 | 移动终端文件存储方法及装置 |
| CN114564454A (zh) * | 2020-11-27 | 2022-05-31 | 中兴通讯股份有限公司 | 一种存储管理、人机交互方法、计算机设备及存储介质 |
| CN117271453A (zh) * | 2023-09-21 | 2023-12-22 | 重庆长安汽车股份有限公司 | 一种数据存储方法、装置、车辆及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105653471A (zh) | 2016-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016183868A1 (zh) | 存储空间分配方法、装置及电子设备 | |
| US10235047B2 (en) | Memory management method, apparatus, and system | |
| CN109565476B (zh) | 使用共享全局存储器储备进行队列保护 | |
| US11150949B2 (en) | Resource release method, resource allocation method, devices, and computer program products | |
| US20150301931A1 (en) | Method of allocating referenced memory pages from a free list | |
| CN106802939B (zh) | 一种解决数据冲突的方法和系统 | |
| CN113094183B (zh) | Ai训练平台的训练任务创建方法、装置、系统及介质 | |
| US8380936B2 (en) | Multi-core processor system and multi-core processor | |
| CN105573682B (zh) | 一种san存储系统及其数据读写方法 | |
| CN104301257B (zh) | 一种资源分配方法、装置及设备 | |
| US20120239810A1 (en) | System, method and computer program product for clustered computer environment partition resolution | |
| CN106445730B (zh) | 一种提高虚拟机性能的方法和终端 | |
| US11099740B2 (en) | Method, apparatus and computer program product for managing storage device | |
| CN111722908A (zh) | 一种虚拟机的创建方法、系统、设备以及介质 | |
| CN113986134B (zh) | 存储数据的方法、读取数据的方法和装置 | |
| JP2017215966A (ja) | 記憶デバイスにおける性能変動を制限するための技術 | |
| US7730185B2 (en) | Method, apparatus and computer program product for sharing resources | |
| CN101763433B (zh) | 一种数据存储系统及方法 | |
| WO2016183906A1 (zh) | 一种存储空间分配方法及装置 | |
| EP3249540A1 (en) | Method for writing multiple copies into storage device, and storage device | |
| WO2019072250A1 (zh) | 一种文件管理方法、文件管理系统、电子设备及存储介质 | |
| US20190278728A1 (en) | Self-moderating bus arbitration architecture | |
| US20100325360A1 (en) | Multi-core processor and multi-core processor system | |
| CN105376307A (zh) | 一种数据中心间的异步备份方法 | |
| WO2016115798A1 (zh) | 存储空间分配方法、存储空间分配装置和终端 |
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: 15892247 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 13.04.2018) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15892247 Country of ref document: EP Kind code of ref document: A1 |