CN110222019B - Method and device for adjusting space occupied by file system - Google Patents
Method and device for adjusting space occupied by file system Download PDFInfo
- Publication number
- CN110222019B CN110222019B CN201910381548.8A CN201910381548A CN110222019B CN 110222019 B CN110222019 B CN 110222019B CN 201910381548 A CN201910381548 A CN 201910381548A CN 110222019 B CN110222019 B CN 110222019B
- Authority
- CN
- China
- Prior art keywords
- file system
- space
- information
- space information
- user data
- 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
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000005192 partition Methods 0.000 claims description 52
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 5
- 238000004519 manufacturing process Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000000694 effects Effects 0.000 abstract description 3
- 230000005540 biological transmission Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012356 Product development Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method and a device for adjusting the space occupied by a file system, wherein the method comprises the following steps: when a system of target equipment is started and a file system in the system of the target equipment is mounted, acquiring first space information occupied by a first user data file system in the mounted file system, wherein the first space information is used for indicating a storage space occupied by the first user data file system; acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating storage space occupied by the second user data file system; and adjusting the first space information according to the second space information and the third space information, wherein the third space information is used for indicating a preset reserved storage space in the memory. The invention solves the problem of lower space utilization rate of the file system in the related technology, thereby achieving the effect of improving the space utilization rate of the file system.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for adjusting a space occupied by a file system.
Background
With the continuous development and perfection of the operating system of the device, the intelligent operating system is increasingly promoted by various industries, in particular, the industries of mobile phones, flat plates, intelligent televisions and the like, the use proportion is higher and higher, and in the positioning of products, a plurality of versions of products are often pushed out, and the storage capacities of file systems of the plurality of versions of products can be different so as to adapt to different customer groups, and the competitiveness of the products is improved.
However, the capacity-sized memory of the file system of different versions cannot be compatible on the software on the same product development project (such as the version development of the application client), which prevents the quick iteration of the product version.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting the space occupied by a file system, which are used for at least solving the problem of low space utilization rate of the file system in the related technology.
According to an embodiment of the present invention, there is provided a method for adjusting a space occupied by a file system, including:
when a system of target equipment is started and a file system in the system of the target equipment is mounted, acquiring first space information occupied by a first user data file system in the mounted file system, wherein the first space information is used for indicating a storage space occupied by the first user data file system;
acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating storage space occupied by the second user data file system;
and adjusting the first space information according to the second space information and third space information, wherein the third space information is used for indicating a preset reserved storage space in the memory.
Optionally, adjusting the first spatial information according to the second spatial information and the third spatial information includes:
determining a difference between the second spatial information and the third spatial information;
determining the size of the storage space indicated by the difference as target space information;
and adjusting the first space information according to the relation between the target space information and the first space information.
Optionally, adjusting the first spatial information according to the relation between the target spatial information and the first spatial information includes:
determining a size relationship between the target spatial information and the first spatial information;
and under the condition that the target space information is larger than the first space information, adjusting the first space information occupied by the first user data file system into the target space information.
Optionally, before acquiring the second spatial information of the second user data file system reserved in the memory of the target device, the method further comprises:
initializing the second user data file system;
writing the second user data file system into a physical partition of the memory, and determining the second space information of the storage space occupied by the second user data file system in the physical partition.
According to another embodiment of the present invention, there is provided an apparatus for adjusting a space occupied by a file system, including:
the system comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring first space information occupied by a first user data file system in a mounted file system when a system of target equipment is started and the file system in the system of the target equipment is mounted, wherein the first space information is used for indicating the storage space occupied by the first user data file system;
a second obtaining module, configured to obtain second space information of a second user data file system reserved in a memory of the target device, where the second space information is used to indicate a storage space occupied by the second user data file system;
the adjusting module is used for adjusting the first space information according to the second space information and third space information, wherein the third space information is used for indicating a preset reserved storage space in the memory.
Optionally, the adjusting module includes:
a first determining unit configured to determine a difference between the second spatial information and the third spatial information;
a second determining unit configured to determine a size of the storage space indicated by the difference as target space information;
and the adjusting unit is used for adjusting the first space information according to the relation between the target space information and the first space information.
Optionally, the adjusting unit includes:
a determining subunit, configured to determine a size relationship between the target spatial information and the first spatial information;
and the adjusting subunit is used for adjusting the first space information occupied by the first user data file system into the target space information under the condition that the target space information is larger than the first space information.
Optionally, the apparatus further comprises:
an initialization module for initializing the second user data file system;
and the processing module is used for writing the second user data file system into a physical partition of the memory and determining the second space information of the storage space occupied by the second user data file system in the physical partition.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the embodiment of the invention, when the system of the target equipment is started and the file system in the system of the target equipment is mounted, first space information occupied by a first user data file system in the mounted file system is obtained, wherein the first space information is used for indicating the storage space occupied by the first user data file system; acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating storage space occupied by the second user data file system; and adjusting the first space information according to the second space information and the third space information, wherein the third space information is used for indicating a preset storage space reserved in a memory, so that the first space information occupied by the first user data file system in the file system mounted when the system of the target equipment is started is dynamically adjusted according to the second space information of the second user data file system reserved in the memory of the target equipment and the third space information of the preset storage space reserved in the memory, and the first user data file system in the system of the target equipment can adapt to various memory types. Therefore, the problem of lower space utilization rate of the file system in the related technology can be solved, and the effect of improving the space utilization rate of the file system is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of a hardware architecture of a mobile terminal according to an embodiment of the present invention, which is a method for adjusting a space occupied by a file system;
FIG. 2 is a flow chart of a method for adjusting the space occupied by a file system according to an embodiment of the invention;
FIG. 3 is a block diagram of a file system space adjusting device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a method for adjusting the space occupied by a file system according to an alternative embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to an embodiment of the present invention, which is a method for adjusting a space occupied by a file system. As shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for adjusting a space occupied by a file system in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for adjusting a space occupied by a file system is provided, and fig. 2 is a flowchart of a method for adjusting a space occupied by a file system according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, when a system of a target device is started and a file system in the system of the target device is mounted, acquiring first space information occupied by a first user data file system in the mounted file system, wherein the first space information is used for indicating a storage space occupied by the first user data file system;
step S204, obtaining second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating a storage space occupied by the second user data file system;
step S206, the first space information is adjusted according to the second space information and the third space information, wherein the third space information is used for indicating a preset reserved storage space in the memory.
Alternatively, in the present embodiment, the system of the target device may include, but is not limited to, an Android system, and the like.
Alternatively, in the present embodiment, the user data file system may include, but is not limited to, a userdata file system.
Alternatively, in the present embodiment, the second user data file system reserved in the memory may be, but is not limited to, a userdata file system including a physical partition written to the memory.
Alternatively, in this embodiment, the preset storage space reserved in the memory may include, but is not limited to, a preset physical space to be reserved in the memory.
Through the steps, the first space information occupied by the first user data file system in the file system mounted when the system of the target equipment is started is dynamically adjusted according to the second space information of the second user data file system reserved in the memory of the target equipment and the third space information of the preset storage space reserved in the memory, so that the first user data file system in the system of the target equipment can adapt to various memory types. Therefore, the problem of lower space utilization rate of the file system in the related technology can be solved, and the effect of improving the space utilization rate of the file system is achieved.
Optionally, in step S206, a difference between the second spatial information and the third spatial information is determined, the size of the storage space indicated by the difference is determined as the target spatial information, and the first spatial information is adjusted according to the relationship between the target spatial information and the first spatial information.
Alternatively, in the present embodiment, the first spatial information may be adjusted, but is not limited to, by:
determining a size relationship between the target spatial information and the first spatial information;
and under the condition that the target space information is larger than the first space information, adjusting the first space information occupied by the first user data file system into the target space information.
Optionally, before the step S204, a second user data file system is initialized, the second user data file system is written into a physical partition of the memory, and second space information of a storage space occupied by the second user data file system in the physical partition is determined.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a device for adjusting the space occupied by the file system, which is used for implementing the above embodiment and the preferred implementation, and is not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 3 is a block diagram of a device for adjusting the space occupied by a file system according to an embodiment of the present invention, as shown in FIG. 3, the device includes:
a first obtaining module 32, configured to obtain, when a system of the target device is started and a file system in the system of the target device is mounted, first space information occupied by a first user data file system in the mounted file system, where the first space information is used to indicate a storage space occupied by the first user data file system;
a second obtaining module 34, configured to obtain second space information of a second user data file system reserved in a memory of the target device, where the second space information is used to indicate a storage space occupied by the second user data file system;
the adjusting module 36 is configured to adjust the first spatial information according to the second spatial information and the third spatial information, where the third spatial information is used to indicate a preset reserved storage space in the memory.
Optionally, the adjusting module includes:
a first determination unit configured to determine a difference between the second spatial information and the third spatial information;
a second determining unit configured to determine a size of the storage space indicated by the difference value as target space information;
and the adjusting unit is used for adjusting the first space information according to the relation between the target space information and the first space information.
Optionally, the adjusting unit includes:
a determining subunit, configured to determine a size relationship between the target spatial information and the first spatial information;
and the adjusting subunit is used for adjusting the first space information occupied by the first user data file system into the target space information under the condition that the target space information is larger than the first space information.
Optionally, the apparatus further includes:
an initialization module for initializing a second user data file system;
and the processing module is used for writing the second user data file system into the physical partition of the memory and determining second space information of the storage space occupied by the second user data file system in the physical partition.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
The following detailed description is of alternative embodiments of the invention.
An alternative embodiment of the present invention provides a method for adjusting a space occupied by a file system, when an android system is started and the file system is mounted, a userdata file system size (corresponding to the first space information) is obtained, and an actual capacity size (corresponding to the second space information) of a physical partition of userdata is obtained. Calculating the actually available userdata size, the available userdata size=userdata physical partition size-the physical space size to be reserved (corresponding to the third space information); if the actual available userdata size is greater than the existing userdata file system size, resetting the existing userdata file system to the available userdata size.
When the android system is started, the size of the userdata file system is dynamically reset according to the size of the space of the userdata file system and the size of the reserved physical partition space of a memory (such as emmc), so that the optimal userdata space is obtained, the utilization rate of the userdata space is effectively improved and optimized, and meanwhile, the memory with different sizes and capacities is compatible on system software, so that the cost is saved for enterprises.
Partitioning the physical partition size of memory on hardware may be done as follows
Partition1for boot;
Partition2for boot.bak;
Partition3for cache;
Partition4for recovery;
Partition5for config;
Partition6for persist;
......
Partition last-1for system;
Partition last for userdata;
These physical partitions are logically unchangeable in software, with both start and end address locations fixed.
The android system divides the memory into corresponding logical partitions, corresponding to the corresponding physical partitions, the size of each partition is determined by the size of a file system written by the corresponding logical partition, and the size of each partition must be smaller than or equal to the size of the corresponding physical partition, otherwise, the file system cannot be programmed into the corresponding physical partition, or the file system can cross the boundary to the next partition during programming, and the file system is covered by the file systems of other partitions.
If the logical Partition boot corresponds to Partition1, the cache corresponds to Partition3, and the userdata corresponds to Partition last.
FIG. 4 is a schematic diagram of a method for adjusting space occupied by a file system according to an alternative embodiment of the present invention, as shown in FIG. 4, a method for optimizing userdata space utilization based on an android system is provided, and the process includes the following steps:
and step A, manufacturing a userdata file system with a fixed size.
In this step, a fixed file system image may be generated by build file system creation of an android. The dd tool may also be used alone to make a fixed size file system, creating a file system image.
And B, writing the file system into the physical partition.
In this step, the default fastboot or other writing tool provided by android is used to write the generated file system in the step a into the physical partition of the memory. This step is to write all the file systems to each specified physical partition. And is not limited to this physical partition to which the userdata file system corresponds.
And C, starting the android system, and acquiring the size of a userdata file system in the mounted file system when the file system is mounted.
In this step, when the init process of the android system is initialized, after the file system is mounted, including all logical partitions, whether the file system is mounted is checked to be successful or not, at this time, whether the file system is time-consuming or not can be judged when the api of the fs_mgr module is called, and if yes, the size of the file system is read again.
And D, acquiring the actual capacity of the physical partition of userdata.
The size of the userdata physical partition of the proc/parts memory physical partition table is read in this step. The capacity size of the physical partition is obtained.
And E, calculating the size of the userdata which can be obtained practically, wherein the size of the userdata=the size of the userdata physical partition-the size of the physical space to be reserved.
And F, if the actually available userdata size is larger than the existing userdata file system size, resetting the existing userdata file system to the available userdata size.
Optionally, resetting the userdata file system in step F may be implemented by calling the restore 2fs module.
Optionally, the implementation of the steps C to F flows is implemented by modifying the check_fs of the fs_mgr module.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, when a system of target equipment is started and a file system in the system of the target equipment is mounted, acquiring first space information occupied by a first user data file system in the mounted file system, wherein the first space information is used for indicating a storage space occupied by the first user data file system;
s2, acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating a storage space occupied by the second user data file system;
and S3, adjusting the first space information according to the second space information and third space information, wherein the third space information is used for indicating a preset reserved storage space in the memory.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, when a system of target equipment is started and a file system in the system of the target equipment is mounted, acquiring first space information occupied by a first user data file system in the mounted file system, wherein the first space information is used for indicating a storage space occupied by the first user data file system;
s2, acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating a storage space occupied by the second user data file system;
and S3, adjusting the first space information according to the second space information and third space information, wherein the third space information is used for indicating a preset reserved storage space in the memory.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (6)
1. A method for adjusting space occupied by a file system, comprising:
manufacturing a file system with a fixed size, and writing the manufactured file system into a designated physical partition;
when a system of target equipment is started and the file system in the system of the target equipment is mounted, acquiring first space information occupied by a first user data file system in the mounted file system, wherein the first space information is used for indicating a storage space occupied by the first user data file system;
acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating a storage space of a physical partition occupied by the second user data file system, the memory is divided into corresponding logical partitions, and the obtained logical partitions correspond to the corresponding physical partitions;
adjusting the first space information according to the second space information and third space information, wherein the third space information is used for indicating a preset storage space of a physical partition reserved in the memory;
wherein adjusting the first spatial information according to the second spatial information and the third spatial information includes: determining a difference between the second spatial information and the third spatial information; determining the size of the storage space indicated by the difference as target space information; adjusting the first spatial information according to the relation between the target spatial information and the first spatial information;
adjusting the first spatial information according to a relationship between the target spatial information and the first spatial information includes: determining a size relationship between the target spatial information and the first spatial information; and under the condition that the target space information is larger than the first space information, adjusting the first space information occupied by the first user data file system into the target space information.
2. The method of any of claims 1, wherein prior to obtaining the second spatial information of the second user data file system reserved in the memory of the target device, the method further comprises:
initializing the second user data file system;
writing the second user data file system into a physical partition of the memory, and determining the second space information of the storage space occupied by the second user data file system in the physical partition.
3. An apparatus for adjusting space occupied by a file system, comprising:
the manufacturing module is used for manufacturing a file system with a fixed size and writing the manufactured file system into a designated physical partition;
the system comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring first space information occupied by a first user data file system in a mounted file system when a system of target equipment is started and the file system in the system of the target equipment is mounted, and the first space information is used for indicating the storage space occupied by the first user data file system;
the second acquisition module is used for acquiring second space information of a second user data file system reserved in a memory of the target device, wherein the second space information is used for indicating a storage space of a physical partition occupied by the second user data file system, the memory is divided into corresponding logical partitions, and the obtained logical partitions correspond to the corresponding physical partitions;
the adjusting module is used for adjusting the first space information according to the second space information and third space information, wherein the third space information is used for indicating a preset storage space of a physical partition reserved in the memory;
wherein, the adjustment module includes: a first determining unit configured to determine a difference between the second spatial information and the third spatial information; a second determining unit configured to determine a size of the storage space indicated by the difference as target space information; an adjustment unit configured to adjust the first spatial information according to a relationship between the target spatial information and the first spatial information;
wherein the adjusting unit includes: a determining subunit, configured to determine a size relationship between the target spatial information and the first spatial information; and the adjusting subunit is used for adjusting the first space information occupied by the first user data file system into the target space information under the condition that the target space information is larger than the first space information.
4. A device according to claim 3, characterized in that the device further comprises:
an initialization module for initializing the second user data file system;
and the processing module is used for writing the second user data file system into a physical partition of the memory and determining the second space information of the storage space occupied by the second user data file system in the physical partition.
5. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 2 when run.
6. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910381548.8A CN110222019B (en) | 2019-05-08 | 2019-05-08 | Method and device for adjusting space occupied by file system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910381548.8A CN110222019B (en) | 2019-05-08 | 2019-05-08 | Method and device for adjusting space occupied by file system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110222019A CN110222019A (en) | 2019-09-10 |
CN110222019B true CN110222019B (en) | 2023-12-19 |
Family
ID=67820692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910381548.8A Active CN110222019B (en) | 2019-05-08 | 2019-05-08 | Method and device for adjusting space occupied by file system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110222019B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112765107A (en) * | 2019-10-21 | 2021-05-07 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer program product for adjusting memory space |
CN113495869B (en) * | 2020-03-20 | 2024-04-26 | 华为技术有限公司 | File system space adjusting method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102955720A (en) * | 2011-08-25 | 2013-03-06 | 北京中科智网科技有限公司 | Method for improving stability of EXT (extended) file system |
WO2016029774A1 (en) * | 2014-08-28 | 2016-03-03 | 中兴通讯股份有限公司 | Virtualization based application storage method and execution method, device and system |
CN106406768A (en) * | 2016-09-28 | 2017-02-15 | 努比亚技术有限公司 | Android system user data partitioning adjustment method and device |
CN107220008A (en) * | 2017-06-27 | 2017-09-29 | 北京小米移动软件有限公司 | Memory space method for obligating and device |
CN108829541A (en) * | 2018-06-14 | 2018-11-16 | Oppo(重庆)智能科技有限公司 | Dilatation detection method, electronic device and computer readable storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100161952A1 (en) * | 2008-12-18 | 2010-06-24 | Texas Instruments Incorporated | Performance optimizations by dynamic reduction of file allocation tables |
WO2014120240A1 (en) * | 2013-02-01 | 2014-08-07 | Bluearc Uk Limited | Method and apparatus to enable finer-grained, scalable allocation of storage in a data storage system |
-
2019
- 2019-05-08 CN CN201910381548.8A patent/CN110222019B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102955720A (en) * | 2011-08-25 | 2013-03-06 | 北京中科智网科技有限公司 | Method for improving stability of EXT (extended) file system |
WO2016029774A1 (en) * | 2014-08-28 | 2016-03-03 | 中兴通讯股份有限公司 | Virtualization based application storage method and execution method, device and system |
CN106406768A (en) * | 2016-09-28 | 2017-02-15 | 努比亚技术有限公司 | Android system user data partitioning adjustment method and device |
CN107220008A (en) * | 2017-06-27 | 2017-09-29 | 北京小米移动软件有限公司 | Memory space method for obligating and device |
CN108829541A (en) * | 2018-06-14 | 2018-11-16 | Oppo(重庆)智能科技有限公司 | Dilatation detection method, electronic device and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
浅析NTFS管理磁盘数据的基本结构;杨华;高福兵;王旭辉;;重庆工商大学学报(自然科学版)(04) * |
Also Published As
Publication number | Publication date |
---|---|
CN110222019A (en) | 2019-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461698A (en) | Dynamic virtual disk mounting method, virtual disk management device and distributed storage system | |
CN110222019B (en) | Method and device for adjusting space occupied by file system | |
CN116048643B (en) | Equipment operation method, system, device, storage medium and electronic equipment | |
CN114257551A (en) | Distributed current limiting method and system and storage medium | |
CN109814980A (en) | Image file acquisition methods and device | |
CN108259526B (en) | Data transmission method and device | |
EP3518166A1 (en) | Mobile terminal-based payment method and mobile terminal | |
CN111372027B (en) | Video file storage method and device, storage medium and electronic device | |
CN106354435B (en) | The method and device of RAID initialization | |
CN104267985A (en) | Software loading method and device | |
CN105264608B (en) | Method, Memory Controller Hub and the central processing unit of data storage | |
CN109656629A (en) | A kind of EMMC adaptive regulation method, storage medium and terminal device | |
CN113407254A (en) | Form generation method and device, electronic equipment and storage medium | |
CN113272785B (en) | Method for mounting file system, terminal equipment and storage medium | |
CN114995770A (en) | Data processing method, device, equipment, system and readable storage medium | |
CN111427603B (en) | Application program upgrading method and device | |
CN113010195B (en) | System upgrading method, storage medium and terminal equipment | |
CN110347683B (en) | Data table merging processing method and device | |
WO2023287407A1 (en) | Hardware component initialization | |
CN108363614B (en) | Application service module management method and device and server | |
CN110727400A (en) | Flow control method, apparatus, device and medium for distributed storage system | |
US20230195527A1 (en) | Workload distribution by utilizing unused central processing unit capacity in a distributed computing system | |
CN117687703B (en) | Method, device and system for starting server, storage medium and electronic equipment | |
CN110520839A (en) | Storage medium space application method, apparatus and unmanned plane in System on Chip/SoC | |
CN113703682B (en) | File mounting method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |