CN112988072B - Data processing method and device, storage medium and electronic equipment - Google Patents

Data processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112988072B
CN112988072B CN202110302999.5A CN202110302999A CN112988072B CN 112988072 B CN112988072 B CN 112988072B CN 202110302999 A CN202110302999 A CN 202110302999A CN 112988072 B CN112988072 B CN 112988072B
Authority
CN
China
Prior art keywords
target
data
frequency partition
frequency
folder
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
Application number
CN202110302999.5A
Other languages
Chinese (zh)
Other versions
CN112988072A (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.)
Beijing CHJ Automotive Information Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information Technology Co Ltd
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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN202110302999.5A priority Critical patent/CN112988072B/en
Publication of CN112988072A publication Critical patent/CN112988072A/en
Application granted granted Critical
Publication of CN112988072B publication Critical patent/CN112988072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket

Abstract

The present disclosure relates to a data processing method and apparatus, a storage medium, and an electronic device, the method including: the method comprises the steps of intercepting a data storage instruction and data to be stored which are sent to a target high-frequency partition through a file system, wherein the target high-frequency partition is a target high-frequency partition corresponding to the file system; determining a target idle folder corresponding to the target high-frequency partition; storing the data to be stored into the target idle folder; the disk comprises at least one file system, each file system corresponds to one high-frequency partition, the file system stores the corresponding relation between the high-frequency partition and a target idle folder corresponding to the high-frequency partition, the target idle folder is located in a low-frequency partition of the disk, and the erasing frequency of the high-frequency partition is higher than that of the low-frequency partition. The method and the device can balance the loss of each partition of the disk so as to prolong the service life of the disk.

Description

