CN108197184A - The method and file-storage device, storage device of file storage - Google Patents

The method and file-storage device, storage device of file storage Download PDF

Info

Publication number
CN108197184A
CN108197184A CN201711427518.3A CN201711427518A CN108197184A CN 108197184 A CN108197184 A CN 108197184A CN 201711427518 A CN201711427518 A CN 201711427518A CN 108197184 A CN108197184 A CN 108197184A
Authority
CN
China
Prior art keywords
file
status information
setting
storage
external memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711427518.3A
Other languages
Chinese (zh)
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.)
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless 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 Shenzhen Tinno Mobile Technology Co Ltd, Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Mobile Technology Co Ltd
Priority to CN201711427518.3A priority Critical patent/CN108197184A/en
Publication of CN108197184A publication Critical patent/CN108197184A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/185Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

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

This application discloses the methods and file-storage device, storage device of file storage.Wherein, this method includes:Detection obtains being stored in the status information of the first file in the external memory of file-storage device;Judge whether the status information of first file meets first movement condition;If so, first file is moved to from the external memory in the built-in storage of the file-storage device.Said program can improve access speed of the file-storage device to its storage file.

Description

The method and file-storage device, storage device of file storage
Technical field
This application involves field of storage, more particularly to file memory method and file-storage device, storage device.
Background technology
With the fast development of electronic technology, each class of electronic devices all starts to realize intelligence, such as mobile phone, tablet computer Deng function is more and more, stronger and stronger, and people have be unable to do without these electronic equipments in daily life.
During the routine use electronic equipment of people, it will usually many files are stored with the electronic equipment, such as Photograph, video and music etc..Below pair can the electronic equipment of storage file be referred to as file-storage device.Since file storage is set The access speed of standby built-in storage is fast, but space generally requires the external memory for using file-storage device than relatively limited Partial document is stored.External memory is, for example, external memory card (sdcard) etc., due to there are many type of external memory, The differences such as speed grade, amount of capacity, the external memory quality of different manufacturers production is also irregular, leads to file-storage device When carrying out data access to external memory, read or write speed is slow.Therefore to external memory read file such as broadcasting video or When loading mass file, since reading speed is too slow, cause to play video cardton or open file to take a long time, serious shadow User experience is rung.
Invention content
The application is mainly solving the technical problems that provide file memory method and file-storage device, storage device, energy Enough improve access speed of the file-storage device to its storage file.
To solve the above-mentioned problems, the application first aspect provides a kind of method of file storage, the method includes:
Detection is stored in the status information of the first file in the external memory of file-storage device;
Judge whether the status information of first file meets first movement condition;
If so, first file is moved to the built-in storage of the file-storage device from the external memory In.
To solve the above-mentioned problems, the application second aspect provides a kind of file-storage device, including built-in storage, outside Memory and processor;The processor is used to run computer instruction to perform above-mentioned method.
To solve the above-mentioned problems, the application third aspect provides a kind of storage device, and being stored with processor can run Computer instruction, the computer instruction is for performing above-mentioned method.
In said program, file-storage device detects the file status of external memory, and is judging that this document state meets During first movement condition, the file of external memory is moved to from external memory in built-in storage, since built-in storage is compared with external memory The access speed of reservoir is fast, therefore the file for meeting correlated condition is moved in built-in storage and is stored, and can improve file storage Equipment reduces since external memory access speed is slow the access speed of the storage file, and it is slow that file is caused to read Situation substantially improves user experience.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of method of present specification storage;
Fig. 2 is the flow diagram of another embodiment of method of present specification storage;
Fig. 3 is the part flow diagram of the method another embodiment of present specification storage;
Fig. 4 is the structure diagram of one embodiment of present specification storage device;
Fig. 5 is the structure diagram of one embodiment of the application storage device.
Specific embodiment
With reference to the accompanying drawings of the specification, the scheme of the embodiment of the present application is described in detail.
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology it The detail of class, to understand thoroughly the application.
Referring to Fig. 1, Fig. 1 is the flow chart of one embodiment of method of present specification storage.In the present embodiment, this method By be provided with built-in storage and external memory file-storage device perform, wherein, the external memory be, for example, external memory card, Connect with file-storage device USB or built-in file-storage device in storage hard disk etc..This document storage device is that can deposit The electronic equipment of file is stored up, the mobile phone or tablet computer of built-in storage and external memory card are for example, built-in with, in another example being interior It is equipped with computer of built-in storage and storage hard disk etc..This method specifically includes following steps:
S101:File-storage device detection is stored in the status information of the first file in its external memory.
In the present embodiment, file-storage device is equipped with built-in storage and external memory, and general memory reservoir compares external memory Access speed (alternatively referred to as access speed or transmission speed) it is fast.File-storage device can will be stored according to file status File moved between built-in storage and external memory.Specifically such as, file-storage device is periodical or refers to receiving triggering When enabling (detection instruction such as input by user), the first file stored in its external memory is scanned, it is obtained with detection The identification information and its status information of at least one first file stored in external memory, and record the letter that above-mentioned detection obtains Breath.Wherein, the status information of first file includes following at least one:File size and the access time in setting time Number.The identification information of first file is used to identify first file, for example, file name of first file.The period can Think 5 minutes or 10 minutes, generally will not be too short by period setting, it can generate some shadows to avoid to system load and power consumption It rings.
S102:File-storage device judges whether the status information of the first file meets first movement condition;If so, it holds Otherwise row S103 does not carry out first file mobile processing.
The first movement condition is, for example, whether the status information of file is greater than or equal to the first setting status information.One In application scenarios, this document status information includes the access times in file size and setting time.Accordingly, first setting Status information includes the first setting file size and the first setting access times.File-storage device judges first that detection obtains Whether the file size of file is greater than or equal to the first setting file size, and access of first file in setting time time Whether number is greater than or equal to the first setting access times, if being to be greater than or equal to, it is determined that the state letter of first file Breath meets first movement condition.
Certainly, first movement condition can be set as other content also according to actual demand, for example, the file size of file and Access times any one be greater than or equal to corresponding setting value or both weighted sums be greater than or equal to a setting and, therefore This is not limited.
S103:First file is moved to built-in storage by file-storage device from external memory.
When the status information for judging the first file meets first movement condition, then it is assumed that first file is more suitable for being stored in In built-in storage, and then first file is moved to the memory of file-storage device from the external memory of file-storage device It is stored in reservoir.Such as when the first file is in that file is excessive and during the frequent state of file access, file-storage device will First file is stored in access speed compared with the access speed that in the faster built-in storage of external memory, thus can improve this document Degree, and then user experience can be improved.Certainly, for the first file that file is little or access is less, then memory need not be moved to In reservoir, to avoid the space of committed memory reservoir, and since file is little or it is less to access, therefore even if it is stored in access speed In not high external memory, read access time will not be long or will not be often read, and then user experience is not had too It is big to influence.
In the present embodiment, file-storage device detects the file status of external memory, and is judging that this document state meets During first movement condition, the file of external memory is moved to from external memory in built-in storage, since built-in storage is compared with external memory The access speed of reservoir is fast, therefore the file for meeting correlated condition is moved in built-in storage and is stored, and can improve file storage Equipment reduces since external memory access speed is slow the access speed of the storage file, and it is slow that file is caused to read Situation substantially improves user experience.
In another embodiment, file-storage device can also set different shiftings according to the external memory of different access rate Dynamic condition.Referring to Fig. 2, Fig. 2 is the flow chart of another embodiment of present specification storage method.The present embodiment method is by above-mentioned File-storage device performs, and includes the following steps:
S201:File-storage device detection is stored in the status information of the first file in its external memory.
The explanation of above-mentioned S101 please be participated in by specifically describing.
S202:File-storage device obtain external memory access speed, and from setting set of state information in, obtain with The corresponding first setting status information of access speed.
Setting state set is stored in file-storage device, the setting set of state information include by it is multiple respectively with not The corresponding first setting status information with access speed.
In the present embodiment, which is set as different rates grade and corresponds to different set status information, Wherein, each speed grade corresponds to one group of access speed range, and it is big that each first setting status information includes the first setting file It is small and first setting access times (in other embodiments, also can only include it is above-mentioned one of them or including other information). The speed grade specification of the storage external can be formulated by associated mechanisms or user pre-sets, and speed grade is lower, deposits Take speed slower.In an application, as shown in following table one, setting set of state information includes two institute of following table for speed grade setting The the first setting status information shown.
Table one
Speed grade Access speed (MB)
Class 0 <2
Class 2 2
Class 4 4
Class 6 6
Class 10 10
Table two
Speed grade First setting file size (MB) First setting access times
Class 0 1 3
Class 2 3 5
Class 4 8 7
Class 6 15 10
Class 10 24 14
After file-storage device determines to store the access speed of the external memory of first file, upper table one is inquired, with true The speed grade of the fixed external memory.File-storage device is corresponding to obtain using determining speed grade inquiry upper table two First setting status information.For example, the storage speed of external memory is 2, then corresponding speed grade is class2, and first sets File size is 3MB, and first sets access times as 5.
It is understood that the Provisioning Policy of above-mentioned first setting file size and the first setting access times can be as follows: External memory speed grade is lower, and access speed is slower, and efficiency is lower when file-storage device accesses file, therefore the first setting text Part size and the first setting access times are required for setting smaller.The corresponding setting time of the access times can with but be not limited to 2 hours or 3 hours.Above-mentioned set information can be according to needing to be modified, and upper table one and upper table two are an example.
S203:It is corresponding with the access speed that file-storage device judges whether the status information of first file is more than First setting status information.
For example, file-storage device judges whether the file size of the first file is greater than or equal to first that S202 is obtained and sets Determine file size, and judge whether the access times in setting time of the first file are greater than or equal to the first setting access time Number, if being, performs S204, otherwise it is assumed that the first file need not be moved in built-in storage, therefore not to first file into The mobile processing of row.
S204:First file is moved to from external memory in built-in storage by file-storage device.
The explanation of above-mentioned S103 please be participated in by specifically describing.
The present embodiment further sets the first different setting status informations according to the access rate of external memory, and then leads Causing the corresponding first movement condition of the file that the external memory of different access rates stores, there is also differences, thus may be such that access The file of the low external memory of rate, is more moved in built-in storage, and the file of the high external memory of access rate is then opposite It is moved to built-in storage less, realizes the flexible and reasonable movement of file.
Referring to Fig. 3, Fig. 3 is the part flow diagram of present specification storage method another embodiment.The present embodiment Method can be performed by above-mentioned file-storage device, the present embodiment method in addition to including above-mentioned method and step shown in fig. 1 or fig. 2, It is further comprising the steps of:
S301:File-storage device detection is stored in the status information of the second file in its built-in storage.
Its detection mode specifically sees the state-detection of external memory file described in above-mentioned S101, does not do herein superfluous It states.
S302:File-storage device judges whether the status information of the second file does not meet first movement condition and meet Two mobile conditions.If the status information of the second file does not meet first movement condition and meets the second mobile condition, perform S303;Otherwise mobile processing is not carried out to the second file.
The first movement condition specifically sees above-mentioned two embodiment.
As described by above-described embodiment, size and/or the access in setting time that file status information includes file Number.Accordingly, when the status information includes the size of file, the size that second mobile condition includes file is more than Or equal to the second setting file size;When the status information includes access times of the file in setting time, described the Two mobile conditions include access times of the file in setting time and are less than the second setting access times.
In the present embodiment, status information includes the access times in the size and setting time of file, file-storage device The the second setting status information to prestore includes the second setting file size and the second setting access times.File-storage device is then sentenced Whether the file size of disconnected second file is less than the first setting file size or setting time described in above-described embodiment Whether interior access times are less than the above-mentioned first setting access times, if one of judging result is yes, it is determined that the second text Relationship between the status information of part and above-mentioned first setting status information does not meet first movement condition, and judge the second file Whether file size is greater than or equal to the second setting file size, and whether access times are less than the second setting visit in setting time Number is asked, if judging result is, it is determined that the relationship between the status information of the second file and above-mentioned second setting status information The second mobile condition is not met.
Certainly, similar to above-mentioned first movement condition, more than only illustrate the content of the second mobile condition, in other realities It applies in example, can in the light of actual conditions adjust the content of second mobile condition.
S303:Second file is moved to external memory by file-storage device from built-in storage.
When the status information for the second file for judging built-in storage meets first movement condition, then it is assumed that second file is more It is suitble to be stored in built-in storage.When the status information for judging second file does not meet first movement condition and meets the second shifting Dynamic condition, then it is assumed that second file can be stored in external memory, and then by second file from the memory of file memory It is moved in the external memory of file memory and is stored in reservoir.Such as there is a certain size and file when the second file is in When accessing state infrequently, which is stored in the access speed external memory slow compared with built-in storage by file-storage device In reservoir, the occupancy to the memory space of built-in storage thus can be reduced, moreover, for the second less text of such file access Part is then moved in external memory storage, will not often be read, therefore not have too big influence on user experience.And for Smaller second file of file, is retained in built-in storage, will not the excessive space of committed memory reservoir.
Further, similar to above-mentioned embodiment illustrated in fig. 2, file-storage device can also correspond to the access speed of external memory It spends and different second is set to set status information.For example, this method further includes in another embodiment:Obtain the outer storage The access speed of device, and from setting set of state information, obtain the second setting status information corresponding with the access speed; Whether the status information for judging second file in above-mentioned S302 meets the second mobile condition, including:Described in judgement It is described whether the relationship between the status information of the second file the second setting status information corresponding with the access speed meets Second mobile condition;Above-mentioned S303 includes:Second file is moved to and the access speed pair from the built-in storage The external memory answered.
Wherein, the setting set of state information is included by multiple second setting shapes corresponding from different access speeds respectively State information, the second setting status information include at least one of the second setting file size and the second setting access times.
In the present embodiment, which is set as different rates grade and corresponds to different set status information, Wherein, the corresponding access speed of each speed grade can be as shown in upper table one, and set that set of state information includes second sets Determining status information can be as shown in following table three.
Table three
Speed grade Second setting file size (MB) Second setting access times
Class 0 0.5 0
Class 2 1 1
Class 4 3 2
Class 6 8 3
Class 10 15 5
With reference to upper table three for example, file-storage device determines to traverse the access speed of all external memorys of its setting Degree, and upper table one is inquired, to determine the speed grade of each external memory.File-storage device is looked into using determining speed grade Upper table two and table three are ask, to obtain the first of corresponding speed grade the setting status information and the second setting status information, using every First setting status information of a external memory and the second setting status information, judge the second file in built-in storage relative to Whether the external memory does not meet first movement condition and meets the second mobile condition, if so, the second file is moved to symbol In the correspondence external memory for closing the mobile condition.For example, the storage speed of external memory A is 2, then corresponding speed grade is Class2, first sets file size as 3MB, and first sets access times as 5, and second sets file size as 1MB, and second Access times are set as 1.The size of the second file in built-in storage is 2MB, and the access times in setting time are 0, then It determines second file being moved in external memory A from built-in storage.
It is understood that the Provisioning Policy of above-mentioned second setting file size and the second setting access times can be as follows: External memory speed grade is lower, and access speed is slower, and efficiency is lower when file-storage device accesses file, so the second setting File size and second setting access times be required for setting it is smaller, and second setting file size and second setting access time Number is necessarily less than corresponding status information in table two, and to ensure compliance with the second mobile condition when does not meet first movement condition then. Above-mentioned set information can be according to needing to be modified, and upper table three is an example.
In the present embodiment, file-storage device detects the file status of built-in storage, and is judging that this document state is not inconsistent When closing first movement condition and meeting the second mobile condition, the file of built-in storage is moved to external memory from built-in storage In, and then save the memory space of built-in storage.
Referring to Fig. 4, Fig. 4 is the structure diagram of one embodiment of present specification storage device.In the present embodiment, this article Part storage device 40 includes built-in storage 41, processor 42 and external memory 43.Wherein, each group of file-storage device 40 The conducting wire of processor and each component can be coupled by part respectively by signal wire such as bus or several, to realize terminal 40 Each component between be to realize to be connected with each other or realize that other assemblies in addition to processor are all connected to the processor 42. This document storage device 40 may also include the telecommunication circuit being connect with processor and display screen etc..Telecommunication circuit is used to set with other It is standby to realize communication, it specifically may include transmitters and receivers.Display screen realizes display for the idsplay order of answer processor 42.
Built-in storage 41 is used to store the computer instruction of the execution of processor 42, can be additionally used in storage processor 42 and is locating Data during reason, wherein, which includes non-volatile memory portion, for storing above computer instruction. In another embodiment, which can only cache the computer of the processor 42 execution as the memory of processor 42 Instruction, the computer instruction actual storage is in the external equipment of external memory 43 or terminal, and processor 42 is by calling external deposit The computer instruction of storage, to perform respective handling.
Processor 42 controls the operation of this document storage device 40, and processor 42 can also be known as CPU (Central Processing Unit, central processing unit).Processor 42 may be a kind of IC chip, have the processing energy of signal Power.Processor 42 can also be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made compile Journey gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.It is logical It can be microprocessor with processor or the processor can also be any conventional processor etc..
In the present embodiment, processor 42 is used for the computer instruction by the way that built-in storage 41 is called to store, and performs as follows Operation:
Detection is stored in the status information of the first file in external memory 43;
Judge whether the status information of first file meets first movement condition;
If so, first file is moved to from the external memory 43 in built-in storage 41.
Optionally, the status information includes file size and/or the access times in setting time;Described first moves Dynamic condition includes the status information and is greater than or equal to the first setting status information.Accordingly, when status information is big including file Hour, whether the file size that first movement condition includes first file is greater than or equal to the first setting file size;When When status information includes the access times in setting time, first movement condition includes first file in setting time Access times whether be greater than or equal to first setting access times.
Further, processor 42 is additionally operable to obtain the access speed of the external memory 43, and from setting status information In set, the first setting status information corresponding with the access speed is obtained;Wherein, the setting set of state information includes By multiple first setting status informations corresponding from different access speeds respectively, which is storable in memory In reservoir 41 or external memory 43.Processor 42 performs whether the status information for judging first file meets the first shifting Dynamic condition, including:Judge whether the status information of first file is greater than or equal to corresponding with the access speed first Set status information.
Optionally, processor 42 is additionally operable to the status information for the second file that detection is stored in the built-in storage 41; Judge whether the status information of second file does not meet the first movement condition and meet the second mobile condition;If so, Second file is then moved to the external memory 43 from the built-in storage 41.
Further, the size and/or the access times in setting time that the status information includes file;When described When status information includes the size of file, the size that second mobile condition includes file is big more than or equal to setting file It is small;When the status information includes access times of the file in setting time, second mobile condition exists including file Access times in setting time are less than setting access times.
Further, processor 42 is additionally operable to obtain the access speed of the external memory 43, and from setting status information In set, the second setting status information corresponding with the access speed is obtained;Wherein, the setting set of state information includes By multiple second setting status informations corresponding from different access speeds respectively, the second setting status information includes setting text At least one of part size and setting access times;
Processor 42 performs whether the status information for judging second file meets the second mobile condition, including: Judge second file status information it is corresponding with the access speed second setting status information between relationship whether Meet second mobile condition;
Processor 42 perform it is described second file is moved to the external memory from the built-in storage, including: Second file is moved to external memory 43 corresponding with the access speed from the built-in storage 41.
Optionally, in the setting set of state information, different rates grade corresponds to different set status information, In, each speed grade corresponds to one group of access speed range.Moreover, the detection of the status information can be periodical execution 's.
In another embodiment, the processor 42 of this document storage device is additionally operable to the method for performing above-described embodiment.
Referring to Fig. 5, the application also provides a kind of structure diagram of the embodiment of storage device.It, should in the present embodiment Storage device 50 is stored with the computer instruction 51 that processor can be run, which is used to perform in above-described embodiment Method.
The storage device 51 be specifically as follows USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. can store computer instruction Medium may be the server for being stored with the computer instruction, which can send the computer instruction of storage To other equipment operation or can also the self-operating storage computer instruction.
In one embodiment, storage device 51 can also be built-in storage 41 or external memory 43 as shown in Figure 4.
In several embodiments provided herein, it should be understood that disclosed method and apparatus can pass through it Its mode is realized.For example, device embodiments described above are only schematical, for example, stroke of module or unit Point, only a kind of division of logic function can have other dividing mode, such as multiple units or component can in actual implementation To combine or be desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit Component may or may not be physical unit, you can be located at a place or can also be distributed to multiple networks On unit.Some or all of unit therein can be selected according to the actual needs to realize the mesh of present embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If integrated unit realized in the form of SFU software functional unit and be independent product sale or in use, can To be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application substantially or Saying all or part of the part contribute to the prior art or the technical solution can be embodied in the form of software product Out, which is stored in a storage medium, is used including some instructions so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform each implementation of the application The all or part of step of methods.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various The medium of program code can be stored.
It these are only presently filed embodiment, not thereby limit the scope of the claims of the application, it is every to utilize the application The equivalent structure or equivalent flow shift that specification and accompanying drawing content are made directly or indirectly is used in other relevant technologies Field similarly includes in the scope of patent protection of the application.

Claims (10)

  1. A kind of 1. method of file storage, which is characterized in that the method includes:
    Detection is stored in the status information of the first file in the external memory of file-storage device;
    Judge whether the status information of first file meets first movement condition;
    If so, first file is moved to from the external memory in the built-in storage of the file-storage device.
  2. 2. according to the method described in claim 1, it is characterized in that, the status information includes file size and/or is setting Access times in time;
    The first movement condition includes the status information and is greater than or equal to the first setting status information.
  3. 3. it according to the method described in claim 2, it is characterized in that, further includes:
    The access speed of the external memory is obtained, and from setting set of state information, is obtained corresponding with the access speed First setting status information;Wherein, the setting set of state information is included by multiple corresponding from different access speeds respectively First setting status information;
    Whether the status information for judging first file meets first movement condition, including:
    Judge whether the status information of first file is greater than or equal to the first setting state corresponding with the access speed Information.
  4. 4. it according to the method described in claim 1, it is characterized in that, further includes:
    Detection is stored in the status information of the second file in the built-in storage;
    Judge whether the status information of second file does not meet the first movement condition and meet the second mobile condition;
    If so, second file is moved to the external memory from the built-in storage.
  5. 5. according to the method described in claim 4, it is characterized in that, the status information includes the size of file and/or is setting Access times in fixing time;
    When the status information includes the size of file, size of second mobile condition including file, which is greater than or equal to, to be set Determine file size;When the status information includes access times of the file in setting time, the second mobile condition packet It includes access times of the file in setting time and is less than setting access times.
  6. 6. it according to the method described in claim 5, it is characterized in that, further includes:
    The access speed of the external memory is obtained, and from setting set of state information, is obtained corresponding with the access speed Second setting status information;Wherein, the setting set of state information is included by multiple corresponding from different access speeds respectively Second setting status information, it is described second setting status information include setting file size and set access times at least one Kind;
    Whether the status information for judging second file meets the second mobile condition, including:
    Judge the relationship between status information the second setting status information corresponding with the access speed of second file Whether second mobile condition is met;
    It is described that second file is moved to the external memory from the built-in storage, including:
    Second file is moved to external memory corresponding with the access speed from the built-in storage.
  7. 7. the method according to claim 2 or 5, which is characterized in that in the setting set of state information, different rates Grade corresponds to different set status information, wherein, each speed grade corresponds to one group of access speed range.
  8. 8. the method according to claim 1 or 4, which is characterized in that the detection of the status information periodically performs.
  9. 9. a kind of file-storage device, which is characterized in that including built-in storage, external memory and processor;
    The processor requires 1 to 8 any one of them method for running computer instruction with perform claim.
  10. 10. a kind of storage device, which is characterized in that be stored with the computer instruction that processor can be run, the computer instruction 1 to 8 any one of them method is required for perform claim.
CN201711427518.3A 2017-12-25 2017-12-25 The method and file-storage device, storage device of file storage Pending CN108197184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711427518.3A CN108197184A (en) 2017-12-25 2017-12-25 The method and file-storage device, storage device of file storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711427518.3A CN108197184A (en) 2017-12-25 2017-12-25 The method and file-storage device, storage device of file storage

Publications (1)

Publication Number Publication Date
CN108197184A true CN108197184A (en) 2018-06-22

Family

ID=62584010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711427518.3A Pending CN108197184A (en) 2017-12-25 2017-12-25 The method and file-storage device, storage device of file storage

Country Status (1)

Country Link
CN (1) CN108197184A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100325352A1 (en) * 2009-06-19 2010-12-23 Ocz Technology Group, Inc. Hierarchically structured mass storage device and method
CN102770841A (en) * 2010-02-26 2012-11-07 三星电子株式会社 Method and apparatus for generating minimum boot image
CN103678143A (en) * 2012-09-25 2014-03-26 联想(北京)有限公司 File storage method and device and electronic equipment
CN103885901A (en) * 2012-12-21 2014-06-25 联想(北京)有限公司 File reading method, memory device and electronic device
CN105653642A (en) * 2015-12-25 2016-06-08 曙光信息产业股份有限公司 Data management method and device of distributed file system
CN105677742A (en) * 2015-12-30 2016-06-15 深圳市瑞驰信息技术有限公司 Method and apparatus for storing files
CN105718530A (en) * 2016-01-15 2016-06-29 上海磁宇信息科技有限公司 File storage system and file storage control method thereof
CN107122135A (en) * 2017-04-25 2017-09-01 北京小米移动软件有限公司 Data processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100325352A1 (en) * 2009-06-19 2010-12-23 Ocz Technology Group, Inc. Hierarchically structured mass storage device and method
CN102770841A (en) * 2010-02-26 2012-11-07 三星电子株式会社 Method and apparatus for generating minimum boot image
CN103678143A (en) * 2012-09-25 2014-03-26 联想(北京)有限公司 File storage method and device and electronic equipment
CN103885901A (en) * 2012-12-21 2014-06-25 联想(北京)有限公司 File reading method, memory device and electronic device
CN105653642A (en) * 2015-12-25 2016-06-08 曙光信息产业股份有限公司 Data management method and device of distributed file system
CN105677742A (en) * 2015-12-30 2016-06-15 深圳市瑞驰信息技术有限公司 Method and apparatus for storing files
CN105718530A (en) * 2016-01-15 2016-06-29 上海磁宇信息科技有限公司 File storage system and file storage control method thereof
CN107122135A (en) * 2017-04-25 2017-09-01 北京小米移动软件有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
CN110781129B (en) Resource scheduling method, device and medium in FPGA heterogeneous accelerator card cluster
CN106170757B (en) A kind of date storage method and device
KR20060129873A (en) Method for executing garbage collection of mobile terminal
CN109257758B (en) Network capacity expansion method and device
CN108205498B (en) Memory recovery method and device, computer device and computer readable storage medium
CN103491152A (en) Metadata obtaining method, device and system in distributed file system
CN111858034B (en) Resource management method, system, device and medium
CN113419679B (en) Storage device, system-on-chip, electronic equipment and storage method
CN107329991A (en) A kind of list access to web page and methods of exhibiting and its system
CN104601683A (en) File download management method, mobile terminal and communication system
CN108512768B (en) Access amount control method and device
CN104657435A (en) Storage management method for application data and network management system
CN109391978A (en) Terminal switching method and device
CN110543435B (en) Mixed mapping operation method, device and equipment of storage unit and storage medium
CN108205501B (en) Memory recovery method and device, computer device and computer readable storage medium
CN103543901A (en) Method and device for generating menus
CN108287761B (en) Memory recovery method and device, terminal equipment and computer readable storage medium
CN105320543B (en) The method and apparatus for loading software module
CN108228340B (en) Terminal control method and device, terminal equipment and computer readable storage medium
CN112559642A (en) Data classification storage method and device and related products
CN105763616A (en) Resource-downloading method and device
CN111597129B (en) Cache management method and device, storage medium and solid-state nonvolatile storage device
CN112558872A (en) Data processing method and device, storage medium and electronic equipment
CN108197184A (en) The method and file-storage device, storage device of file storage
CN108228472B (en) Terminal device control method and device, terminal device and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622