CN105094692B - A kind of Disk Quotas control method and system based on android system - Google Patents
A kind of Disk Quotas control method and system based on android system Download PDFInfo
- Publication number
- CN105094692B CN105094692B CN201410216738.1A CN201410216738A CN105094692B CN 105094692 B CN105094692 B CN 105094692B CN 201410216738 A CN201410216738 A CN 201410216738A CN 105094692 B CN105094692 B CN 105094692B
- Authority
- CN
- China
- Prior art keywords
- disk
- application
- quota
- quotas
- smart machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention discloses a kind of Disk Quotas control method and system based on android system, wherein method includes step:A, the configuration file in application, in parsing application installation package is installed in smart machine, obtains the packet name information and identification information of application, and will be in the packet name of application and identification record to a Disk Quotas configuration file;B, after application starts, the application of smart machine sends out the request for obtaining Disk Quotas to the management server of equipment supplier;C, the management server finds the Disk Quota Technique of the application, and the Disk Quota Technique information found is back to smart machine;D, Disk Quota Technique is recorded in Disk Quotas configuration file smart machine, is then the disk space of the corresponding limit of application distribution, and to being monitored using operational process, its size of data cached is made to be no more than the disk space of distribution.Present invention guarantee is multiple to apply when carrying out data buffering, and equipment can normally be run.
Description
Technical field
The present invention relates to disk management field more particularly to a kind of Disk Quota Technique control methods based on android system
And system.
Background technology
From single-definition(SD), enhancing clarity(ED), fine definition(HD)Full HD (FULLHD), superelevation are arrived again
Clearly(UHD), demand continuous improvement of the user to video source clarity, this allows for each Video Applications more intensively in system
The storage resource in equipment is seized on backstage.In android system, when opening multiple video playing threads, each application
Higher disk space can be asked to carry out video data buffering, will necessarily influence the normal operation of equipment without effectively control.
Not only Video Applications, demand of the other application to disk space is also increasing, but existing android system disk pipe
Reason method can not also effectively control the Disk Quotas of each application, cause, using at runtime, often to exceed limit, cause using strong
System exits.
Therefore, the existing technology needs to be improved and developed.
Invention content
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of disks based on android system
Quota control method and system, it is intended to solve the problems, such as that existing disk management method can not effectively control Disk Quotas.
Technical scheme is as follows:
A kind of Disk Quotas control method based on android system, wherein including step:
A, the configuration file in application, in parsing application installation package is installed in smart machine, obtains the packet name information of application
And identification information, and will be in the packet name of application and identification record to a Disk Quotas configuration file;
B, after application starts, the application of smart machine sends out acquisition disk to the management server of equipment supplier and matches
The request of volume;
C, the management server finds the Disk Quota Technique of the application, and the Disk Quota Technique information found is back to intelligence
It can equipment;
D, Disk Quota Technique is recorded in Disk Quotas configuration file smart machine, is then the corresponding limit of application distribution
Disk space, and to being monitored using operational process, its size of data cached is made to be no more than the disk space of distribution.
The Disk Quotas control method based on android system, wherein in the step C, application provider is pre-
The Disk Quota Technique of the application on intelligent devices first is bought to equipment supplier, the management server of equipment supplier, which receives, to be obtained
After taking the request of Disk Quota Technique, the Disk Quota Technique that the application provider of the application is bought, the Disk Quota Technique that will be found are searched
Information is back to the smart machine.
The Disk Quotas control method based on android system, wherein further include after the step D:When answering
When buying the Disk Quota Technique of the application on intelligent devices to equipment supplier again with provider, the management of equipment supplier takes
Business device broadcasts this to the smart machine using new Disk Quota Technique, is synchronized by the smart machine.
The Disk Quotas control method based on android system, wherein before the step A, in Android
After system kernel starts compiling, quota source codes are obtained, and generate the execution file of quota orders, after kernel loaded,
Quota open commands are executed, limit distribution service is opened.
The Disk Quotas control method based on android system, wherein the step D is specifically included:
D1, execution quota configuration orders are that application distributes the limit corresponding disk space;
Soft or hard limits value in D2, modification disk partition/mnt/sdcard is corresponding limit value.
The Disk Quotas control method based on android system, wherein in the step C, when the disk of application
When limit changes, new Disk Quota Technique information is sent to smart machine, is synchronized by smart machine.
The Disk Quota Technique distribution method based on android system, wherein the application is Video Applications.
A kind of Disk Quotas control system based on android system, wherein including:
Analytic application module is obtained for installing the configuration file in application, in parsing application installation package in smart machine
The packet name information and identification information of application, and will be in the packet name of application and identification record to a Disk Quotas configuration file;
Request sending module, for after application starts, sending out acquisition disk to the management server of equipment supplier and matching
The request of volume;
Limit returns to module, and the Disk Quota Technique information found is back to by the Disk Quota Technique for finding the application
Smart machine;
Then disk space distribution module is the application for Disk Quota Technique to be recorded in Disk Quotas configuration file
The disk space of the corresponding limit of distribution, and to being monitored using operational process, the size of data that it is cached is made to be no more than distribution
Disk space.
The Disk Quotas control system based on android system, wherein further include:
Load-on module for after android system kernel starts compiling, obtaining quota source codes, and generates quota lives
The execution file of order executes quota open commands after kernel loaded, opens limit distribution service.
The Disk Quotas control system based on android system, wherein the disk space distribution module is specific
Including:
Dispensing unit is that application distributes the limit corresponding disk space for executing quota configuration orders;
Unit is changed, is corresponding limit value for changing the soft or hard limits value in disk partition/mnt/sdcard.
The Disk Quotas control system based on android system, wherein further include:
Synchronization module, for buying the disk of the application on intelligent devices to equipment supplier again when application provider
When limit, this is broadcasted using new Disk Quota Technique to the smart machine, is synchronized by the smart machine.
Advantageous effect:The present invention carries out disk using the disk management characteristic of Linux to each application port of different UID
Limit controls, and realizes effective storage resource management, and guarantee is multiple to apply when carrying out data buffering, and equipment can be normal
Operation.
Description of the drawings
Fig. 1 is a kind of flow chart of the Disk Quotas control method preferred embodiment based on android system of the present invention.
Fig. 2 is the particular flow sheet of step S104 in method shown in Fig. 1.
Fig. 3 is the flow chart by toll control hyperdisk space specific embodiment in the method for the present invention.
Fig. 4 is a kind of structure diagram of the Disk Quotas control system preferred embodiment based on android system of the present invention.
Fig. 5 is the concrete structure block diagram of disk space distribution module in system shown in Figure 4.
Specific implementation mode
The present invention provides a kind of Disk Quotas control method and system based on android system, to make the mesh of the present invention
, technical solution and effect it is clearer, clear, the present invention is described in more detail below.It should be appreciated that described herein
Specific embodiment be only used to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of Disk Quotas control method preferred embodiment based on android system of the present invention
Flow chart, as shown in the figure comprising step:
S101, the configuration file in application, in parsing application installation package is installed in smart machine, obtains the Bao Mingxin of application
Breath and identification information, and will be in the packet name of application and identification record to a Disk Quotas configuration file;
S102, application start after, the application of smart machine sends out acquisition magnetic to the management server of equipment supplier
The request of disk quota;
S103, the management server find the Disk Quota Technique of the application, and the Disk Quota Technique information found is returned
To smart machine;
Disk Quota Technique is recorded in Disk Quotas configuration file for S104, smart machine, is then corresponded to for the application distribution
The disk space of limit, and to being monitored using operational process, keep the disk that its size of data cached is no more than distribution empty
Between.
The embodiment of the present invention is realized based on android system, and the kernel of Android operation system belongs in Linux
One branch of core, the Disk Quota Technique scheduling with Linux and management function.Linux itself, which is provided, supports Disk Quota Technique
Option is compiled, Quota therein is open source projects, and can obtain compileable source code, and Quota can be that different user control distributes
Disk Quota Technique simultaneously carries out operation monitoring.
Android gives each APK(Using)One individual user's space of course allocation, each user's space are marked with UID
Show, a corresponding Linux user, when system operation will be that it creates a sandbox, prevent other applications from influencing.
Before the step S101, after android system kernel starts compiling, quota source codes are obtained, and generate
The execution file of quota orders executes quota open commands after kernel loaded, opens limit distribution service.
In the specific implementation, make menuconfig are executed first in Android kernel source code roots(Interior caryogamy
It sets)Linux kernel configuration is opened, sub-interface is configured into file system, * confirmations is played before quota support options, are completed
The support of verification Disk Quotas in Android.Then after android system kernel starts compiling, apt-get is executed
source quota(Obtain quota source-code instructions)Obtain quota source codes and after executing ./configure and make in kernel
The execution file of quota orders will be generated, wherein quotaon indicates that opening disk space limits, and edquota edits user's
Disk space size.
After the completion of Android kernel loads, quotas administered need to be opened in the initialization files init.rc of device systems
Service executes quota open commands/system/bin/quotaon-au, a and indicates that the disk partition of limit is /mnt/
Sdcard, u indicate to open the disk limitation of user's space.
Quota will live forever as a background service, to being monitored using corresponding process, to ensure each application cache
Data be no more than distribution disk space.
In step S101, when application is installed, the configuration file in application installation package is first parsed
AndroidManifest.xml obtains the packet name information of application(Packagename information)And identification information(android:
sharedUserId(Nodal information corresponding with signature)), system connected applications signing messages is that application distributes corresponding user
Space and a unique changeless UID using in system as mark, different applications due to packet name and signature is different will
Different UID is distributed, then by the packet name of application and identification record to a Disk Quotas configuration file, such as:
PID PR CPU% S #THR VSS RSS PCY UID Name
4979 0 0%S 16 843792K 87956K bg u0_a100 com.pplive.androidpad
5107 0 0% S 16 876992K 65664K bg u0_a99 com.letv.tv 5192 1 0% S 22
848544K 61308K bg u0_a98 com.tencent.qqlivehd 5295 1 1% S 29 961796K 111476K
bg u0_a97 com.sohutv.tv 5508 1 0% S 19 912432K 88160K fg u0_a95
com.qiyi.video 5603 1 0% S 23 878440K 47156K bg u0_a93 com.youku.tv
Above-mentioned Name options are packet name abbreviation, and sharing UID in Android need to be in Manifest(System file)Section
Increase android in point:SharedUserId attributes, and signed for it using corresponding signature tool.Android is applied
UID be all higher than 10000, indicated in the form of u0_a [num], corresponding numerical value is 10000+num, such as u0_a100 indicates that UID is
10100, bg u0_a99 indicate that UID is 10099, and so on.
According to the method described above, the format of Disk Quotas configuration file can be arranged in the way of table one, and wherein Value is indicated
The Disk Quota Technique size of application:
Table one
packagename | UID | Value |
com.youku.tv | 10093 | |
com.qiyi.video | 10095 | |
com.sohutv.tv | 10097 | |
com.tencent.qqlivehd | 10098 | |
com.letv.tv | 10099 | |
com.pplive.androidpad | 10100 |
The Disk Quotas configuration file storage on intelligent devices, after Disk Quota Technique service starts in equipment, is led to
The Disk Quotas configuration file crossed in equipment can find the Disk Quota Technique of each application and be managed successively.
In step s 102, after using startup, this of smart machine is using the management server to equipment supplier(Also referred to as
Disk Management Service device)The request for obtaining Disk Quotas is sent out, to ask disk read-write permission to carry out data buffer storage;Specifically may be used
Request is sent out to the management server of equipment supplier by connecting internet, when sending out request, also by the letter of application packet name
Breath is sent to management server, so that management server finds the Disk Quota Technique information of corresponding application.
In step s 103, application provider buys the disk limit of the application on intelligent devices to equipment supplier in advance
Volume, after the management server of equipment supplier receives the request for obtaining Disk Quota Technique, according to applying packet name(packagename)
The Disk Quota Technique that the application provider of the application is bought is found, then Disk Quota Technique information is back to smart machine.
By taking Video Applications as an example, application provider generally requires to ensure the normal play of ultrahigh resolution video source
The disk space of bigger, it is therefore desirable to ask higher Disk Quota Technique size, i.e., the Disk Quota Technique respectively applied by toll control,
If desired big Disk Quota Technique then needs to pay more purchase amount of money, ensures that there are one rational Disk Quota Techniques for each application tool, and
Each apply the problem of system background seizes equipment storage resource will not occur.When the Disk Quota Technique hair that application provider is bought
When changing, new Disk Quota Technique information will be sent to smart machine by the management server of equipment supplier, by intelligently setting
Standby to synchronize, to realize the synchronization of Disk Quota Technique size, this realizes the dynamic adaptation of Disk Quota Technique, Disk Quota Technique information
Real-time synchronization manages convenient for carrying out dynamic in real time to equipment application Disk Quota Technique.It is stored in the database of equipment supplier each
The Disk Quota Technique of application, storage format can be arranged according to two mode of table, and one is classified as using packet name, and one to be classified as Disk Quota Technique big
It is small:
Table two
packagename | Value |
com.youku.tv | 200M |
com.qiyi.video | 800M |
com.sohutv.tv | 200M |
com.tencent.qqlivehd | 200M |
com.letv.tv | 0M |
com.pplive.androidpad | 200M |
In step S104, after smart machine receives Disk Quota Technique information, parse the application in information packet name and
Corresponding Disk Quota Technique size, then the Disk Quota Technique of each application is recorded in Disk Quotas configuration file, then to answer
With the disk space of the corresponding limit of distribution, if Disk Quota Technique changes, Disk Quotas configuration file also can synchronous refresh, from
And meet the new disk of each application in time and use quota demand, during application operation, device systems to the application of operation into
Row monitoring makes the size of data of application cache be no more than the disk space of distribution, to realize effective management to Disk Quotas.
The content of Disk Quotas configuration file can be updated to table three:
Table three
packagename | UID | Value |
com.youku.tv | 10093 | 200M |
com.qiyi.video | 10095 | 800M |
com.sohutv.tv | 10097 | 200M |
com.tencent.qqlivehd | 10098 | 200M |
com.letv.tv | 10099 | 0M |
com.pplive.androidpad | 10100 | 200M |
Specifically, as shown in Fig. 2, the step S104 is specifically included:
S201, execution quota configuration orders are that application distributes the limit corresponding disk space;
Device systems execute quota configuration orders on backstage, and it is using owning user point specially to execute edquota orders
With corresponding Disk Quota Technique size Value, executing edquota command formats is:Edquota-u 10093, u therein are indicated
What is configured applies packet name.
Soft or hard limits value in S202, modification disk partition/mnt/sdcard is corresponding limit value.
This step is the content changed the soft or hard limits value in disk partition/mnt/sdcard and be Value, completes disk and matches
The configuration of volume, such as:
edquota -u 10093
Filesystem blocks soft hard inodes soft hard
/mnt/sdcard 80 400000 400000 10 0 0
edquota -u 10095
Filesystem blocks soft hard inodes soft hard
/mnt/sdcard 80 200000 200000 10 0 0
Application in the present embodiment is Video Applications, because the disk space needed for Video Applications is larger, depending on
When frequency data buffering, it will by the management and control of inventive disk quota control method, when beyond Disk Quota Technique, quotas administered clothes
Coercive procedure is exited in business, as com.pplive.androidpad it is data cached more than 200M when, using due to can not be to disk
IO read-write error compulsory withdrawals will be generated by continuing read-write.
Further include step after the step S104:
When application provider buys the Disk Quota Technique of the application on intelligent devices to equipment supplier again, equipment supplies
It answers the management server of quotient to broadcast this to the smart machine using new Disk Quota Technique, is synchronized by the smart machine.When
It when increasing using required resource, needs to ask more disk space access rights, so needing to control disk resource
Equipment supplier apply bigger Disk Quota Technique.
The embodiment of the present invention is exactly to connect smart machine by the management server of network and equipment supplier, is managed in real time
Manage Disk Quota Technique, application provider buys Disk Quota Technique to equipment supplier, then by equipment supplier management server by magnetic
Disk limit is broadcasted to the online smart machine of the whole network, and smart machine then realizes limit control by the Disk Quota Technique service of equipment backstage
It makes, when application disk is by limited time, application provider buys the Disk Quota Technique of bigger to equipment supplier again, to obtain after payment
To the disk space of bigger, such smart machine will be the disk space that corresponding application distributes bigger, to realize charge
Control management disk space.
A specific embodiment by toll control hyperdisk space is provided below, as shown in Figure 3 comprising step:
S301, application provider buy Disk Quota Technique to equipment supplier;
S302, equipment supplier management server the Disk Quota Technique of the application is broadcasted to the whole network online equipment;
S303, equipment realize Disk Quota Technique management by backstage Disk Quota Technique service;
S304, when application disk by limited time, compulsory withdrawal simultaneously sends out exception reporting to application provider;
S305, application provider buy bigger Disk Quota Technique to equipment supplier again, and pay more expenses;
S306, equipment supplier management server new Disk Quota Technique is broadcasted to the whole network online equipment;
S307, equipment application obtain more disk spaces according to new Disk Quota Technique.
The present invention is specifically described below by a specific embodiment.
User 1 is mounted with youku.com's Video Applications on the device 1, and the UID of the application is 10093, opens youku.com's Video Applications
Before carrying out video data buffering, youku.com's media server, disk pipe of youku.com's media server to equipment supplier need to be connected to
Reason server sends out request, obtains the Disk Quota Technique of application provider's purchase, and Disk Management Service device is inquired its database and obtained
The Disk Quota Technique size of application provider's purchase is 200M, and equipment backstage disk management is by UID is monitored in video display process
10093 Disk Quota Technique is no more than 200M.
User 2 installs iqiyi.com Video Applications in equipment 2, and the UID of the application is 10095, open iqiyi.com apply into
Before row video data buffering, iqiyi.com media server, disk of the iqiyi.com media server to equipment supplier need to be connected to
Management server sends out request, obtains the Disk Quota Technique of purchase, and Disk Management Service device inquires its database and obtains answering provider
The Disk Quota Technique size of purchase is 800M, and equipment backstage disk management will monitor the disk that UID is 10095 in video display process
Limit is no more than 800M.
Youku.com's video-see video in the use equipment 1 of user 1, while user 2 uses the iqiyi.com video in equipment 2
When watching video, if the data that are cached of two applications more than 200M when, user 1 can not carry out video buffer on the device 1,
It is played interrupting;And user 2 can continue video buffer in equipment 2, normal play.
User 3 is mounted with LeEco and iqiyi.com Video Applications respectively in equipment 3, and the UID of LeEco application is 10099, love
The UID of strange skill Video Applications is 10095, and at the same time opening, is ready for video data buffered play, is supplied at this time according to equipment
It is respectively 0M to answer the Disk Quotas number that the management server queries of quotient are bought to Liang Jia application providers(LeEco application)And 800M
(Iqiyi.com Video Applications), i.e. LeEco application has not been obtained Disk Quotas and cannot be written and read to disk, and data buffering stops simultaneously
It exits.
When the application provider of iqiyi.com video has purchased the Disk Quotas data in device end again, such as it is reduced to
400M can re-start Disk Quotas limitation when user 2 and user 3 open equipment 2 and equipment 3 respectively.Caching is more than at this time
When 400M, iqiyi.com Video Applications will be unable to read and write disk buffering, and be forced to exit.
Method through the invention monitors the Video Applications caching read-write of different application, passes through network by equipment supplier
Disk Quota Technique size is controlled, the whole network all devices are managed collectively, establishes the disk limit for being applied to application of different packet names
Correspondence between volume realizes that the disk inside equipment effectively manages, it is ensured that when opening multiple video playing threads, into
The effective control of row.
Based on the above method, the present invention also provides a kind of, and the Disk Quotas control system based on android system is preferably real
Example is applied, as shown in Figure 4 comprising:
Analytic application module 100, for installing the configuration file in application, in parsing application installation package in smart machine,
The packet name information and identification information of application are obtained, and will be in the packet name of application and identification record to a Disk Quotas configuration file;
The packet name information and mark for being used for that application is obtained when installing application on intelligent devices is arranged in this analytic application module 100
Then the above- mentioned information got is recorded in the Disk Quotas configuration file on smart machine, matches in the disk by information
In volume configuration file, there are three category informations:Packet name, mark, Disk Quota Technique, analytic application module 100 get packet name information with
And after identification information, above- mentioned information is recorded in Disk Quotas configuration file, Disk Quota Technique information is then added by other modules
Into Disk Quotas configuration file.
Request sending module 200, for after application starts, acquisition disk to be sent out to the management server of equipment supplier
The request of quota;Request sending module 200 is arranged on intelligent devices, for being asked to the transmission of the management server of equipment supplier
It asks, to obtain Disk Quotas, when sending request, also the management server will be sent to using the information of packet name, so as to pipe
Disk Quota Technique information of the reason whois lookup to corresponding application.
Limit returns to module 300, and the Disk Quota Technique for finding the application returns to the Disk Quota Technique information found
To smart machine;This limit returns to module 300 and is arranged in the management server, and asking for Disk Quotas is obtained receiving
After asking, the Disk Quota Technique that the application provider of the application is bought is searched, then Disk Quota Technique information is back to smart machine.
The Disk Quota Technique information that the application that application provider is bought is stored in the database of management server, as shown in upper table two,
It has recorded the packet name of application and Disk Quota Technique information, and the information provided by the table can get the disk limit of each application
Volume information, such limit, which returns to module 300, to return to smart machine by the Disk Quota Technique information for getting application.
When some application needs the disk space of bigger, it is necessary to more purchase amount of money are paid to equipment supplier,
And the Disk Quota Technique corresponding to each application is recorded by the management server of equipment supplier, thereby realize by charge come
Control each purpose for applying possessed disk space.When the Disk Quota Technique that application provider is bought changes, equipment
New Disk Quota Technique information will be sent to smart machine by the management server of supplier, be synchronized by smart machine, from
And realize the synchronization of Disk Quota Technique size, this realizes the dynamic adaptation of Disk Quota Technique, and Disk Quota Technique information real-time synchronization is convenient for
Dynamic in real time is carried out to equipment application Disk Quota Technique to manage.
Then disk space distribution module 400 is answered for Disk Quota Technique to be recorded in Disk Quotas configuration file for this
With the disk space of the corresponding limit of distribution, and to being monitored using operational process, its size of data cached is made to be no more than point
The disk space matched.This disk space distribution module 400 is arranged on intelligent devices, is returned receiving limit return module 300
After the Disk Quota Technique information returned, the Disk Quota Technique of the application can be recorded in Disk Quotas configuration file above-mentioned, thus will
Three category informations of application are all recorded on Disk Quotas configuration file.Then it is the disk space of the corresponding limit of application distribution,
If Disk Quota Technique changes, Disk Quotas configuration file also can synchronous refresh, during application operation, device systems pair
The application of operation is monitored, and so that the size of data of application cache is no more than the disk space of distribution, is matched to disk to realize
Effective management of volume.
Further, the system also includes:
Load-on module for after android system kernel starts compiling, obtaining quota source codes, and generates quota lives
The execution file of order executes quota open commands after kernel loaded, opens limit distribution service.Quota is by conduct
One background service lives forever, to being monitored corresponding to application, to ensure that the data of each application cache are no more than the disk of distribution
Space.
Further, as shown in figure 5, the disk space distribution module 400 specifically includes:
Dispensing unit 410 is that application distributes the limit corresponding disk space for executing quota configuration orders;Configuration
Unit 410 executes quota configuration orders on backstage, and it is corresponding using owning user distribution specially to execute edquota orders
Disk Quota Technique size Value, executing edquota command formats is:Edquota-u 10093, what u expressions therein to be configured
UID is indicated using packet name, 10093.
Unit 420 is changed, is corresponding limit value for changing the soft or hard limits value in disk partition/mnt/sdcard.
Modification unit 420 is used for changing the content that the soft or hard limits value in disk partition/mnt/sdcard is Value, completes disk and matches
The configuration of volume.
Further, the system also includes:
Synchronization module, for buying the disk of the application on intelligent devices to equipment supplier again when application provider
When limit, this is broadcasted using new Disk Quota Technique to the smart machine, is synchronized by the smart machine.Such as some application
In use, the overabundance of data buffered, then its application provider will buy more disks to equipment supplier
Limit, and by the new Disk Quota Technique of the record management server of equipment supplier, when the Disk Quota Technique that application provider is bought
When changing, new Disk Quota Technique information will be sent to smart machine by the management server of equipment supplier, by intelligence
Equipment synchronizes, to realize the synchronization of Disk Quota Technique size, to realize the dynamic adaptation of Disk Quota Technique, Disk Quota Technique
Information real-time synchronization manages convenient for carrying out dynamic in real time to equipment application Disk Quota Technique.
It has been described in detail in the method for technical detail in front about above-mentioned modular unit, so it will not be repeated.
In conclusion the present invention carries out disk using the disk management characteristic of Linux to each application port of different UID
Limit controls, and realizes effective storage resource management, and guarantee is multiple to apply when carrying out data buffering, and equipment can be normal
Operation.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of Disk Quotas control method based on android system, which is characterized in that including step:
A, the configuration file in application, in parsing application installation package is installed in smart machine, obtains the packet name information and mark of application
Know information, and will be in the packet name of application and identification record to a Disk Quotas configuration file;
B, after application starts, the application of smart machine is sent out to the management server of equipment supplier obtains Disk Quotas
Request;
C, the management server finds the Disk Quota Technique of the application, and the Disk Quota Technique information found, which is back to intelligence, to be set
It is standby;
D, Disk Quota Technique is recorded in Disk Quotas configuration file smart machine, is then the magnetic of the corresponding limit of application distribution
Disk space, and to being monitored using operational process, its size of data cached is made to be no more than the disk space of distribution;
The step B is specifically included:
Smart machine sends out request by connecting internet to the management server of equipment supplier, when sending out request, will answer
It is sent to management server with the information of packet name.
2. the Disk Quotas control method according to claim 1 based on android system, which is characterized in that the step
In rapid C, application provider buys the Disk Quota Technique of the application on intelligent devices to equipment supplier in advance, equipment supplier's
After management server receives the request for obtaining Disk Quota Technique, the Disk Quota Technique that the application provider of the application is bought is searched,
The Disk Quota Technique information found is back to the smart machine.
3. the Disk Quotas control method according to claim 2 based on android system, which is characterized in that the step
Further include after rapid D:When application provider buys the Disk Quota Technique of the application on intelligent devices to equipment supplier again,
The management server of equipment supplier broadcasts this to the smart machine using new Disk Quota Technique, is carried out by the smart machine same
Step.
4. the Disk Quotas control method according to claim 1 based on android system, which is characterized in that the step
Before rapid A, after android system kernel starts compiling, quota source codes are obtained, and generate the execution file of quota orders,
After kernel loaded, quota open commands are executed, open limit distribution service.
5. the Disk Quotas control method according to claim 4 based on android system, which is characterized in that the step
Rapid D is specifically included:
D1, execution quota configuration orders are that application distributes the limit corresponding disk space;
Soft or hard limits value in D2, modification disk partition/mnt/sdcard is corresponding limit value.
6. the Disk Quotas control method according to claim 1 based on android system, which is characterized in that described to answer
With for Video Applications.
7. a kind of Disk Quotas control system based on android system, which is characterized in that including:
Analytic application module, for being installed in smart machine in application, parsing the configuration file in application installation package, acquisition is applied
Packet name information and identification information, and will be in the packet name of application and identification record to a Disk Quotas configuration file;
Request sending module, for after application starts, being sent out to the management server of equipment supplier and obtaining Disk Quotas
Request;
Limit returns to module, and the Disk Quota Technique information found is back to intelligence by the Disk Quota Technique for finding the application
Equipment;
Then disk space distribution module is the application distribution for Disk Quota Technique to be recorded in Disk Quotas configuration file
The disk space of corresponding limit, and to being monitored using operational process, its size of data cached is made to be no more than the magnetic of distribution
Disk space.
8. the Disk Quotas control system according to claim 7 based on android system, which is characterized in that further include:
Load-on module, for after android system kernel starts compiling, obtaining quota source codes, and generate quota orders
File is executed, after kernel loaded, executes quota open commands, opens limit distribution service.
9. the Disk Quotas control system according to claim 7 based on android system, which is characterized in that the magnetic
Disk space allocation module specifically includes:
Dispensing unit is that application distributes the limit corresponding disk space for executing quota configuration orders;
Unit is changed, is corresponding limit value for changing the soft or hard limits value in disk partition/mnt/sdcard.
10. the Disk Quotas control system according to claim 8 based on android system, which is characterized in that also wrap
It includes:
Synchronization module, for buying the Disk Quota Technique of the application on intelligent devices to equipment supplier again when application provider
When, this is broadcasted using new Disk Quota Technique to the smart machine, is synchronized by the smart machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216738.1A CN105094692B (en) | 2014-05-22 | 2014-05-22 | A kind of Disk Quotas control method and system based on android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216738.1A CN105094692B (en) | 2014-05-22 | 2014-05-22 | A kind of Disk Quotas control method and system based on android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105094692A CN105094692A (en) | 2015-11-25 |
CN105094692B true CN105094692B (en) | 2018-07-13 |
Family
ID=54575254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410216738.1A Active CN105094692B (en) | 2014-05-22 | 2014-05-22 | A kind of Disk Quotas control method and system based on android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105094692B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653631B (en) * | 2015-12-25 | 2020-08-14 | 北京奇虎科技有限公司 | Database management method and device |
CN106326013A (en) * | 2016-08-25 | 2017-01-11 | 浪潮(北京)电子信息产业有限公司 | Disk quota management system and method for distributed file system |
CN109189330A (en) * | 2018-08-08 | 2019-01-11 | 黄河科技学院 | A kind of distributed disk management method in android system |
CN110008188B (en) * | 2019-03-31 | 2022-11-18 | 华南理工大学 | External storage quota system of application software at file system level |
CN110427159B (en) * | 2019-08-02 | 2022-08-26 | 国电南瑞科技股份有限公司 | Container disk quota limiting method and device supporting directory level |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101808139A (en) * | 2010-03-31 | 2010-08-18 | 重庆索伦互联网信息服务有限公司 | Data storage system in cloud environment |
CN102456048A (en) * | 2010-10-28 | 2012-05-16 | 无锡江南计算技术研究所 | Method and system for processing mass data |
CN102624555A (en) * | 2012-03-07 | 2012-08-01 | 郑州市景安计算机网络技术有限公司 | Method for automatically managing a plurality of virtual hosts under linux |
CN103618767A (en) * | 2013-11-15 | 2014-03-05 | 华为技术有限公司 | Virtual machine configuration method and related equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10067940B2 (en) * | 2012-03-02 | 2018-09-04 | International Business Machines Corporation | Enhanced storage quota management for cloud computing systems |
-
2014
- 2014-05-22 CN CN201410216738.1A patent/CN105094692B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101808139A (en) * | 2010-03-31 | 2010-08-18 | 重庆索伦互联网信息服务有限公司 | Data storage system in cloud environment |
CN102456048A (en) * | 2010-10-28 | 2012-05-16 | 无锡江南计算技术研究所 | Method and system for processing mass data |
CN102624555A (en) * | 2012-03-07 | 2012-08-01 | 郑州市景安计算机网络技术有限公司 | Method for automatically managing a plurality of virtual hosts under linux |
CN103618767A (en) * | 2013-11-15 | 2014-03-05 | 华为技术有限公司 | Virtual machine configuration method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105094692A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094692B (en) | A kind of Disk Quotas control method and system based on android system | |
CN103544153B (en) | A kind of data-updating method based on data base and system | |
US20100162330A1 (en) | Method, apparatus and system for dynamic playlist over-ride | |
CN110278231A (en) | A kind of data subscription distribution method and system | |
CN106533713B (en) | Application deployment method and device | |
CA2667670C (en) | Media inventory service | |
CN112596762A (en) | Rolling upgrading method and device | |
CN111931246A (en) | File management method, equipment and medium based on block chain | |
US11494468B2 (en) | Rights management of cloud resources | |
US20130254318A1 (en) | Dynamic message retrieval | |
CN113034233A (en) | Method, apparatus, medium, and program product for allocating resources in a reading application | |
CN109657965A (en) | A kind of service resource allocation method, device, storage medium and processor | |
CN103369038A (en) | PaaS (platform as a service) management platform and method | |
US20150134861A1 (en) | Personal cloud storage chain service system and method | |
CN107438067A (en) | A kind of multi-tenant construction method and system based on mesos container cloud platforms | |
CN102158345B (en) | Method, device and system for data management | |
CN108259575A (en) | Advertisement broadcast method, system, self-service device and Advertisement Server | |
CN106302617B (en) | Data processing method and device applied to computing device | |
CN108595488B (en) | Data migration method and device | |
CN102202017A (en) | Support platform for digital media interactive service intelligent gateway | |
CN115250354A (en) | Resource allocation method, device, equipment and storage medium based on block chain network | |
US9122400B2 (en) | Managing data set volume table of contents | |
CN105611332B (en) | A kind of Video service cut-in method and system | |
KR20110127434A (en) | Server, system and the method for on-line game patch | |
CN104166820A (en) | Data management method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |