CN106775488A - The storage method and mobile terminal of a kind of file - Google Patents

The storage method and mobile terminal of a kind of file Download PDF

Info

Publication number
CN106775488A
CN106775488A CN201611226950.1A CN201611226950A CN106775488A CN 106775488 A CN106775488 A CN 106775488A CN 201611226950 A CN201611226950 A CN 201611226950A CN 106775488 A CN106775488 A CN 106775488A
Authority
CN
China
Prior art keywords
file
storage
fileinfo
volume
storage device
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
CN201611226950.1A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611226950.1A priority Critical patent/CN106775488A/en
Publication of CN106775488A publication Critical patent/CN106775488A/en
Pending legal-status Critical Current

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • 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
    • G06F3/0613Improving I/O performance in relation to throughput
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides the storage method and mobile terminal of a kind of file, the method application in the terminal, including:According to the fileinfo of file to be stored in file system, the file is distributed to the storage region in logical volume;In logical volume by the fileinfo send to the storage region mapping physical volume;The file is stored into corresponding storage device according to the fileinfo in physical volume.When multiple physical volumes can wait certain storage device with concurrent access multiple storage device data storages, processor and interior presence, data can be transmitted with another storage device, therefore improve overall data throughout.

Description

The storage method and mobile terminal of a kind of file
Technical field
The present invention relates to communication technical field, more particularly to a kind of file storage method and a kind of mobile terminal.
Background technology
With the development of mobile communication technology, mobile terminal has become a part indispensable during people live, real Accessible call is whenever and wherever possible showed, also, has been usually mounted with many applications in the terminal, there is provided many conventional work( Can, bring convenience to people's lives.
The use fluency of mobile terminal is one of important indicator of Consumer's Experience, and fluency is used in order to improve, at present, Many mobile terminals use buffer memory file, to improve storage speed.
One of which cache policy is to use independent read and write cache, and it is based on the performance of cache come automatic With the cache arrangement for dynamically adjusting reading cache and write cache.
But, extra hardware is needed using caching, for example, using DRAM (Dynamic Random Access Memory, dynamic random access memory) or SRAM (Static Random Access Memory, SRAM) As physical medium, high cost.
Additionally, needing complicated cache algorithm using caching, design difficulty is big.
And, operating system is generally all designed with caching, and (Random Access Memory, deposit at random using RAM Access to memory) as buffer memory device, operating system cache policy in itself may be influenceed using new buffer memory device and strategy.
The content of the invention
The embodiment of the present invention provides the storage method and mobile terminal of a kind of file, to solve to use caching in mobile terminal High cost that storage file causes, design difficulty are big, the problem of influence operating system cache policy in itself.
First aspect, there is provided a kind of storage method of file, using in the terminal, methods described includes:
According to the fileinfo of file to be stored in file system, the file is distributed to the storage in logical volume Region;
In logical volume by the fileinfo send to the storage region mapping physical volume;
The file is stored into corresponding storage device according to the fileinfo in physical volume.
A kind of second aspect, there is provided mobile terminal, including:
Logical volume distribute module, for the fileinfo in file system according to file to be stored, by the file Distribution is extremely in the storage region of logical volume;
Physical volume notification module, for sending the fileinfo in logical volume to the thing of storage region mapping Reason volume;
File storage module, for being stored to corresponding storage the file according to the fileinfo in physical volume In equipment.
So, in the embodiment of the present invention, logical volume is disposed in the terminal, the logic volume mapping one or more physics Volume, according to the fileinfo of file to be stored in file system, file is distributed to the storage region in logical volume, logical volume Fileinfo is sent to the physical volume of storage region mapping, physical volume is according to fileinfo by the data storage of part to corresponding Storage device in, when file is distributed to multiple physical volume memory storage devices, multiple physical volumes can be multiple with concurrent access When storage device data storage, processor and interior certain storage device in the presence of wait, can be transmitted with another storage device Data, therefore overall data throughout is improve, the handling capacity sum of multiple storage devices is ideally can reach, and then Improve the storage speed of mobile terminal, while, it is to avoid deployment caching, so save draw deployment caching and cause it is extra Cost, reduces design difficulty, it is to avoid to operating system, cache policy is impacted in itself.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by institute in the description to the embodiment of the present invention The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the storage method of the file of one embodiment of the invention.
Fig. 2 is a kind of physical arrangement schematic diagram of the storage system of mobile terminal of one embodiment of the invention.
Fig. 3 is the physical arrangement schematic diagram of the storage system of another mobile terminal of one embodiment of the invention.
Fig. 4 is the flow chart of the storage method of the file of another embodiment of the present invention.
Fig. 5 is a kind of logical construction schematic diagram of the traditional storage system of mobile terminal.
The logical construction schematic diagram of storage system when Fig. 6 is a kind of mobile terminal application cache.
Fig. 7 is a kind of logical construction schematic diagram of storage system of one embodiment of the invention.
Fig. 8 is the block diagram of the mobile terminal of one embodiment of the invention.
Fig. 9 is the block diagram of the file storage module of one embodiment of the invention.
Figure 10 is the block diagram of the mobile terminal of another embodiment of the present invention.
Figure 11 is the block diagram of the mobile terminal of another embodiment of the present invention.
Figure 12 is the block diagram of the mobile terminal of another embodiment of the present invention.
Figure 13 is the block diagram of the mobile terminal of another embodiment of the present invention.
Figure 14 is the structural representation of the mobile terminal of another embodiment of the invention
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
First embodiment
Reference picture 1, shows the flow chart of the storage method of the file of one embodiment of the invention, can specifically include such as Lower step:
Step 101, according to the fileinfo of file to be stored in file system, the file is distributed in logic The storage region of volume.
In implementing, the embodiment of the present invention can be using in the terminal, for example, mobile phone, panel computer, individual Digital assistants, wearable device (such as bracelet, glasses, wrist-watch) etc..
The operating system of these mobile terminals can include Android (Android), IOS, Windows Phone, Windows Etc..
In embodiments of the present invention, the storage device of multiple physics is passed through into LVM (Logical Volume Manager, LVM) a storage device RAID0 for logic is configured to, can be in physics to a sequential access for logical device On be distributed on multiple physical equipments.
In implementing, the LVM can be organized as one or more physical volumes (physical Volume, PV) and logical volume (logical volume, LV).
Wherein, physical volume is disk, disk partition or logically has the equipment of said function with disk partition (such as RAID), it is the basic storage logical block of LVM, but compares with basic physical storage medium (such as subregion, disk), but includes There are the management parameters related to LVM.
The volume group (volume group, VG) of LVM is made up of one or more physical volumes, and volume group can be divided logically One or more " LVM subregions " (logical volumes).
File system (such as/home or/usr etc.) can be set up on logical volume.
If file system is usually the classification tree structure being made up of individual file and catalogue, file system is by a mounting Point (mount point) is connected on a node of operating system, and such file system can easily be installed, dismantled and standby Part, recovery.
In order to strengthen the function of the operating system of mobile terminal, user installs respectively generally in the operating system of mobile terminal Application is planted, for example, address list, immediate communication tool, browser, video player, audio player, mailbox client, shopping Using, pay application, etc., these application be operationally frequently necessary to storage file.
In file system, the fileinfo of file to be stored can be obtained, for example, file path, filename, file Size, file format, etc..
And then which data according to this document information (such as file size) distribution file are entered in which region of logical volume Row storage.
The volume of file may be larger, accordingly, it is possible to distribute to multiple regions be stored.
Step 102, in logical volume by the fileinfo send to the storage region mapping physical volume.
In logical volume, a storage region is mapped in a physical volume.
When file system distribution file is completed, fileinfo (such as file path, the distribution of the file that will can be assigned to To Data Position, the size of data that is assigned to etc.) send to the physical volume of storage region mapping.
Step 103, stores into corresponding storage device the file according to the fileinfo in physical volume.
In the terminal, can be using flash memory as storage device, such as UFS (unix filesystem), eMMC (Embedded Multi Media Card, embedded memory standard specification).
Referring to Fig. 2, the physical arrangement for illustrating a kind of storage system of mobile terminal of one embodiment of the invention is illustrated Figure.
As shown in Fig. 2 multiple flash memories (such as eMMC, UFS) be connected in parallel to mobile terminal SoC (System on Chip, System level chip) on chip, CPU (Central Processing Unit, central processing unit) and total is contained in SoC chip Line.
Before storage device (such as eMMC, UFS) is written to, file is stored in RAM file.
The data of file can be read from internal memory according to fileinfo in physical volume.
By the data is activation of file to device drives in physical volume.
During the data of file are write into corresponding storage device in device drives.
Referring to Fig. 3, the physical arrangement for illustrating the storage system of another mobile terminal of one embodiment of the invention is shown It is intended to, wherein, arrow represents bus.
Data processor (Central Processing Unit, CPU), internal memory (RAM) and storage device (eMMC or Person UFS) between transmit, processing speed is generally processor and internal memory is faster than storage device (eMMC or UFS), when processor and When internal memory treatment is completed, storage device is typically untreated to be finished, and processor and internal memory wait storage device.
So, in the embodiment of the present invention, logical volume is disposed in the terminal, the logic volume mapping one or more physics Volume, according to the fileinfo of file to be stored in file system, file is distributed to the storage region in logical volume, logical volume Fileinfo is sent to the physical volume of storage region mapping, physical volume is according to fileinfo by the data storage of part to corresponding Storage device in, when file is distributed to multiple physical volume memory storage devices, multiple physical volumes can be multiple with concurrent access When storage device data storage, processor and interior certain storage device in the presence of wait, can be transmitted with another storage device Data, therefore overall data throughout is improve, the handling capacity sum of multiple storage devices is ideally can reach, and then Improve the storage speed of mobile terminal, while, it is to avoid deployment caching, so save draw deployment caching and cause it is extra Cost, reduces design difficulty, it is to avoid to operating system, cache policy is impacted in itself.
Second embodiment
Reference picture 4, shows the flow chart of the storage method of the file of another embodiment of the present invention, can specifically include Following steps:
Step 401, by system image programming to the storage device for being used to create physical volume.
In embodiments of the present invention, when carrying out system programming to mobile terminal (raw device), because mobile terminal is not transported Row operating system, therefore, in the absence of logical volume.
But, the mobile terminal in the embodiment of the present invention is (such as data point of carry storage device in the way of logical volume Area), so, at programming mobile terminal (raw device), can by system image (image file of operating system) refer to from Start programming in first storage device of physical volume (such as data subregions) is created, from the 0th BOB(beginning of block), system image can burn Multiple is write to be mapped in the physical volume of logical volume.
In implementing, can specify corresponding in flashburn tools according to physical volume and the mapping relations of logical volume Storage device carries out programming.
Step 402, creates logical volume.
Storage device operationally, can generate device node.
Before the order for performing carry file system in starting script (such as init.rc), logical volume can be created, such as/ dev/block/data-lvm。
Step 403, changes the carry table of file system, and the file system mounted storage device is replaced with into logic Volume.
In embodiments of the present invention, the carry table (such as fstab.qcom) of file system can be changed, therein depositing is replaced Storage equipment (such as data subregions) is logical volume (such as/dev/block/data-lvm).
Step 404, receives the storage request that application sends in Virtual File System.
Virtual File System (Virtual File Systems, VFS) is an interface between file system and service Layer, the details of its each file system to operating system carries out abstract so that different file system in operating system and Other processes are apparently, all identicals.
Narrowly, VFS is not a kind of actual file system, and it is present in internal memory, in os starting Set up, withered away when operating system is closed.
VFS can record the type of available file system, and equipment is connected with corresponding file system, treatment one The general operation of a little object oriented files.
When a file-oriented system has been issued in certain application to be called, corresponding function in VFS can be called, this Function processes some operations unrelated with physical arrangement, and it is redirected as corresponding function is adjusted in real file system With the latter is then used for processing those operations related to physical arrangement.
In embodiments of the present invention, using that can be asked with the storage of file publishing, the storage of file is carried out, storage request In have file to be stored fileinfo.
Step 405, sends to corresponding file system the fileinfo in Virtual File System.
In embodiments of the present invention, fileinfo includes file path, and Virtual File System can send out fileinfo Deliver to storage device (i.e. logical volume) the corresponding file system belonging to this document path.
Step 406, according to the fileinfo of file to be stored in file system, the file is distributed in logic The storage region of volume.
Step 407, in logical volume by the fileinfo send to the storage region mapping physical volume.
Step 408, stores into corresponding storage device the file according to the fileinfo in physical volume.
Referring to Fig. 5, a kind of logical construction schematic diagram of the traditional storage system of mobile terminal is shown.
As shown in figure 5, be successively from top to bottom apply, Virtual File System, file system, device drives, storage device, For example, eMMC, UFS, TF (Trans-flash Card, flash memory cards) card etc..
Single file is stored in being only capable of being present in single storage device, so, the access to single file is only related to And to single storage device.
When one file of application memory, using storage request to Virtual File System is sent, Virtual File System is received To after the storage request of application, the position analysis according to storage goes out corresponding file system, and file system notifies device drives, End-use device is driven to reading file from internal memory, and is written in eMMC (UFS) or TF cards.
Therefore, when processor and internal memory treatment are completed, storage device is typically untreated to be finished, and processor and internal memory are waited Storage device, the time for causing storage to process is more long.
Referring to Fig. 6, the logical construction schematic diagram of storage system when showing a kind of mobile terminal application cache.
As shown in fig. 6, be successively from top to bottom apply, cache, Virtual File System, file system, device drives, storage Equipment, for example, eMMC, UFS, TF card etc..
This storage system using special cache device come the file of buffer memory equipment, due to storage device Part read-write operation can be converted to the read-write operation to cache device, it is thus possible to improve the speed of part read-write operation Degree.But, the cost of the equipment as cache is general costly, and management method is complicated.
Referring to Fig. 7, a kind of logical construction schematic diagram of storage system of one embodiment of the invention is shown.
As shown in fig. 7, be successively from top to bottom apply, Virtual File System, file system, logical volume, physical volume, equipment Driving, storage device, for example, eMMC, UFS etc..
Certainly, for external storage device (such as TF cards), file system, device drives, storage device can be maintained Structure, the embodiment of the present invention is not any limitation as to this.
The storage system is the storage system based on RAID0, is dotted box portion with the difference of traditional storage system, The storage device of multiple physics builds a logical volume, a file system builds on logical volume, whole logical volume as One global storage equipment is accessed, and single file is physically likely distributed in different storage devices, so, to single text The access of part may simultaneously access the storage device of multiple physics, and the time of storage device is waited using upper CPU, RAM, improve Handling capacity.
Certainly, RAID is that a kind of multiple physical storage devices of utilization are built into a scheme for logical memory device, different The RAID of grade has different reliabilities, speed etc..When the storage system to mobile terminal has different requirements, Ke Yiyong The storage devices such as eMMC and UFS enough build different grades of RAID to meet different requirements.
The embodiment of the present invention passes through multiple storage devices and builds a storage device for logic, is set relative to there is single storage It is standby to increased maximum size, also, when certain storage device is damaged, still can be led to using remaining effective storage device Cross to upgrade still to repair and use, extend the service life of mobile terminal.
Certainly, the storage system of the embodiment of the present invention can cache compatibility, can be present in simultaneously in a storage system, Further improve the handling capacity of storage device.
When one file of application memory, using storage request to Virtual File System is sent, Virtual File System is received To after the storage request of application, the position analysis according to storage goes out corresponding file system, and be assigned to for file and patrol by file system The storage region of volume is collected, logical volume notifies corresponding physical volume respectively according to logic region and the mapping relations of physical volume.Most Afterwards, physical volume writes file by device drives and corresponding is written to eMMC or UFS.
If an a part of data storage of file is in eMMC, in another part data storage to UFS, when the portion of file When divided data reads from RAM and writes in eMMC, because CPU operation is fast, operation may be quickly completed, eMMC processes this The storage operation of partial data.
Now, for another part data in file, CPU can start operation, read from RAM and write into UFS, EMMC is withouted waiting for complete to process the storage operation of the partial data.
To write in eMMC data and to write in UFS data can with executed in parallel, shorten storage treatment time.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as a series of action group Close, but those skilled in the art should know, and the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented Necessary to example.
3rd embodiment
Reference picture 8, shows the block diagram of the mobile terminal of one embodiment of the invention, and the mobile terminal 800 shown in Fig. 8 has Body can include such as lower module:
Logical volume distribute module 801, for the fileinfo in file system according to file to be stored, by the text Part is distributed to the storage region in logical volume;
Physical volume notification module 802, for sending to the storage region mapping fileinfo in logical volume Physical volume;
File storage module 803, for being stored to corresponding the file according to the fileinfo in physical volume In storage device.
In one embodiment of the invention, the block diagram of the file storage module with reference to shown in Fig. 9, the file stores mould Block 803 can further include following submodule:
Digital independent submodule 8031, for reading the file from internal memory according to the fileinfo in physical volume Data;
Data is activation submodule 8032, in physical volume by the data is activation of the file to device drives;
Data submodule 8033 is write, for the data of the file to be write into corresponding storage device in device drives In.
On the basis of Fig. 8, alternatively, referring to Figure 10, mobile terminal 800 may also include such as lower module:
Storage request receiving module 804, for receiving the storage request that application sends in Virtual File System;It is described to deposit There is the fileinfo of file to be stored in storage request;
File system notification module 805, for sending to corresponding text the fileinfo in Virtual File System Part system.
On the basis of Fig. 8, alternatively, referring to Figure 11, mobile terminal 800 may also include such as lower module:
Mirror image programming module 806, in by system image programming to the storage device for creating physical volume.
On the basis of Figure 11, alternatively, referring to Figure 12, mobile terminal 800 may also include such as lower module:
Establishing logical volume module 807, for creating logical volume;
Carry modified module 808, the carry table for changing file system, by the file system mounted storage device Replace with logical volume.
Mobile terminal 800 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 7, to keep away Exempt to repeat, repeat no more here.
So, in the embodiment of the present invention, logical volume is disposed in the terminal, the logic volume mapping one or more physics Volume, according to the fileinfo of file to be stored in file system, file is distributed to the storage region in logical volume, logical volume Fileinfo is sent to the physical volume of storage region mapping, physical volume is according to fileinfo by the data storage of part to corresponding Storage device in, when file is distributed to multiple physical volume memory storage devices, multiple physical volumes can be multiple with concurrent access When storage device data storage, processor and interior certain storage device in the presence of wait, can be transmitted with another storage device Data, therefore overall data throughout is improve, the handling capacity sum of multiple storage devices is ideally can reach, and then Improve the storage speed of mobile terminal, while, it is to avoid deployment caching, so save draw deployment caching and cause it is extra Cost, reduces design difficulty, it is to avoid to operating system, cache policy is impacted in itself.
Fourth embodiment
Figure 13 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 1 300 shown in Figure 13 includes: At least one processor 1301, memory 1302, at least one network interface 1304 and other users interface 1303.Mobile terminal Each component in 1300 is coupled by bus system 1305.It is understood that bus system 1305 is used to realize these groups Connection communication between part.Bus system 1305 in addition to including data/address bus, also including power bus, controlling bus and state Signal bus.But for the sake of for clear explanation, various buses are all designated as bus system 1305 in fig. 13.
Wherein, user interface 1303 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 1302 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memory (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), its use Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connection dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 1302 of the system and method for embodiment of the present invention description be intended to include but It is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1302 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 13021 and application program 13022.
Wherein, operating system 13021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for Realize various basic businesses and process hardware based task.Application program 13022, comprising various application programs, such as matchmaker Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented The program of example method may be embodied in application program 13022.
In embodiments of the present invention, by the program for calling memory 1302 to store or instruction, specifically, can be application The program stored in program 13022 or instruction, processor 1301 are used to obtain in file system according to file to be stored Fileinfo, the file is distributed to the storage region in logical volume;
In logical volume by the fileinfo send to the storage region mapping physical volume;The basis in physical volume The fileinfo stores into corresponding storage device the file.
The method that the embodiments of the present invention are disclosed can apply in processor 1301, or real by processor 1301 It is existing.Processor 1301 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1301 or software form.Above-mentioned Processor 1301 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 1302, processor 1301 reads the information in memory 1302, with reference to the step of its hardware completion above method.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place In reason device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Alternatively, processor 1301 is additionally operable to:In physical volume the file is read according to the fileinfo from internal memory Data;By the data is activation of the file to device drives in physical volume;By the data of the file in device drives In writing corresponding storage device.
Alternatively, processor 1301 is additionally operable to:The storage request that application sends is received in Virtual File System;It is described to deposit There is the fileinfo of file to be stored in storage request;The fileinfo is sent to corresponding in Virtual File System File system.
Alternatively, processor 1301 is additionally operable to:By in system image programming to the storage device for being used to create physical volume.
Alternatively, processor 1301 is additionally operable to:Create logical volume;The carry table of file system is changed, file system is hung The storage device for carrying replaces with logical volume.
Mobile terminal 1 300 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, this In repeat no more.
So, in the embodiment of the present invention, logical volume is disposed in the terminal, the logic volume mapping one or more physics Volume, according to the fileinfo of file to be stored in file system, file is distributed to the storage region in logical volume, logical volume Fileinfo is sent to the physical volume of storage region mapping, physical volume is according to fileinfo by the data storage of part to corresponding Storage device in, when file is distributed to multiple physical volume memory storage devices, multiple physical volumes can be multiple with concurrent access When storage device data storage, processor and interior certain storage device in the presence of wait, can be transmitted with another storage device Data, therefore overall data throughout is improve, the handling capacity sum of multiple storage devices is ideally can reach, and then Improve the storage speed of mobile terminal, while, it is to avoid deployment caching, so save draw deployment caching and cause it is extra Cost, reduces design difficulty, it is to avoid to operating system, cache policy is impacted in itself.
5th embodiment
Figure 14 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile end in Figure 14 End 1400 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted Computer etc..
Mobile terminal 1 400 in Figure 14 include radio frequency (Radio Frequency, RF) circuit 1410, memory 1420, Input block 1430, display unit 1440, processor 1460, voicefrequency circuit 1470, WiFi (Wireless Fidelity) module 1480 and power supply 1490.
Wherein, input block 1430 can be used to receive the numeral or character information of user input, and produce with movement eventually The user at end 1400 is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 1430 can include contact panel 1431.Contact panel 1431, also referred to as touch-screen, can collect user thereon or neighbouring touch Operation (such as user uses the operations of any suitable object or annex on contact panel 1431 such as finger, stylus) is touched, and Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1431 may include touch detecting apparatus and Two parts of touch controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the letter that touch operation brings Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give the processor 1460, and the order sent of receiving processor 1460 and can be performed.Furthermore, it is possible to Contact panel 1431 is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1431, input block 1430 can also include other input equipments 1432, and other input equipments 1432 can be included but is not limited to One kind or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Kind.
Wherein, display unit 1440 can be used for display by the information of user input or be supplied to information and the movement of user The various menu interfaces of terminal 1400.Display unit 1440 may include display panel 1441, optionally, using LCD or can have The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 1441.
It should be noted that contact panel 1431 can cover display panel 1441, touch display screen is formed, when the touch display screen Detect thereon or after neighbouring touch operation, processor 1460 is sent to determine the type of touch event, with post processing Device 1460 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 1460 is the control centre of mobile terminal 1 400, using various interfaces and connection whole mobile phone Various pieces, by running or performing software program of the storage in first memory 1421 and/or module, and call and deposit The data in second memory 1422 are stored up, the various functions and processing data of mobile terminal 1 400 are performed, so as to mobile whole End 1400 carries out integral monitoring.Optionally, processor 1460 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1421 in software program and/or module and/ Or the data in the second memory 1422, processor 1460 is for the file letter in file system according to file to be stored Breath, the file is distributed to the storage region in logical volume;The fileinfo is sent to the storage in logical volume The physical volume of area maps;The file is stored into corresponding storage device according to the fileinfo in physical volume.
Alternatively, processor 1460 is additionally operable to:In physical volume the file is read according to the fileinfo from internal memory Data;By the data is activation of the file to device drives in physical volume;By the data of the file in device drives In writing corresponding storage device.
Alternatively, processor 1460 is additionally operable to:The storage request that application sends is received in Virtual File System;It is described to deposit There is the fileinfo of file to be stored in storage request;The fileinfo is sent to corresponding in Virtual File System File system.
Alternatively, processor 1460 is additionally operable to:By in system image programming to the storage device for being used to create physical volume.
Alternatively, processor 1460 is additionally operable to:Create logical volume;The carry table of file system is changed, file system is hung The storage device for carrying replaces with logical volume.
It can be seen that, in the embodiment of the present invention, logical volume is disposed in the terminal, the logic volume mapping one or more physics Volume, according to the fileinfo of file to be stored in file system, file is distributed to the storage region in logical volume, logical volume Fileinfo is sent to the physical volume of storage region mapping, physical volume is according to fileinfo by the data storage of part to corresponding Storage device in, when file is distributed to multiple physical volume memory storage devices, multiple physical volumes can be multiple with concurrent access When storage device data storage, processor and interior certain storage device in the presence of wait, can be transmitted with another storage device Data, therefore overall data throughout is improve, the handling capacity sum of multiple storage devices is ideally can reach, and then Improve the storage speed of mobile terminal, while, it is to avoid deployment caching, so save draw deployment caching and cause it is extra Cost, reduces design difficulty, it is to avoid to operating system, cache policy is impacted in itself.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of storage method of file, it is characterised in that in the terminal, methods described includes for application:
According to the fileinfo of file to be stored in file system, the file is distributed in the memory block of logical volume Domain;
In logical volume by the fileinfo send to the storage region mapping physical volume;
The file is stored into corresponding storage device according to the fileinfo in physical volume.
2. the method for claim 1, it is characterised in that it is described in physical volume according to the fileinfo by the text The step that part is stored into corresponding storage device includes:
Read the data of the file from internal memory according to the fileinfo in physical volume;
By the data is activation of the file to device drives in physical volume;
During the data of the file are write into corresponding storage device in device drives.
3. the method for claim 1, it is characterised in that it is described in file system according to the text of file to be stored Part information, the file is distributed to before the step of the storage region of logical volume, and methods described also includes:
The storage request that application sends is received in Virtual File System;There is the text of file to be stored in the storage request Part information;
The fileinfo is sent to corresponding file system in Virtual File System.
4. the method as described in claim 1 or 2 or 3, it is characterised in that it is described in file system according to text to be stored The fileinfo of part, the file is distributed to before the step of the storage region of logical volume, and methods described also includes:
By in system image programming to the storage device for being used to create physical volume.
5. method as claimed in claim 4, it is characterised in that it is described by system image programming to for creating physical volume After step in storage device, methods described also includes:
Create logical volume;
The carry table of file system is changed, the file system mounted storage device is replaced with into logical volume.
6. a kind of mobile terminal, it is characterised in that including:
Logical volume distribute module, for the fileinfo in file system according to file to be stored, by file distribution To the storage region in logical volume;
Physical volume notification module, for sending the fileinfo in logical volume to the physics of storage region mapping Volume;
File storage module, for being stored to corresponding storage device the file according to the fileinfo in physical volume In.
7. mobile terminal according to claim 6, it is characterised in that the file storage module includes:
Digital independent submodule, the data for reading the file from internal memory according to the fileinfo in physical volume;
Data is activation submodule, in physical volume by the data is activation of the file to device drives;
Data submodule is write, in the data of the file are write into corresponding storage device in device drives.
8. mobile terminal according to claim 6, it is characterised in that also include:
Storage request receiving module, for receiving the storage request that application sends in Virtual File System;The storage request In have file to be stored fileinfo;
File system notification module, for sending to corresponding file system the fileinfo in Virtual File System.
9. the mobile terminal according to claim 6 or 7 or 8, it is characterised in that also include:
Mirror image programming module, in by system image programming to the storage device for creating physical volume.
10. mobile terminal according to claim 9, it is characterised in that also include:
Establishing logical volume module, for creating logical volume;
Carry modified module, the carry table for changing file system, the file system mounted storage device is replaced with Logical volume.
CN201611226950.1A 2016-12-27 2016-12-27 The storage method and mobile terminal of a kind of file Pending CN106775488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611226950.1A CN106775488A (en) 2016-12-27 2016-12-27 The storage method and mobile terminal of a kind of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226950.1A CN106775488A (en) 2016-12-27 2016-12-27 The storage method and mobile terminal of a kind of file

Publications (1)

Publication Number Publication Date
CN106775488A true CN106775488A (en) 2017-05-31

Family

ID=58922073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226950.1A Pending CN106775488A (en) 2016-12-27 2016-12-27 The storage method and mobile terminal of a kind of file

Country Status (1)

Country Link
CN (1) CN106775488A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506494A (en) * 2017-09-27 2017-12-22 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN107609119A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN112035152A (en) * 2020-08-24 2020-12-04 成都三零嘉微电子有限公司 Secure processing system and method for SoC chip firmware upgrade
CN114237513A (en) * 2021-12-17 2022-03-25 四川九洲空管科技有限责任公司 File data memory, writing method, reading method and storage system
CN114661249A (en) * 2022-05-26 2022-06-24 深圳高灯计算机科技有限公司 Data storage method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625628A (en) * 2009-08-17 2010-01-13 宋振华 Method for realizing customization of mapping of logical volume manager (LVM)
CN101840308A (en) * 2009-10-28 2010-09-22 创新科存储技术有限公司 Hierarchical memory system and logical volume management method thereof
CN103218227A (en) * 2013-04-10 2013-07-24 广东欧珀移动通信有限公司 Method and device for enabling internal hard disc of Android equipment to be compatible with multiple file systems
CN103838725A (en) * 2012-11-20 2014-06-04 联想(北京)有限公司 File processing method and device
CN104423892A (en) * 2013-08-29 2015-03-18 宏碁股份有限公司 Data writing method, disk module and data writing system
US20160179409A1 (en) * 2014-12-17 2016-06-23 Red Hat, Inc. Building file system images using cached logical volume snapshots

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625628A (en) * 2009-08-17 2010-01-13 宋振华 Method for realizing customization of mapping of logical volume manager (LVM)
CN101840308A (en) * 2009-10-28 2010-09-22 创新科存储技术有限公司 Hierarchical memory system and logical volume management method thereof
CN103838725A (en) * 2012-11-20 2014-06-04 联想(北京)有限公司 File processing method and device
CN103218227A (en) * 2013-04-10 2013-07-24 广东欧珀移动通信有限公司 Method and device for enabling internal hard disc of Android equipment to be compatible with multiple file systems
CN104423892A (en) * 2013-08-29 2015-03-18 宏碁股份有限公司 Data writing method, disk module and data writing system
US20160179409A1 (en) * 2014-12-17 2016-06-23 Red Hat, Inc. Building file system images using cached logical volume snapshots

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
沈沛意等: "《DAVINCI技术剖析及实战应用开发指南》", 30 April 2012 *
许曰滨等: "《操作系统》", 31 August 2005 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609119A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN107609119B (en) * 2017-09-13 2020-01-24 Oppo广东移动通信有限公司 File processing method, mobile terminal and computer readable storage medium
CN107506494A (en) * 2017-09-27 2017-12-22 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN107506494B (en) * 2017-09-27 2019-04-12 Oppo广东移动通信有限公司 Document handling method, mobile terminal and computer readable storage medium
CN112035152A (en) * 2020-08-24 2020-12-04 成都三零嘉微电子有限公司 Secure processing system and method for SoC chip firmware upgrade
CN112035152B (en) * 2020-08-24 2023-10-10 成都三零嘉微电子有限公司 Secure processing system and method for upgrading firmware of SoC chip
CN114237513A (en) * 2021-12-17 2022-03-25 四川九洲空管科技有限责任公司 File data memory, writing method, reading method and storage system
CN114661249A (en) * 2022-05-26 2022-06-24 深圳高灯计算机科技有限公司 Data storage method and device, computer equipment and storage medium
CN114661249B (en) * 2022-05-26 2022-09-27 深圳高灯计算机科技有限公司 Data storage method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11481121B2 (en) Physical media aware spacially coupled journaling and replay
CN106951141B (en) A kind of processing method and mobile terminal of icon
CN106775488A (en) The storage method and mobile terminal of a kind of file
JP2010525453A (en) Remove-on-delete technology for solid-state drive optimization
US10489289B1 (en) Physical media aware spacially coupled journaling and trim
CN106844067A (en) The processing method and mobile terminal of a kind of content
CN106776030A (en) The method and mobile terminal of a kind of dynamic managing internal memory
CN104238897A (en) Menu item displaying method and device
CN106528690B (en) A kind of method and mobile terminal of application program accessing storage media
CN106776871A (en) The storage method and mobile terminal of a kind of multimedia file
US8914428B2 (en) System and method for maintaining a file system at a computing device
CN106325753A (en) Payment interface display method and mobile terminal
CN106503179A (en) A kind of loading method of Webpage and mobile terminal
CN106407417A (en) An application program data backup method and a mobile terminal
CN107544729A (en) The interface switching method and mobile terminal of a kind of application
CN106055232A (en) Message processing method and mobile terminal
CN106886409A (en) A kind of method for information display and mobile terminal
CN106445669A (en) Task processing method of application program and mobile terminal
CN106484771A (en) Different information file generated and application process, device
CN107632748A (en) A kind of information processing method and mobile terminal
CN107145369A (en) The discharging method and mobile terminal of a kind of application program
CN106325942A (en) Application program data processing method and mobile terminal
CN106027786A (en) Lookup method of record list and mobile terminal
CN107567022A (en) A kind of wireless connection method, terminal and computer-readable recording medium
CN106528350A (en) File backup method and mobile terminal

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: 20170531