CN105094692A - Disk quota control method and system based on Android system - Google Patents

Disk quota control method and system based on Android system Download PDF

Info

Publication number
CN105094692A
CN105094692A CN201410216738.1A CN201410216738A CN105094692A CN 105094692 A CN105094692 A CN 105094692A CN 201410216738 A CN201410216738 A CN 201410216738A CN 105094692 A CN105094692 A CN 105094692A
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.)
Granted
Application number
CN201410216738.1A
Other languages
Chinese (zh)
Other versions
CN105094692B (en
Inventor
田静
余潘虎
吕华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201410216738.1A priority Critical patent/CN105094692B/en
Publication of CN105094692A publication Critical patent/CN105094692A/en
Application granted granted Critical
Publication of CN105094692B publication Critical patent/CN105094692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a disk quota control method and system based on an Android system. The method comprises the steps of: A. when an intelligent device is installed with an application, analyzing a configuration file in an application installation package, acquiring package name information and identification information of the application, and recording a package name and an identifier of the application into a disk quota configuration file; B. after the application is started, the application of the intelligent device sending a request for acquiring a disk quota to a management server of a device provider; C. the management server searching out a disk limit of the application, and returning found disk limit information to the intelligent device; and D. the intelligent device recording the disk limit into the disk quota configuration file, then distributing a disk space corresponding to the limit for the application, and performing monitoring on an application running process so as to enable the dimension of data cached by the application not to exceed the distributed disk space. The disk quota control method and system based on the Android system ensure that the device can normally run when a plurality of applications are subjected to data buffering.

Description

A kind of Disk Quotas control method based on android system and system
Technical field
The present invention relates to disk management field, particularly relate to a kind of Disk Quota Technique control method based on android system and system.
Background technology
From single-definition (SD), strengthen sharpness (ED), high definition (HD) again to full HD (FULLHD), ultra high-definition (UHD), the demand of user to video source sharpness improves constantly, and this just makes each Video Applications more intensively seize storage resources in equipment in system background.In android system, when opening multiple video playback thread, each application can ask higher disk space to carry out buffers video data, and effective control will inevitably affect the normal operation of equipment.It is not only Video Applications, other application are also increasing to the demand of disk space, but existing android system disk management method also effectively cannot control the Disk Quotas of each application, cause application operationally, often exceed limit, cause applying compulsory withdrawal.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of Disk Quotas control method based on android system and system, be intended to solve the problem that existing disk management method effectively cannot control Disk Quotas.
Technical scheme of the present invention is as follows:
Based on a Disk Quotas control method for android system, wherein, comprise step:
A, smart machine install application time, resolve application installation kit in configuration file, obtain application bag name information and identification information, and by application bag name and identification record in a Disk Quotas configuration file;
B, after application start, this application of smart machine sends to the management server of equipment supplier the request obtaining Disk Quotas;
C, described management server find the Disk Quota Technique of this application, and the Disk Quota Technique information found is back to smart machine;
Disk Quota Technique is recorded in Disk Quotas configuration file by D, smart machine, then for this application distributes the disk space of corresponding limit, and monitors application operational process, makes the size of data of its buffer memory be no more than the disk space of distribution.
The described Disk Quotas control method based on android system, wherein, in described step C, application provider buys this to equipment supplier in advance and is applied in Disk Quota Technique on smart machine, after the management server of equipment supplier receives the request obtaining Disk Quota Technique, the Disk Quota Technique that the application provider of searching this application buys, is back to this smart machine by the Disk Quota Technique information found.
The described Disk Quotas control method based on android system, wherein, also comprise after described step D: when application provider buys to equipment supplier the Disk Quota Technique that this is applied on smart machine again, Disk Quota Technique new for this application is broadcast to this smart machine by the management server of equipment supplier, is undertaken synchronously by this smart machine.
The described Disk Quotas control method based on android system, wherein, before described steps A, after android system kernel starts compiling, obtain quota source code, and generate the execute file of quota order, after kernel loads, perform quota open command, open limit distribution services.
The described Disk Quotas control method based on android system, wherein, described step D specifically comprises:
D1, execution quota configuration order are that application corresponding to this limit distributes at disk space;
Soft or hard limits value in D2, amendment disk partition/mnt/sdcard is corresponding limit value.
The described Disk Quotas control method based on android system, wherein, in described step C, when the Disk Quota Technique applied changes, is sent to smart machine by new Disk Quota Technique information, is undertaken synchronously by smart machine.
The described Disk Quota Technique distribution method based on android system, wherein, described in be applied as Video Applications.
Based on a Disk Quotas control system for android system, wherein, comprising:
Analytic application module, for smart machine install application time, resolve application installation kit in configuration file, obtain application bag name information and identification information, and by application bag name and identification record in a Disk Quotas configuration file;
Request sending module, for after application start, the management server to equipment supplier sends the request obtaining Disk Quotas;
Limit returns module, for finding the Disk Quota Technique of this application, the Disk Quota Technique information found is back to smart machine;
Disk space distribution module, for being recorded to by Disk Quota Technique in Disk Quotas configuration file, then for this application distributes the disk space of corresponding limit, and monitoring application operational process, making the size of data of its buffer memory be no more than the disk space of distribution.
The described Disk Quotas control system based on android system, wherein, also comprises:
Load-on module, for start compiling at android system kernel after, obtains quota source code, and generates the execute file of quota order, after kernel loads, performs quota open command, opens limit distribution services.
The described Disk Quotas control system based on android system, wherein, described disk space distribution module specifically comprises:
Dispensing unit is that application corresponding to this limit distributes at disk space for performing quota configuration order;
Amendment unit is corresponding limit value for the soft or hard limits value revised in disk partition/mnt/sdcard.
The described Disk Quotas control system based on android system, wherein, also comprises:
Synchronization module, for when application provider buys to equipment supplier the Disk Quota Technique that this is applied on smart machine again, is broadcast to this smart machine by Disk Quota Technique new for this application, is undertaken synchronously by this smart machine.
Beneficial effect: the present invention utilizes each application port of the disk management characteristic of Linux to different UID to carry out Disk Quota Technique control, achieves effective Storage Resource Management (SRM), ensure multiplely to be applied in when carrying out data buffering, equipment can run normally.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of 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 process flow diagram by toll control hyperdisk space specific embodiment in method of the present invention.
Fig. 4 is the structured flowchart of a kind of 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.
Embodiment
The invention provides a kind of Disk Quotas control method based on android system and system, for making object of the present invention, technical scheme and effect clearly, clearly, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the process flow diagram of a kind of Disk Quotas control method preferred embodiment based on android system of the present invention, and as shown in the figure, it comprises step:
S101, smart machine install application time, resolve application installation kit in configuration file, obtain application bag name information and identification information, and by application bag name and identification record in a Disk Quotas configuration file;
S102, after application start, this application of smart machine sends to the management server of equipment supplier the request obtaining Disk Quotas;
S103, described management server find the Disk Quota Technique of this application, and the Disk Quota Technique information found is back to smart machine;
Disk Quota Technique is recorded in Disk Quotas configuration file by S104, smart machine, then for this application distributes the disk space of corresponding limit, and monitors application operational process, makes the size of data of its buffer memory be no more than the disk space of distribution.
The embodiment of the present invention realizes based on android system, and the kernel of Android operation system belongs to a branch of linux kernel, has Disk Quota Technique scheduling and the management function of Linux.Linux self provides the compile option supporting Disk Quota Technique, and Quota is wherein open source projects, and can obtain and can compile source code, and Quota can distribute Disk Quota Technique for different user control and carry out operation monitoring.
Android gives each APK(application) the independent user's space of course allocation one, each user's space indicates with UID, a corresponding Linux user, will be its establishment sandbox, and prevent other application programs from affecting during system cloud gray model.
Before described step S101, after android system kernel starts compiling, obtain quota source code, and generate the execute file of quota order, after kernel loads, perform quota open command, open limit distribution services.
In the specific implementation, first in Android kernel source code root directory, makemenuconfig(kernel setup is performed) open linux kernel configuration, enter file system and configure sub-interface, beat * before quotasupport option and confirm, complete in Android the support checking Disk Quotas.Then after android system kernel starts compiling, perform apt-getsourcequota(and obtain quota source-code instruction) obtain quota source code and will the execute file of quota order be generated in kernel after performing ./configure and make, wherein, quotaon represents that opening disk space limits, the disk space size of edquota compiles user.
After Android kernel loads completes, quotas administered service need be opened in the initialization files init.rc of device systems, namely perform quota open command/system/bin/quotaon – au, a represent the disk partition of limit be/mnt/sdcard, u represent that the disk opening user's space limits.
Quota will live forever as a background service, monitor the corresponding process of application, to guarantee that the data of each application cache are no more than the disk space of distribution.
In step S101, when applying installation, first resolve the configuration file AndroidManifest.xml in application installation kit, obtain bag name information (packagename information) and the identification information (nodal information that android:sharedUserId(is corresponding with signature) of application), system connected applications signing messages be application distribute corresponding user's space and in system uniquely a changeless UID as mark, different application will distribute different UID because bag name and signature are all different, then by application bag name and identification record in a Disk Quotas configuration file, as:
PIDPRCPU%S#THRVSSRSSPCYUIDName
497900%S16843792K87956Kbgu0_a100com.pplive.androidpad
510700%S16876992K65664Kbgu0_a99com.letv.tv519210%S22848544K61308Kbgu0_a98com.tencent.qqlivehd529511%S29961796K111476Kbgu0_a97com.sohutv.tv550810%S19912432K88160Kfgu0_a95com.qiyi.video560310%S23878440K47156Kbgu0_a93com.youku.tv
Above-mentioned Name option is bag name to be called for short, and in Android, share UID need at Manifest(system file) increase android:sharedUserId attribute in node, and use corresponding signature instrument to sign for it.The UID of Android application is all greater than 10000, and represent with u0_a [num] form, corresponding numerical value is 10000+num, and such as u0_a100 represents that UID is that 10100, bgu0_a99 represents that UID is 10099, the like.
According to the method described above, the form of Disk Quotas configuration file can be arranged according to the mode of table one, and wherein Value represents 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
Described Disk Quotas configuration file is stored on smart machine, after Disk Quota Technique service in equipment starts, can find the Disk Quota Technique of each application and manage successively by this Disk Quotas configuration file in equipment.
In step s 102, after application start, this application of smart machine sends the request obtaining Disk Quotas, to ask disk read-write authority to carry out data buffer storage to the management server (also claiming Disk Management Service device) of equipment supplier; Specifically sending request by connecting Internet to the management server of equipment supplier, when sending request, also the information of application bag name being sent to management server, so that management server finds the Disk Quota Technique information of corresponding application.
In step s 103, application provider buys this to equipment supplier in advance and is applied in Disk Quota Technique on smart machine, after the management server of equipment supplier receives the request obtaining Disk Quota Technique, according to the Disk Quota Technique that application bag name (packagename) application provider that finds this application buys, then Disk Quota Technique information is back to smart machine.
For Video Applications, application provider is in order to ensure the normal play of ultrahigh resolution video source, often need larger disk space, therefore need to ask higher Disk Quota Technique size, namely by the Disk Quota Technique that toll control is respectively applied, if desired large Disk Quota Technique, then need to pay more to buy the amount of money, ensure that each application has a rational Disk Quota Technique, and can not occur respectively to be applied in the problem that system background seizes device storage resource.When the Disk Quota Technique that application provider buys changes, new Disk Quota Technique information will be sent to smart machine by the management server of equipment supplier, undertaken synchronously by smart machine, thus realize the synchronous of Disk Quota Technique size, this achieve the dynamic adaptation of Disk Quota Technique, Disk Quota Technique information real-time synchronization, is convenient to carry out real-time dynamic management to equipment application Disk Quota Technique.Store the Disk Quota Technique of each application in the database of equipment supplier, its storage format can be arranged according to table two mode, and one is classified as application bag name, and one is classified as Disk Quota Technique size:
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 bag name of the application in information and corresponding Disk Quota Technique size, then the Disk Quota Technique of each application is recorded in Disk Quotas configuration file, then for application distributes the disk space of corresponding limit, if Disk Quota Technique changes, then Disk Quotas configuration file also can synchronous refresh, thus meet the new disk use quota demand of each application in time, in application operational process, device systems is monitored the application run, the size of data of application cache is made to be no more than the disk space of distribution, thus the effective management realized 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
Concrete, as shown in Figure 2, described step S104 specifically comprises:
S201, execution quota configuration order are that application corresponding to this limit distributes at disk space;
Device systems performs quota configuration order on backstage, being specially and performing edquota order is that application owning user distributes corresponding Disk Quota Technique size Value, performing edquota command format is: edquota – u10093, u wherein represent the application bag name that will configure.
Soft or hard limits value in S202, amendment disk partition/mnt/sdcard is corresponding limit value.
This step is the soft or hard limits value in amendment disk partition/mnt/sdcard is the content of Value, completes the configuration of Disk Quotas, as:
edquota-u10093
Filesystemblockssofthardinodessofthard
/mnt/sdcard804000004000001000
edquota-u10095
Filesystemblockssofthardinodessofthard
/mnt/sdcard802000002000001000
Video Applications is applied as in the present embodiment, because the disk space needed for Video Applications is larger, so when carrying out buffers video data, the management and control of inventive disk quota control method will be subject to, when exceeding Disk Quota Technique, quotas administered service coercive procedure is exited, as data cached in com.pplive.androidpad more than 200M time, apply due to cannot to disk continue read-write will produce the compulsory withdrawal of IO read-write error.
Also step is comprised after described step S104:
When application provider buys to equipment supplier the Disk Quota Technique that this is applied on smart machine again, Disk Quota Technique new for this application is broadcast to this smart machine by the management server of equipment supplier, is undertaken synchronously by this smart machine.When applying resource requirement and being increasing, need to ask more disk space rights of using, so need to the larger Disk Quota Technique of the equipment supplier's application controlling disk resource.
The embodiment of the present invention is exactly be connected with the management server of equipment supplier by network by smart machine, real-time management Disk Quota Technique, application provider buys Disk Quota Technique to equipment supplier, by the management server of equipment supplier, Disk Quota Technique is broadcast to the online smart machine of the whole network again, smart machine then realizes limit by the Disk Quota Technique service of equipment backstage and controls, when application disk is by limited time, application provider buys larger Disk Quota Technique to equipment supplier again, pay rear thus obtain larger disk space, such smart machine will be that corresponding application distributes larger disk space, thus realize toll control hyperdisk space.
There is provided one below by the specific embodiment in toll control hyperdisk space, as shown in Figure 3, it comprises step:
S301, application provider buy Disk Quota Technique to equipment supplier;
The Disk Quota Technique of this application is broadcast to the online equipment of the whole network by the management server of S302, equipment supplier;
S303, equipment realize Disk Quota Technique management by backstage Disk Quota Technique service;
S304, when the disk of application is by limited time, compulsory withdrawal also sends exception reporting to application provider;
S305, application provider buy larger Disk Quota Technique to equipment supplier again, and pay more expenses;
New Disk Quota Technique is broadcast to the online equipment of the whole network by the management server of S306, equipment supplier;
The application of S307, equipment obtains more disk space according to new Disk Quota Technique.
Below by a specific embodiment, the present invention is specifically described.
User 1 has installed excellent cruel Video Applications on the device 1, the UID of this application is 10093, open before excellent cruel Video Applications carries out buffers video data, excellent cruel media server need be connected to, excellent cruel media server sends request to the Disk Management Service device of equipment supplier, obtain the Disk Quota Technique that application provider buys, Disk Management Service device inquire about its database be applied provider buy Disk Quota Technique size be 200M, in video display process equipment backstage disk management by monitoring UID be 10093 Disk Quota Technique can not more than 200M.
User 2 installs and likes strange skill Video Applications on equipment 2, the UID of this application is 10095, open before liking that buffers video data is carried out in the application of strange skill, need be connected to and like strange skill media server, like that strange skill media server sends request to the Disk Management Service device of equipment supplier, obtain the Disk Quota Technique bought, the Disk Quota Technique size that its database obtains answering provider to buy inquired about by Disk Management Service device is 800M, and in video display process, equipment backstage disk management can not more than 800M by the Disk Quota Technique that monitoring UID is 10095.
The excellent cruel video-see video on equipment 1 is used, when simultaneously user 2 uses the strange skill video-see of the love on equipment 2 video, if when the data of two methods institute buffer memory are all more than 200M, user 1 cannot carry out video buffer on the device 1, interruption is play as user 1; And user 2 can proceed video buffer on equipment 2, normal play.
User 3 has installed respectively and has found pleasure in depending on and like strange skill Video Applications on equipment 3, the happy UID depending on application is 10099, like that the UID of strange skill Video Applications is 10095, and open simultaneously, buffers video data broadcasting is carried out in preparation, now be respectively 0M(according to the management server queries of equipment supplier to the Disk Quotas number that Liang Jia application provider buys happy depending on application) and 800M(like strange skill Video Applications), namely pleasure does not obtain Disk Quotas depending on application and can not read and write disk, and data buffering stops and exiting.
When liking that the application provider of strange skill video have purchased the Disk Quotas data in device end again, as being reduced to 400M, when user 2 and user 3 open equipment 2 and equipment 3 respectively, Disk Quotas restriction can be re-started.When now buffer memory is more than 400M, likes that strange skill Video Applications cannot be read and write disk buffering, and be forced to exit.
By method of the present invention, the Video Applications buffer memory read-write of monitoring different application, by equipment supplier by network control Disk Quota Technique size, unified management is carried out to the whole network all devices, corresponding relation between the Disk Quota Technique being applied to application setting up different bag name, the disk realizing device interior effectively manages, and ensure that when opening multiple video playback thread, effectively controlling.
Based on said method, the present invention also provides a kind of Disk Quotas control system preferred embodiment based on android system, and as shown in Figure 4, it comprises:
Analytic application module 100, for smart machine install application time, resolve application installation kit in configuration file, obtain application bag name information and identification information, and by application bag name and identification record in a Disk Quotas configuration file; This analytic application module 100 is arranged on smart machine, be used for obtaining the bag name information and identification information applied when installing and applying, then the above-mentioned information got is recorded in the Disk Quotas configuration file on smart machine, in this Disk Quotas configuration file, there are three category informations: bag name, mark, Disk Quota Technique, after analytic application module 100 gets bag name information and identification information, above-mentioned information be recorded in Disk Quotas configuration file, Disk Quota Technique information is then added in Disk Quotas configuration file by other modules.
Request sending module 200, for after application start, the management server to equipment supplier sends the request obtaining Disk Quotas; Request sending module 200 is arranged on smart machine, send request for the management server to equipment supplier, to obtain Disk Quotas, when sending request, also the information of application bag name is sent to described management server, so that management server finds the Disk Quota Technique information of corresponding application.
Limit returns module 300, for finding the Disk Quota Technique of this application, the Disk Quota Technique information found is back to smart machine; This limit returns module 300 and is arranged in described management server, and it is after receiving the request obtaining Disk Quotas, the Disk Quota Technique that the application provider of searching this application buys, then Disk Quota Technique information is back to smart machine.The Disk Quota Technique information of the application that application provider buys is stored in the database of management server, as above shown in table two, it have recorded bag name and the Disk Quota Technique information of application, the information provided by this table can get the Disk Quota Technique information of each application, and such limit returns module 300 just can return to smart machine by the Disk Quota Technique information getting application.
When certain application needs larger disk space, just need to pay to equipment supplier more to buy the amount of money, and record the Disk Quota Technique corresponding to each application by the management server of equipment supplier, so just achieve the object being controlled the disk space that each application has by charge.When the Disk Quota Technique that application provider buys changes, new Disk Quota Technique information will be sent to smart machine by the management server of equipment supplier, undertaken synchronously by smart machine, thus realize the synchronous of Disk Quota Technique size, this achieve the dynamic adaptation of Disk Quota Technique, Disk Quota Technique information real-time synchronization, is convenient to carry out real-time dynamic management to equipment application Disk Quota Technique.
Disk space distribution module 400, for being recorded to by Disk Quota Technique in Disk Quotas configuration file, then for this application distributes the disk space of corresponding limit, and monitoring application operational process, making the size of data of its buffer memory be no more than the disk space of distribution.This disk space distribution module 400 is arranged on smart machine, receiving after limit returns the Disk Quota Technique information that module 300 returns, the Disk Quota Technique of this application can be recorded in aforesaid Disk Quotas configuration file, thus three category informations of application are all recorded on Disk Quotas configuration file.Then for this application distributes the disk space of corresponding limit, if Disk Quota Technique changes, then Disk Quotas configuration file also can synchronous refresh, in application operational process, device systems is monitored the application run, make the size of data of application cache be no more than the disk space of distribution, thus realize the effective management to Disk Quotas.
Further, described system also comprises:
Load-on module, for start compiling at android system kernel after, obtains quota source code, and generates the execute file of quota order, after kernel loads, performs quota open command, opens limit distribution services.Quota will live forever as a background service, monitor, to guarantee that the data of each application cache are no more than the disk space of distribution corresponding to application.
Further, as shown in Figure 5, described disk space distribution module 400 specifically comprises:
Dispensing unit 410 is that application corresponding to this limit distributes at disk space for performing quota configuration order; Dispensing unit 410 performs quota configuration order on backstage, being specially and performing edquota order is that application owning user distributes corresponding Disk Quota Technique size Value, performing edquota command format is: edquota – u10093, u wherein represent the application bag name that will configure, and 10093 represent UID.
Amendment unit 420 is corresponding limit value for the soft or hard limits value revised in disk partition/mnt/sdcard.The soft or hard limits value that amendment unit 420 is used in amendment disk partition/mnt/sdcard is the content of Value, completes the configuration of Disk Quotas.
Further, described system also comprises:
Synchronization module, for when application provider buys to equipment supplier the Disk Quota Technique that this is applied on smart machine again, is broadcast to this smart machine by Disk Quota Technique new for this application, is undertaken synchronously by this smart machine.Such as certain application in use, the overabundance of data of its buffering, so its application provider will buy more Disk Quota Technique to equipment supplier, and by the new Disk Quota Technique of the record management server of equipment supplier, when the Disk Quota Technique that application provider buys changes, new Disk Quota Technique information will be sent to smart machine by the management server of equipment supplier, undertaken synchronously by smart machine, thus realize the synchronous of Disk Quota Technique size, thus achieve the dynamic adaptation of Disk Quota Technique, Disk Quota Technique information real-time synchronization, be convenient to carry out real-time dynamic management to equipment application Disk Quota Technique.
Ins and outs about above-mentioned modular unit are existing in method above to be described in detail, therefore repeats no more.
In sum, the present invention utilizes each application port of the disk management characteristic of Linux to different UID to carry out Disk Quota Technique control, achieves effective Storage Resource Management (SRM), ensures multiplely to be applied in when carrying out data buffering, and equipment can run normally.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1., based on a Disk Quotas control method for android system, it is characterized in that, comprise step:
A, smart machine install application time, resolve application installation kit in configuration file, obtain application bag name information and identification information, and by application bag name and identification record in a Disk Quotas configuration file;
B, after application start, this application of smart machine sends to the management server of equipment supplier the request obtaining Disk Quotas;
C, described management server find the Disk Quota Technique of this application, and the Disk Quota Technique information found is back to smart machine;
Disk Quota Technique is recorded in Disk Quotas configuration file by D, smart machine, then for this application distributes the disk space of corresponding limit, and monitors application operational process, makes the size of data of its buffer memory be no more than the disk space of distribution.
2. the Disk Quotas control method based on android system according to claim 1, it is characterized in that, in described step C, application provider buys this to equipment supplier in advance and is applied in Disk Quota Technique on smart machine, after the management server of equipment supplier receives the request obtaining Disk Quota Technique, the Disk Quota Technique that the application provider of searching this application buys, is back to this smart machine by the Disk Quota Technique information found.
3. the Disk Quotas control method based on android system according to claim 2, it is characterized in that, also comprise after described step D: when application provider buys to equipment supplier the Disk Quota Technique that this is applied on smart machine again, Disk Quota Technique new for this application is broadcast to this smart machine by the management server of equipment supplier, is undertaken synchronously by this smart machine.
4. the Disk Quotas control method based on android system according to claim 1, it is characterized in that, before described steps A, after android system kernel starts compiling, obtain quota source code, and generate the execute file of quota order, after kernel loads, perform quota open command, open limit distribution services.
5. the Disk Quotas control method based on android system according to claim 4, it is characterized in that, described step D specifically comprises:
D1, execution quota configuration order are that application corresponding to this limit distributes at disk space;
Soft or hard limits value in D2, amendment disk partition/mnt/sdcard is corresponding limit value.
6. the Disk Quota Technique distribution method based on android system according to claim 1, is characterized in that, described in be applied as Video Applications.
7., based on a Disk Quotas control system for android system, it is characterized in that, comprising:
Analytic application module, for smart machine install application time, resolve application installation kit in configuration file, obtain application bag name information and identification information, and by application bag name and identification record in a Disk Quotas configuration file;
Request sending module, for after application start, the management server to equipment supplier sends the request obtaining Disk Quotas;
Limit returns module, for finding the Disk Quota Technique of this application, the Disk Quota Technique information found is back to smart machine;
Disk space distribution module, for being recorded to by Disk Quota Technique in Disk Quotas configuration file, then for this application distributes the disk space of corresponding limit, and monitoring application operational process, making the size of data of its buffer memory be no more than the disk space of distribution.
8. the Disk Quotas control system based on android system according to claim 7, is characterized in that, also comprise:
Load-on module, for start compiling at android system kernel after, obtains quota source code, and generates the execute file of quota order, after kernel loads, performs quota open command, opens limit distribution services.
9. the Disk Quotas control system based on android system according to claim 7, is characterized in that, described disk space distribution module specifically comprises:
Dispensing unit is that application corresponding to this limit distributes at disk space for performing quota configuration order;
Amendment unit is corresponding limit value for the soft or hard limits value revised in disk partition/mnt/sdcard.
10. the Disk Quotas control system based on android system according to claim 8, is characterized in that, also comprise:
Synchronization module, for when application provider buys to equipment supplier the Disk Quota Technique that this is applied on smart machine again, is broadcast to this smart machine by Disk Quota Technique new for this application, is undertaken synchronously by this smart machine.
CN201410216738.1A 2014-05-22 2014-05-22 A kind of Disk Quotas control method and system based on android system Active CN105094692B (en)

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 true CN105094692A (en) 2015-11-25
CN105094692B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653631A (en) * 2015-12-25 2016-06-08 北京奇虎科技有限公司 Database management method and apparatus
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
CN110008188A (en) * 2019-03-31 2019-07-12 华南理工大学 A kind of application software external memory limit system of file system level
CN110427159A (en) * 2019-08-02 2019-11-08 国电南瑞科技股份有限公司 A kind of container Disk Quotas method for limiting and device for supporting directory level

Citations (5)

* Cited by examiner, † Cited by third party
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
US20130232179A1 (en) * 2012-03-02 2013-09-05 International Business Machines Corporation Enhanced storage quota management for cloud computing systems
CN103618767A (en) * 2013-11-15 2014-03-05 华为技术有限公司 Virtual machine configuration method and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20130232179A1 (en) * 2012-03-02 2013-09-05 International Business Machines Corporation Enhanced storage quota management for cloud computing systems
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653631A (en) * 2015-12-25 2016-06-08 北京奇虎科技有限公司 Database management method and apparatus
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
CN110008188A (en) * 2019-03-31 2019-07-12 华南理工大学 A kind of application software external memory limit system of file system level
CN110008188B (en) * 2019-03-31 2022-11-18 华南理工大学 External storage quota system of application software at file system level
CN110427159A (en) * 2019-08-02 2019-11-08 国电南瑞科技股份有限公司 A kind of container Disk Quotas method for limiting and device for supporting directory level
CN110427159B (en) * 2019-08-02 2022-08-26 国电南瑞科技股份有限公司 Container disk quota limiting method and device supporting directory level

Also Published As

Publication number Publication date
CN105094692B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN105094692A (en) Disk quota control method and system based on Android system
CN103019791B (en) Software dispositions method and software deployment system
US20100162330A1 (en) Method, apparatus and system for dynamic playlist over-ride
CA2667670C (en) Media inventory service
CN106301865B (en) Data processing method and device applied to service providing device
CN103078965B (en) The IP address management method of virtual machine
CN101753936B (en) Configuration method of storage space and video server for video monitoring system
CN103649915A (en) Associated plugin management method, device and system
CN104301338A (en) Cloud platform based automatic deploying method for application system
CN112596762A (en) Rolling upgrading method and device
CN112230857B (en) Hybrid cloud system, hybrid cloud disk application method and data storage method
US11494468B2 (en) Rights management of cloud resources
CN103888492A (en) Memory management system and method
US20150134861A1 (en) Personal cloud storage chain service system and method
JP2011523476A (en) Method, apparatus and system for event-based content distribution and display
Mazumdar et al. Insights of trends and developments in cloud computing
CN102448077B (en) Content management method and content management system
CN102158345B (en) Method, device and system for data management
CN106302617B (en) Data processing method and device applied to computing device
CN104346101A (en) Dynamic storage space allocation system and method
CN102541878B (en) Method and device for storing project file in non-linear editing
Fornito et al. Broadcast Media Creation as a Service: Using Infrastructure-As-Code and the Public Cloud to Power On-Air Media Creation Platforms
CN112817691B (en) Resource allocation method, device, equipment and medium
CN116089301A (en) Component sharing method, device, electronic equipment and storage medium
Yang et al. Design and proposal of a next generation digital cable broadcasting service-based system using cloud storage computing environments

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