Data processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of data storage technologies, and in particular, to a data processing method and apparatus, a storage medium, and an electronic device.
Background
In data storage, data corresponding to one application program is usually stored in a designated path, and each partition in the disk may correspond to data content of a different application program. However, the use frequencies of different application programs are different, and the use frequencies of part of the application programs are very high, so that the calling frequency of data of the application programs is also high, and therefore the erasing frequency of a disk partition where the application programs are located is high, and meanwhile, the erasing frequency of the disk partition where the application programs with lower use frequency are also low, and therefore the problem that the erasing frequencies of different partitions of the disk are inconsistent is caused, and the service life of the disk cannot reach a theoretical value.
At present, the erasing frequency of each partition of a disk and the calling frequency of each data can be regularly determined, and the erasing frequency of each partition of the disk can be balanced in a mode of migrating the data with high using frequency to the partition with low using frequency, however, the method needs to regularly count all the disks and all the data, the back and forth migration of the data can also add unnecessary erasing burden to the disk, and the data which is originally in the same storage position can be scattered in each storage position of each disk, so that the inconvenience of data calling is caused.
Disclosure of Invention
The disclosure aims to provide a data processing method and device, a storage medium and an electronic device, so as to solve the technical problems.
To achieve the above object, a first aspect of the present disclosure provides a data processing method, including: the method comprises the steps of intercepting a data storage instruction and data to be stored which are sent to a target high-frequency partition through a file system, wherein the target high-frequency partition is a target high-frequency partition corresponding to the file system; determining a target idle folder corresponding to the target high-frequency partition; storing the data to be stored into the target idle folder; the disk comprises at least one file system, each file system corresponds to one high-frequency partition, the file system stores the corresponding relation between the high-frequency partition and a target idle folder corresponding to the high-frequency partition, the target idle folder is located in a low-frequency partition of the disk, and the erasing frequency of the high-frequency partition is higher than that of the low-frequency partition.
Optionally, the storing the data to be stored in the target idle folder includes: determining the residual capacity of the target idle folder, judging whether the residual capacity of the target idle folder meets a preset capacity condition, storing the data to be stored into the target idle folder under the condition that the residual capacity of the target idle folder meets the preset capacity condition, and storing the data to be stored into the target high-frequency partition under the condition that the residual capacity of the target idle folder does not meet the preset capacity condition.
Optionally, the storing the data to be stored in the target idle folder includes: determining the erasing frequency of the low-frequency partition, judging whether the erasing frequency of the low-frequency partition meets a first erasing condition, storing the data to be stored in the target idle folder when the erasing frequency of the low-frequency partition meets the first erasing condition, and storing the data to be stored in the target high-frequency partition when the erasing frequency of the low-frequency partition does not meet the first erasing condition; or determining the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition, judging whether the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets a second erasing condition, storing the data to be stored into the target idle folder when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets the second erasing condition, and storing the data to be stored into the target high-frequency partition when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition does not meet the second erasing condition.
Optionally, the erasing frequency of the target high-frequency partition is determined based on the operation record file of the target high-frequency partition, and the erasing frequency of the target free folder is determined based on the operation record file of the target free folder; the method further comprises the steps of: when data writing, data reading and data deleting operations are executed on the target high-frequency partition or the target free folder, the operation times and the data change amount are recorded in an operation record file corresponding to the target high-frequency partition or the target free folder.
Optionally, the method further comprises: acquiring a data processing instruction aiming at the target high-frequency partition; searching target data to be processed in the target frequency partition and the target idle folder; and performing data processing operation on the target data based on the type of the data processing instruction, wherein the data processing operation comprises at least one of an opening operation, a modifying operation and a deleting operation.
Optionally, the method further comprises: and determining whether to store the processed target data into the target idle folder based on the residual capacity and/or the erasing frequency of the target idle folder.
Optionally, the searching the target high-frequency partition and the target idle folder for the data to be processed includes: searching the data to be processed in the cache area of the magnetic disk, and searching the data to be processed in the target frequency partition and the target idle folder under the condition that the data to be processed does not exist in the cache area of the magnetic disk.
Optionally, the data storage instruction further includes a target directory, where the target directory is any subdirectory in the target high-frequency partition; the step of storing the data to be stored into the target idle folder comprises the following steps of; and storing the data to be stored into the subfolder corresponding to the target directory in the target idle folder.
Optionally, the method further comprises: acquiring a catalog newly-built instruction or a catalog deleting instruction aiming at the target frequency partition; creating a catalog corresponding to the catalog creation instruction in the target frequency partition, and creating a catalog corresponding to the catalog creation instruction in the target idle folder; or deleting the catalogue corresponding to the catalogue deleting instruction in the target high-frequency partition, and deleting the catalogue corresponding to the catalogue deleting instruction in the target idle folder.
Optionally, the method further comprises: acquiring a data display instruction aiming at the target high-frequency partition, wherein the data display instruction comprises a catalog to be displayed; determining data to be displayed in the directory to be displayed of the target high-frequency partition and data to be displayed in a subfolder corresponding to the directory to be displayed in the target idle folder; and merging the data to be displayed in the target high-frequency partition and the data to be displayed in the target idle folder, and displaying the merged data.
Optionally, the method further comprises: determining data to be displayed in the low-frequency partition and data in the target idle folder in response to a data display instruction for the low-frequency partition; and displaying the data to be displayed in the low-frequency partition, wherein the data in the target idle file is in a hidden state.
Optionally, the method further comprises: determining an idle folder and a file system corresponding to each high-frequency partition; storing directory information and operation functions of the high-frequency partition and the idle folders corresponding to the high-frequency partition into a file system corresponding to the high-frequency partition; the file system is used for blocking a data operation instruction aiming at a high-frequency partition corresponding to the file system, responding to the data operation instruction, and operating the data in the high-frequency partition or an idle folder corresponding to the high-frequency partition based on an operation function corresponding to the data operation instruction, wherein the data operation instruction comprises at least one of a data storage instruction, a data operation instruction and a data display instruction.
In a second aspect, the present disclosure provides a data processing apparatus, the apparatus comprising: the storage instruction acquisition module is used for blocking a data storage instruction and data to be stored which are sent to a target high-frequency partition through a file system, wherein the target high-frequency partition is a target high-frequency partition corresponding to the file system; the folder determining module is used for determining a target idle folder corresponding to the target high-frequency partition; the data storage module is used for storing the data to be stored into the target idle folder; the disk comprises at least one file system, each file system corresponds to one high-frequency partition, the file system stores the corresponding relation between the high-frequency partition and a target idle folder corresponding to the high-frequency partition, the target idle folder is located in a low-frequency partition of the disk, and the erasing frequency of the high-frequency partition is higher than that of the low-frequency partition.
Optionally, the data storage module is configured to determine a remaining capacity of the target idle folder, determine whether the remaining capacity of the target idle folder meets a preset capacity condition, store the data to be stored in the target idle folder when the remaining capacity of the target idle folder meets the preset capacity condition, and store the data to be stored in the target high-frequency partition when the remaining capacity of the target idle folder does not meet the preset capacity condition.
Optionally, the data storage module is configured to determine an erasure frequency of the low frequency partition, determine whether the erasure frequency of the low frequency partition meets a first erasure condition, store the data to be stored in the target free folder when the erasure frequency of the low frequency partition meets the first erasure condition, and store the data to be stored in the target high frequency partition when the erasure frequency of the low frequency partition does not meet the first erasure condition; or determining the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition, judging whether the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets a second erasing condition, storing the data to be stored into the target idle folder when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets the second erasing condition, and storing the data to be stored into the target high-frequency partition when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition does not meet the second erasing condition.
Optionally, the erasing frequency of the target high-frequency partition is determined based on the operation record file of the target high-frequency partition, and the erasing frequency of the target free folder is determined based on the operation record file of the target free folder; the device also comprises a recording module which is used for recording operation times and data change in an operation record file corresponding to the target high-frequency partition or the target free folder when data writing, data reading and data deleting operations are executed on the target high-frequency partition or the target free folder.
Optionally, the apparatus further comprises a data processing module for acquiring data processing instructions for the target high frequency partition; searching target data to be processed in the target frequency partition and the target idle folder; and performing data processing operation on the target data based on the type of the data processing instruction, wherein the data processing operation comprises at least one of an opening operation, a modifying operation and a deleting operation.
Optionally, the data processing module is further configured to determine whether to store the processed target data in the target idle folder based on the remaining capacity and/or the erasing frequency of the target idle folder.
Optionally, the data processing module is further configured to search the cache area of the disk for the data to be processed, and if the data to be processed does not exist in the cache area of the disk, search the target frequency partition and the target free folder for the data to be processed.
Optionally, the data storage instruction further includes a target directory, where the target directory is any subdirectory in the target high-frequency partition; and the data storage module is used for storing the data to be stored into the subfolder corresponding to the target directory in the target idle folder.
Optionally, the device further comprises a catalog processing module, which is used for acquiring a catalog creation instruction or a catalog deletion instruction aiming at the target high-frequency partition; creating a catalog corresponding to the catalog creation instruction in the target frequency partition, and creating a catalog corresponding to the catalog creation instruction in the target idle folder; or deleting the catalogue corresponding to the catalogue deleting instruction in the target high-frequency partition, and deleting the catalogue corresponding to the catalogue deleting instruction in the target idle folder.
Optionally, the device further comprises a first display module, configured to obtain a data display instruction for the target high-frequency partition, where the data display instruction includes a directory to be displayed; determining data to be displayed in the directory to be displayed of the target high-frequency partition and data to be displayed in a subfolder corresponding to the directory to be displayed in the target idle folder; and merging the data to be displayed in the target high-frequency partition and the data to be displayed in the target idle folder, and displaying the merged data.
Optionally, the apparatus further includes a second presentation module for determining, in response to a data presentation instruction for the low frequency partition, data to be presented in the low frequency partition and data in the target free folder; and displaying the data to be displayed in the low-frequency partition, wherein the data in the target idle file is in a hidden state.
Optionally, the device further comprises a setting module, which is used for determining the idle folder and the file system corresponding to each high-frequency partition; storing directory information and operation functions of the high-frequency partition and the idle folders corresponding to the high-frequency partition into a file system corresponding to the high-frequency partition; the file system is used for blocking a data operation instruction aiming at a high-frequency partition corresponding to the file system, responding to the data operation instruction, and operating the data in the high-frequency partition or an idle folder corresponding to the high-frequency partition based on an operation function corresponding to the data operation instruction, wherein the data operation instruction comprises at least one of a data storage instruction, a data operation instruction and a data display instruction.
In a third aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect of the present disclosure.
In a fourth aspect, the present disclosure provides an electronic device comprising a memory having a computer program stored thereon, and a processor for executing the computer program in the memory to implement the steps of the method of the first aspect of the present disclosure.
Through the technical scheme, at least the following technical effects can be achieved:
the data to be stored in the high-frequency partition can be stored in the target idle folder positioned in the low-frequency partition, the effect of balancing the erasing frequency of each partition of the disk is achieved by transferring the data carried by the high-frequency partition to the low-frequency partition, and the storage positions of the data are more regular and more beneficial to data calling because the high-frequency partition and the target idle folder have a corresponding relationship.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
FIG. 1 is a flow chart illustrating a method of data processing according to an exemplary disclosed embodiment.
FIG. 2 is a schematic diagram of an operating system according to an exemplary disclosed embodiment.
Fig. 3 is a schematic diagram showing a correspondence relationship between a file location and a real file location in a user's perspective according to an exemplary disclosed embodiment.
FIG. 4 is a block diagram of a data processing apparatus according to an exemplary disclosed embodiment.
Fig. 5 is a block diagram of an electronic device, according to an exemplary disclosed embodiment.
Detailed Description
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
FIG. 1 is a flow chart of a data processing method according to an exemplary disclosed embodiment, as shown in FIG. 1, the method comprising the steps of:
s11, blocking a data storage instruction and data to be stored which are sent to a target high-frequency partition through a file system, wherein the target high-frequency partition is a target high-frequency partition corresponding to the file system.
The target high-frequency partition is a partition with higher erasing frequency in a disk, and the disk can be a disk loaded in any equipment such as a vehicle, a mobile terminal, a server device and the like, and can be a disk for storing common data or a disk for bearing an application program and recording data related to the application program.
The data storage instruction for the target high-frequency partition of the magnetic disk can be an instruction that a user directly points to, for example, the user selects a data storage path through a display interface of the magnetic disk, and the storage path is positioned in the target high-frequency partition; the data storage instruction may be an instruction for pointing based on an application program, for example, when it is necessary to store data for an application program whose storage area is located in a target high-frequency partition of a disk, the data storage instruction used for the data storage is a data storage instruction for the target high-frequency partition of the disk.
The data to be stored can be any form of data such as pictures, documents, videos, system files, system logs and the like, and the form of the data stored in the disk is not limited in the disclosure.
The disk comprises at least one file system, and an idle file folder and a file system corresponding to each high-frequency partition are determined; storing directory information and operation functions of the high-frequency partition and the free folder into the file system; the file system is used for blocking a data operation instruction aiming at a high-frequency partition corresponding to the file system, responding to the data operation instruction, and operating the data in the high-frequency partition or an idle folder corresponding to the high-frequency partition based on an operation function corresponding to the data operation instruction, wherein the data operation instruction comprises at least one of a data storage instruction, a data operation instruction and a data display instruction.
As shown in fig. 2, a schematic structure diagram of an operating system is shown in fig. 2, in which a user state and a kernel state interact with a virtual file system through a system call, where a routfs is a file system for executing the methods S11 to S14 in the disclosure, the file system is a stacked file system, is mounted on a high-frequency partition a, and stores paths of partitions such as a low-frequency partition B, C corresponding to the high-frequency partition a, when a user accesses the high-frequency partition a, the virtual file system is called through the system call, and because the file system routfs is mounted on a common file system, the virtual file system transfers a data operation instruction to the file system routfs, and determines a real data path corresponding to the data operation instruction by the file system routfs, and performs a corresponding data operation.
The file system can be mounted when being started, the mounted parameters are the directories of the high-frequency partition and the corresponding target idle folder, after the file system obtains the paths of the directories, path information can be saved through superblocks of the system, and file operation functions and folder operation functions in the high-frequency partition and the low-frequency partition are saved in the superblocks of the file system. And checking whether a record file exists in the low-frequency partition where the target free folder is located, if so, loading the file operation record recorded in the record file, and if not, newly building the record file in the low-frequency partition. When data call is carried out, corresponding data and corresponding operation interfaces are obtained through interfaces of the file system, and the data are operated through stored operation functions. S12, determining a target idle folder corresponding to the high-frequency partition.
The target free folder is located in a low frequency partition of the disk. The erasing frequency of the high-frequency partition is higher than that of the low-frequency partition.
It should be noted that, the distinction between the high-frequency partition and the low-frequency partition is determined based on the erasing frequency of each partition at the time when the correspondence between the high-frequency partition and the free folder is established, after the subsequent operations such as data storage and recall, the erasing frequency of the low-frequency partition may be higher than or equal to that of the high-frequency partition, in which case, the storing of data into the low-frequency partition may be selectively restricted, or the corresponding free folder may be redetermined for the high-frequency partition in other low-frequency partitions.
In one possible implementation manner, one high-frequency partition may also correspond to a plurality of target idle folders, where the target idle folders may be located in different low-frequency partitions, different subdirectories of the high-frequency partition may correspond to different idle folders in different low-frequency partitions, may also correspond to different idle folders in the same low-frequency partition, may also correspond to the same idle folder in the same low-frequency partition, and may determine, through a data storage instruction, a target subdirectory of data to be stored in the target high-frequency partition, and determine a target idle folder corresponding to the target subdirectory. For example, the target high-frequency partition a has subdirectories A1, A2, A3, where A1 corresponds to the free folder B1 in the low-frequency partition B, A2 corresponds to the free folder C1 in the low-frequency partition C, A3 corresponds to the free folder C2 in the low-frequency partition C, and after an instruction to store data into the subdirectory A2 is acquired, it may be determined that the target free folder corresponding to the target high-frequency partition is the free folder C1 in the low-frequency partition C.
S13, storing the data to be stored into the target idle folder.
Because the target free folder is positioned in the low-frequency partition with lower disk erasing frequency, the file to be stored in the target high-frequency partition can be stored in the target free folder so as to reduce the disk consumption of the target high-frequency partition and transfer the disk consumption of the target high-frequency partition into the low-frequency partition.
Considering that the disk loss of the low frequency partition will rise after the data to be stored is stored in the target free folder for a plurality of times, or the remaining capacity of the target free folder may be insufficient, in one possible embodiment, it may be determined whether to store the data in the target free folder according to the remaining capacity of the target free folder, and in another possible embodiment, it may be determined whether to store the data in the target free folder according to the erasing frequency of the low frequency partition.
The remaining capacity of the target idle folder can be determined, whether the remaining capacity of the target idle folder meets a preset capacity condition or not is judged, the data to be stored is stored in the target idle folder under the condition that the remaining capacity of the target idle folder meets the preset capacity condition, and the data to be stored is stored in the target high-frequency partition under the condition that the remaining capacity of the target idle folder does not meet the preset capacity condition.
The remaining capacity of the target free folder is a difference between the rated capacity and the occupied capacity of the target folder, and the rated capacity may be a pre-allocated capacity, or the rated capacity may be a remaining capacity of a low frequency partition, which the present disclosure does not limit. For example, the total capacity of the low-frequency partition is 1024MB, the other files occupy 24MB, the rated capacity may be 1000MB (i.e. the remaining capacity of the low-frequency partition), or may be pre-allocated 500MB, and in the subsequent use, the capacity occupied by the other files of the low-frequency partition becomes 124MB, and the rated capacity may be 900MB (i.e. the remaining capacity of the low-frequency partition), or may be pre-allocated 500MB.
The preset capacity condition may mean that the remaining capacity reaches a preset capacity threshold, or that the ratio (i.e., occupancy rate) of the remaining capacity of the target free folder to the total capacity is less than a preset occupancy rate threshold, or that the remaining capacity is higher than the amount of data to be stored, or that the occupancy rate of the target free folder and the occupancy rate of the target high-frequency partition meet a size condition.
For example, if the preset capacity condition is that the residual capacity reaches 1G, storing the file to be stored into the target frequency partition instead of the target free folder in the case that the residual capacity is only 900 MB; the preset capacity condition is that the occupancy rate is less than 80%, if the rated capacity is 1000MB and the occupied capacity is 900MB, the occupancy rate of the target free folder reaches 90%, and the file to be stored is stored in the target frequency partition instead of the target free folder; the preset capacity condition may be that the occupancy rate of the target free folder is lower than the occupancy rate of the target high-frequency partition, and then the file to be stored is stored in the target high-frequency partition instead of the target free folder under the condition that the occupancy rate of the target free folder is 80% and the occupancy rate of the target high-frequency partition is 40%.
The erasing frequency of the low-frequency partition can be determined, whether the erasing frequency of the low-frequency partition meets a first erasing condition or not is judged, the data to be stored is stored in the target idle folder under the condition that the erasing frequency of the low-frequency partition meets the first erasing condition, and the data to be stored is stored in the target high-frequency partition under the condition that the erasing frequency of the low-frequency partition does not meet the first erasing condition.
The first erasing condition may be that the erasing frequency of the low frequency partition is lower than a preset erasing frequency threshold value, or is lower than or equal to a preset erasing frequency threshold value.
Or determining the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition, and judging whether the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets a second erasing condition, storing the data to be stored in the target free folder when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets the second erasing condition, and storing the data to be stored in the target high-frequency partition when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition does not meet the second erasing condition.
For example, the second erasing condition may be that a ratio of an erasing frequency of the target frequency division and an erasing frequency of the low frequency division is greater than a ratio threshold, or the second erasing condition may be that a difference between the erasing frequency of the target frequency division and the erasing frequency of the low frequency division is greater than a difference threshold. That is, in the case where the erasing frequency of the low frequency division increases, the storage of files into the low frequency division may be restricted in order to balance the disk consumption of the target frequency division and the low frequency division.
In one possible embodiment, it may be determined whether to store data in the target free folder based on the frequency of erasing the target frequency partition, the frequency of erasing the low frequency partition, and the remaining capacity of the target free folder. The specific storage condition can be adaptively adjusted according to the storage requirement, as an example, the occupancy rate of the target idle folder can be used as a first index, the ratio of the erasing frequencies of the target frequency partition and the low frequency partition can be used as a second index, different weights are given to the first index and the second index according to different storage requirements, and whether to store data in the target frequency partition or store data in the target idle folder is determined based on the sum of the weighted first index and the weighted second index.
The erasing frequency of the target high-frequency partition is determined based on an operation record file of the target high-frequency partition, the erasing frequency of the target free folder is determined based on an operation record file of the target free folder, the operation record file can be a file in the form of a record file, wherein a calling record of a directory where the file is located is recorded, and the calling record can comprise a calling form of data, a calling amount of the data, a calling path of the data and the like. When data writing, data reading and data deleting operations are executed on the target high-frequency partition or the target free folder, the operation times and the data change amount are recorded in an operation record file corresponding to the target high-frequency partition or the target free folder.
It is worth to say that, the data condition of the catalog where the operation record file is located can be checked through the operation record file, and the target idle folder is located in the low-frequency partition, so that the operation record file of the target idle folder can be hidden in the processes of checking, calling and the like of the low-frequency partition, the data operation record in the low-frequency partition is not influenced by the data calling operation in the target idle folder, the record confusion is avoided, and the user can check and call the data of the low-frequency partition more conveniently.
In a possible implementation manner, the data storage instruction further includes a target directory, where the target directory is any subdirectory in the target high-frequency partition, and the data to be stored is stored in a subfolder corresponding to the target directory in the target free folder. Under the condition that the sub-directory corresponding to the target directory does not exist in the target high-frequency partition, the sub-directory corresponding to the target directory can be newly built in the target high-frequency partition, and under the condition that the sub-folder corresponding to the target directory does not exist in the target free folder, the sub-folder corresponding to the target directory can be newly built in the target free folder. For example, the target high-frequency partition is an area a, the target free folder corresponding to the target high-frequency partition is an area B A1 folder, the target directory to be stored with data is/a/c (i.e. directory c in area a directory a), and directory c does not exist in area a directory a, directory c can be newly built in directory a, subfolder a does not exist in area B A1 folder, subfolder a is newly built in the area A1 folder, subfolder c is newly built under subfolder a, and thus the real storage path is/B/A1/a/c.
In one possible implementation manner, acquiring a catalog creation instruction or a catalog deletion instruction for the target frequency partition; creating a catalog corresponding to the catalog creation instruction in the target frequency partition, and creating a catalog corresponding to the catalog creation instruction in the target idle folder; or deleting the catalogue corresponding to the catalogue deleting instruction in the target high-frequency partition, and deleting the catalogue corresponding to the catalogue deleting instruction in the target idle folder.
In this way, subfolders corresponding to the catalogues in the target frequency partition are built in the target free folder, files are classified and stored, so that the files are ordered, and the calling efficiency of the data is improved.
In one possible implementation manner, a data display instruction for the target high-frequency partition may be acquired, where the data display instruction includes a directory to be displayed, determines data to be displayed in the directory to be displayed of the target high-frequency partition and data to be displayed in a subfolder corresponding to the directory to be displayed in the target free folder, merges the data to be displayed in the target high-frequency partition and the data to be displayed in the target free folder, and displays the merged data.
For example, in the case where the directory to be displayed in the data display instruction is/a/c/c 1, all data in the directory c/c1 in the high-frequency partition a may be searched, the target free folder B/a corresponding to the high-frequency partition a may be determined in the low-frequency partition B, all data in the subfolder/B/a/c/c 1 corresponding to the directory c/c1 may be determined, and the data in/a/c/c 1 and/B/a/c/c 1 may be combined and displayed.
It should be noted that, the directory to be displayed may be the largest directory of the target high-frequency partition, for example, the directory to be displayed may be/a, and then the directory to be displayed is the high-frequency partition a, where in this case, the data in the high-frequency partition a and the target free folder corresponding to the high-frequency partition a are combined and displayed.
It should be noted that, the data displaying instruction may be performed based on a selection operation of a user, for example, when the user selects the high-frequency partition a, a directory to be displayed in the data displaying instruction is/a, after displaying all files (including subfolders) corresponding to the directory/a in the target high-frequency partition and the low-frequency partition, the selection operation of the user on the directory/a may be further obtained, and the subdirectory selected by the user is taken as the directory to be displayed. For example, when the user further selects the subdirectory/c in the directory/a, a new data presentation instruction is generated, and the directory to be presented corresponding to the new data presentation instruction is/a/c. The above process of exposing files and obtaining user selection operations may continue to loop until there are no subdirectories that can be further exposed.
In one possible implementation manner, the data to be displayed in the low-frequency partition and the data in the target idle folder may be determined in response to a data display instruction for the low-frequency partition, where the data in the target idle folder is in a hidden state.
Therefore, files corresponding to the target frequency partition stored in the low frequency partition can be hidden, so that the uniformity of data is improved, and the searching and calling of the data by a user are facilitated.
After the data is written, the data may be operated on based on different data operation instructions.
In one possible implementation manner, a data processing instruction for the target high-frequency partition may be acquired, target data to be processed is searched in the target high-frequency partition and the target idle folder, and a data processing operation is performed on the target data based on the type of the data processing instruction, wherein the data processing operation includes at least one of an opening operation, a modifying operation and a deleting operation. After processing the data, it may be determined whether to store the processed target data in the target free folder based on the remaining capacity and/or the erasing frequency of the target free folder. That is, when creating the target data, it may be determined whether to store the target data in the target frequency partition or the target free folder based on the data storage rule of step S13, which will not be described herein.
For example, the data operation instruction may be an openfile instruction, the system may call a search interface to search target data in the target high-frequency partition and the target idle folder, if the target data is searched, call the underlying file system to open a file corresponding to the target data, and if the instruction includes a "truncate" instruction, delete the target data and create new target data in the target high-frequency partition or the target idle folder; when the target data is not found, if a "create" instruction exists in the instructions, the target data may be created in the target high-frequency partition or the target free folder.
The data operation instruction may be a read instruction, and may determine a storage location of the target data, and call a file system interface where the target data is located to read the data.
The data operation instruction can be a write instruction, so that the storage position of target data can be determined, a file system interface where the target data is positioned is called, the data is modified, and a record of file calling is stored in a record file corresponding to the storage position; meanwhile, a close interface of the target file can be called, the target data is closed based on closing operation of a user, and an opened record of the file is stored in the record file.
It should be noted that, there may be a data and a target high-frequency partition and a target idle folder, and there is no obvious advantage or disadvantage in setting the order of searching for the data and the target idle folder, so the present disclosure does not limit the searching order of the target high-frequency partition and the target idle folder when searching for data. However, since data may also exist in the cache area and not yet stored in a specific directory, the data to be processed may be searched in the cache area of the disk before searching the target frequency partition or the target free folder, and in the case that the data to be processed does not exist in the cache area of the disk, the data to be processed may be searched in the target frequency partition and the target free folder.
As shown in fig. 3, in the view of the user, the folder with path of/a/data/tmp/test is included in the high-frequency partition a, the file with path of/a/data/tmp/test 1, the file with path of/a/data/tmp/test 2, and the file with path of/a/data/tmp/test 3 are present below, and the folder with path of/a/data/tmp/test 1 is included in the high-frequency partition a, the folder with path of/a/data/tmp/test 1 is included in the low-frequency partition B, the folder with path of/B/a/data/tmp/test 2 is included in the low-frequency partition B, and the file with path of/B/a/tmp/test 3 is included in the real disk. Thus, from a user perspective, the files in the high frequency partition are unified and there is no use experience in which the storage locations are distributed among the various partitions of the disk.
Through the technical scheme, at least the following technical effects can be achieved:
the data to be stored in the high-frequency partition can be stored in the target idle folder positioned in the low-frequency partition, the effect of balancing the erasing frequency of each partition of the disk is achieved by transferring the data carried by the high-frequency partition to the low-frequency partition, and the storage positions of the data are more regular and more beneficial to data calling because the high-frequency partition and the target idle folder have a corresponding relationship.
FIG. 4 is a block diagram of a data processing apparatus 400, as shown in FIG. 4, according to an exemplary disclosed embodiment, the apparatus 400 includes:
the storage instruction obtaining module 410 is configured to block, by using a file system, the data storage instruction and the data to be stored sent to the storage instruction, where the target high-frequency partition is a target high-frequency partition corresponding to the file system.
And the folder determining module 420 is configured to determine a target free folder corresponding to the target high-frequency partition.
And the data storage module 430 is configured to store the data to be stored in the target free folder.
The disk comprises at least one file system, each file system corresponds to one high-frequency partition, the file system stores the corresponding relation between the high-frequency partition and a target idle folder corresponding to the high-frequency partition, the target idle folder is located in a low-frequency partition of the disk, and the erasing frequency of the high-frequency partition is higher than that of the low-frequency partition.
Optionally, the data storage module 430 is configured to determine a remaining capacity of the target idle folder, determine whether the remaining capacity of the target idle folder meets a preset capacity condition, store the data to be stored in the target idle folder if the remaining capacity of the target idle folder meets the preset capacity condition, and store the data to be stored in the target high-frequency partition if the remaining capacity of the target idle folder does not meet the preset capacity condition.
Optionally, the data storage module 430 is configured to determine an erasing frequency of the low frequency partition, determine whether the erasing frequency of the low frequency partition meets a first erasing condition, store the data to be stored in the target free folder if the erasing frequency of the low frequency partition meets the first erasing condition, and store the data to be stored in the target high frequency partition if the erasing frequency of the low frequency partition does not meet the first erasing condition; or determining the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition, judging whether the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets a second erasing condition, storing the data to be stored into the target idle folder when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets the second erasing condition, and storing the data to be stored into the target high-frequency partition when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition does not meet the second erasing condition.
Optionally, the erasing frequency of the target high-frequency partition is determined based on the operation record file of the target high-frequency partition, and the erasing frequency of the target free folder is determined based on the operation record file of the target free folder; the apparatus 400 further includes a recording module, configured to record, when performing data writing, data reading, and data deleting operations on the target high-frequency partition or the target free folder, the operation times and the data change amounts in an operation record file corresponding to the target high-frequency partition or the target free folder.
Optionally, the apparatus 400 further includes a data processing module, configured to obtain data processing instructions for the target high-frequency partition; searching target data to be processed in the target frequency partition and the target idle folder; and performing data processing operation on the target data based on the type of the data processing instruction, wherein the data processing operation comprises at least one of an opening operation, a modifying operation and a deleting operation.
Optionally, the data processing module is further configured to determine whether to store the processed target data in the target idle folder based on the remaining capacity and/or the erasing frequency of the target idle folder.
Optionally, the data processing module is further configured to search the cache area of the disk for the data to be processed, and if the data to be processed does not exist in the cache area of the disk, search the target frequency partition and the target free folder for the data to be processed.
Optionally, the data storage instruction further includes a target directory, where the target directory is any subdirectory in the target high-frequency partition; and the data storage module is used for storing the data to be stored into the subfolder corresponding to the target directory in the target idle folder.
Optionally, the apparatus 400 further includes a directory processing module, configured to obtain a directory creation instruction or a directory deletion instruction for the target high-frequency partition; creating a catalog corresponding to the catalog creation instruction in the target frequency partition, and creating a catalog corresponding to the catalog creation instruction in the target idle folder; or deleting the catalogue corresponding to the catalogue deleting instruction in the target high-frequency partition, and deleting the catalogue corresponding to the catalogue deleting instruction in the target idle folder.
Optionally, the apparatus 400 further includes a first exhibition module, configured to acquire a data exhibition instruction for the target high-frequency partition, where the data exhibition instruction includes a directory to be exhibited; determining data to be displayed in the directory to be displayed of the target high-frequency partition and data to be displayed in a subfolder corresponding to the directory to be displayed in the target idle folder; and merging the data to be displayed in the target high-frequency partition and the data to be displayed in the target idle folder, and displaying the merged data.
Optionally, the apparatus 400 further includes a second presentation module, configured to determine, in response to a data presentation instruction for the low frequency partition, data to be presented in the low frequency partition and data in the target free folder; and displaying the data to be displayed in the low-frequency partition, wherein the data in the target idle file is in a hidden state.
Optionally, the device further comprises a setting module, which is used for determining the idle folder and the file system corresponding to each high-frequency partition; storing directory information and operation functions of the high-frequency partition and the idle folders corresponding to the high-frequency partition into a file system corresponding to the high-frequency partition; the file system is used for blocking a data operation instruction aiming at a high-frequency partition corresponding to the file system, responding to the data operation instruction, and operating the data in the high-frequency partition or an idle folder corresponding to the high-frequency partition based on an operation function corresponding to the data operation instruction, wherein the data operation instruction comprises at least one of a data storage instruction, a data operation instruction and a data display instruction.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Through the technical scheme, at least the following technical effects can be achieved:
the data to be stored in the high-frequency partition can be stored in the target idle folder positioned in the low-frequency partition, the effect of balancing the erasing frequency of each partition of the disk is achieved by transferring the data carried by the high-frequency partition to the low-frequency partition, and the storage positions of the data are more regular and more beneficial to data calling because the high-frequency partition and the target idle folder have a corresponding relationship.
Fig. 5 is a block diagram of an electronic device 500, according to an example embodiment. As shown in fig. 5, the electronic device 500 may include: a processor 501, a memory 502. The electronic device 500 may also include one or more of a multimedia component 503, an input/output (I/O) interface 504, and a communication component 505.
Wherein the processor 501 is configured to control the overall operation of the electronic device 500 to perform all or part of the steps of the data processing method described above. The memory 502 is used to store various types of data to support operation at the electronic device 500, which may include, for example, instructions for any application or method operating on the electronic device 500, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, and so forth. The Memory 502 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 503 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 502 or transmitted through the communication component 505. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 504 provides an interface between the processor 501 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 505 is used for wired or wireless communication between the electronic device 500 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 505 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), digital signal processors (Digital Signal Processor, abbreviated as DSP), digital signal processing devices (Digital Signal Processing Device, abbreviated as DSPD), programmable logic devices (Programmable Logic Device, abbreviated as PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the data processing methods described above.
In another exemplary embodiment, a computer readable storage medium is also provided, comprising program instructions which, when executed by a processor, implement the steps of the data processing method described above. For example, the computer readable storage medium may be the memory 502 described above including program instructions executable by the processor 501 of the electronic device 500 to perform the data processing method described above.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure.
In addition, the specific features described in the foregoing embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, the present disclosure does not further describe various possible combinations.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.

Claims (15)

1. A method of data processing, the method comprising:
the method comprises the steps of intercepting a data storage instruction and data to be stored which are sent to a target high-frequency partition through a file system, wherein the target high-frequency partition is a target high-frequency partition corresponding to the file system;
determining a target idle folder corresponding to the target high-frequency partition;
storing the data to be stored into the target idle folder;
the method comprises the steps that a disk comprises at least one file system, each file system corresponds to one high-frequency partition, the file system stores the corresponding relation between the high-frequency partition and a target idle folder corresponding to the high-frequency partition, idle folders corresponding to sub-directories in the high-frequency partition and located in a low-frequency partition are determined to be the target idle folders corresponding to the high-frequency partition, the target idle folders are located in the low-frequency partition of the disk, and the erasing frequency of the high-frequency partition is higher than that of the low-frequency partition.
2. The method of claim 1, wherein storing the data to be stored in the target free folder comprises:
determining the residual capacity of the target idle folder, judging whether the residual capacity of the target idle folder meets a preset capacity condition, storing the data to be stored into the target idle folder under the condition that the residual capacity of the target idle folder meets the preset capacity condition, and storing the data to be stored into the target high-frequency partition under the condition that the residual capacity of the target idle folder does not meet the preset capacity condition.
3. The method of claim 1, wherein storing the data to be stored in the target free folder comprises:
determining the erasing frequency of the low-frequency partition, judging whether the erasing frequency of the low-frequency partition meets a first erasing condition, storing the data to be stored in the target idle folder when the erasing frequency of the low-frequency partition meets the first erasing condition, and storing the data to be stored in the target high-frequency partition when the erasing frequency of the low-frequency partition does not meet the first erasing condition; or,
Determining the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition, judging whether the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets a second erasing condition, storing the data to be stored into the target idle folder when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition meets the second erasing condition, and storing the data to be stored into the target high-frequency partition when the ratio or the difference between the erasing frequency of the target high-frequency partition and the erasing frequency of the low-frequency partition does not meet the second erasing condition.
4. The method of claim 3, wherein the erasure frequency of the target high frequency partition is determined based on an operation record file of the target high frequency partition, and the erasure frequency of the target free folder is determined based on an operation record file of the target free folder;
the method further comprises the steps of:
when data writing, data reading and data deleting operations are executed on the target high-frequency partition or the target free folder, the operation times and the data change amount are recorded in an operation record file corresponding to the target high-frequency partition or the target free folder.
5. The method according to claim 1, wherein the method further comprises:
acquiring a data processing instruction aiming at the target high-frequency partition;
searching target data to be processed in the target frequency partition and the target idle folder;
and performing data processing operation on the target data based on the type of the data processing instruction, wherein the data processing operation comprises at least one of an opening operation, a modifying operation and a deleting operation.
6. The method of claim 5, wherein the method further comprises:
and determining whether to store the processed target data into the target idle folder based on the residual capacity and/or the erasing frequency of the target idle folder.
7. The method of claim 5, wherein the searching for pending data in the target high frequency partition and the target free folder comprises:
searching the data to be processed in the cache area of the magnetic disk, and searching the data to be processed in the target frequency partition and the target idle folder under the condition that the data to be processed does not exist in the cache area of the magnetic disk.
8. The method of claim 1, wherein the data storage instructions further comprise a target directory, the target directory being any subdirectory in the target high frequency partition;
the step of storing the data to be stored into the target idle folder comprises the following steps of;
and storing the data to be stored into the subfolder corresponding to the target directory in the target idle folder.
9. The method of claim 8, wherein the method further comprises:
acquiring a catalog newly-built instruction or a catalog deleting instruction aiming at the target frequency partition;
creating a catalog corresponding to the catalog creation instruction in the target frequency partition, and creating a catalog corresponding to the catalog creation instruction in the target idle folder; or alternatively, the first and second heat exchangers may be,
and deleting the directory corresponding to the directory deleting instruction in the target high-frequency partition, and deleting the directory corresponding to the directory deleting instruction in the target idle folder.
10. The method of claim 8, wherein the method further comprises:
acquiring a data display instruction aiming at the target high-frequency partition, wherein the data display instruction comprises a catalog to be displayed;
Determining data to be displayed in the directory to be displayed of the target high-frequency partition and data to be displayed in a subfolder corresponding to the directory to be displayed in the target idle folder;
and merging the data to be displayed in the target high-frequency partition and the data to be displayed in the target idle folder, and displaying the merged data.
11. The method according to claim 1, wherein the method further comprises:
determining data to be displayed in the low-frequency partition and data in the target idle folder in response to a data display instruction for the low-frequency partition;
and displaying the data to be displayed in the low-frequency partition, wherein the data in the target idle file is in a hidden state.
12. The method according to any one of claims 1-11, further comprising:
determining an idle folder and a file system corresponding to each high-frequency partition;
storing directory information and operation functions of the high-frequency partition and the idle folders corresponding to the high-frequency partition into a file system corresponding to the high-frequency partition;
the file system is used for blocking a data operation instruction aiming at a high-frequency partition corresponding to the file system, responding to the data operation instruction, and operating the data in the high-frequency partition or an idle folder corresponding to the high-frequency partition based on an operation function corresponding to the data operation instruction, wherein the data operation instruction comprises at least one of a data storage instruction, a data operation instruction and a data display instruction.
13. A data processing apparatus, the apparatus comprising:
the storage instruction acquisition module is used for blocking a data storage instruction and data to be stored which are sent to a target high-frequency partition through a file system, wherein the target high-frequency partition is a target high-frequency partition corresponding to the file system;
the folder determining module is used for determining a target idle folder corresponding to the target high-frequency partition;
the data storage module is used for storing the data to be stored into the target idle folder;
the method comprises the steps that a disk comprises at least one file system, each file system corresponds to one high-frequency partition, the file system stores the corresponding relation between the high-frequency partition and a target idle folder corresponding to the high-frequency partition, idle folders corresponding to sub-directories in the high-frequency partition and located in a low-frequency partition are determined to be the target idle folders corresponding to the high-frequency partition, the target idle folders are located in the low-frequency partition of the disk, and the erasing frequency of the high-frequency partition is higher than that of the low-frequency partition.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1-12.
15. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-12.
CN202110302999.5A 2021-03-22 2021-03-22 Data processing method and device, storage medium and electronic equipment Active CN112988072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110302999.5A CN112988072B (en) 2021-03-22 2021-03-22 Data processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110302999.5A CN112988072B (en) 2021-03-22 2021-03-22 Data processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112988072A CN112988072A (en) 2021-06-18
CN112988072B true CN112988072B (en) 2023-11-14

Family

ID=76334273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110302999.5A Active CN112988072B (en) 2021-03-22 2021-03-22 Data processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112988072B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647007A (en) * 2008-03-01 2010-02-10 株式会社东芝 Memory system
CN111860745A (en) * 2020-08-05 2020-10-30 北京小米移动软件有限公司 Electronic tag, control method and device, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473941B2 (en) * 2008-07-08 2013-06-25 Sandisk Il Ltd. Dynamic file system restriction for portable storage devices
US9430155B2 (en) * 2010-03-25 2016-08-30 International Business Machines Corporation File index, metadata storage, and file system management for magnetic tape
US9720627B2 (en) * 2013-01-17 2017-08-01 Western Digital Technologies, Inc. Data management for a data storage device
CN105530273B (en) * 2014-09-29 2018-08-03 国际商业机器公司 method and apparatus for data migration
US11150817B2 (en) * 2019-02-08 2021-10-19 International Business Machines Corporation Integrating kernel-bypass user-level file systems into legacy applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647007A (en) * 2008-03-01 2010-02-10 株式会社东芝 Memory system
CN111860745A (en) * 2020-08-05 2020-10-30 北京小米移动软件有限公司 Electronic tag, control method and device, and storage medium

Also Published As

Publication number Publication date
CN112988072A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US7809779B2 (en) Method of creating symbolic link capable of being compatible with file system, and method and apparatus for accessing file or directory by using symbolic link
US10303649B2 (en) Storage media abstraction for uniform data storage
US7861311B2 (en) Apparatus and method of managing hidden area
CN102289488B (en) Method of executing data management and mobile terminal
JP2646399B2 (en) Method and apparatus for efficiently managing a write-once volume
CN104915268A (en) Desktop layout storage and recovery method and device thereof, terminal equipment and system
US20080228693A1 (en) Recycle Bin Function
US8533847B2 (en) Apparatus and method for screening new data without impacting download speed
AU2014267783A1 (en) Storage processing method, device and terminal
CN103617039B (en) Method and device for accessing user space file system
CN114020193A (en) Cross-page checking determination method and device, electronic equipment and storage medium
CN112988072B (en) Data processing method and device, storage medium and electronic equipment
CN103544254B (en) A kind of data managing method and device
CN112597102B (en) High-efficiency mirror image file system implementation method
CN111741107B (en) Layering method and device based on file storage system and electronic equipment
CN112286448A (en) Object access method and device, electronic equipment and machine-readable storage medium
CN111737109A (en) Cluster file system testing method and device
US20210141771A1 (en) Method of managing files by mobile device and mobile device for implementing the same
CN101105800B (en) High capacity data record storage method for embedded system
US11762603B2 (en) Storing modified or unmodified portions of a file based on tape loading
WO2023179529A1 (en) Linear tape file system unoptimized read detection
KR101666313B1 (en) UMS type Terminal, Database Renewal System thereof, Method and Computer Program Stored Medium to executing the same
CN116841959A (en) Method for accessing file directory in application, computing device and storage medium
WO2020063042A1 (en) Picture classification method and apparatus, and computer-readable storage medium and electronic device
CN115309699A (en) Method for processing file, 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