CN105389124A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105389124A
CN105389124A CN201510674067.8A CN201510674067A CN105389124A CN 105389124 A CN105389124 A CN 105389124A CN 201510674067 A CN201510674067 A CN 201510674067A CN 105389124 A CN105389124 A CN 105389124A
Authority
CN
China
Prior art keywords
data
sector
spatial cache
page
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510674067.8A
Other languages
Chinese (zh)
Other versions
CN105389124B (en
Inventor
吴德天
李小丁
卢兆涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510674067.8A priority Critical patent/CN105389124B/en
Publication of CN105389124A publication Critical patent/CN105389124A/en
Application granted granted Critical
Publication of CN105389124B publication Critical patent/CN105389124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • 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

Abstract

The invention discloses an information processing method and electronic equipment. The method comprises the following steps: when a data processing operation for first data is detected, obtaining an initial sector address of the first data; determining whether an initial sector corresponding to the initial sector address is a first sector of a page in a memory cell or not, wherein the page comprises at least two sectors in the first sector; when the initial sector is the first sector, executing the data processing operation; and when the initial sector is not the first sector, executing the data processing operation on a first part of data in the first data corresponding to the initial sector.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, particularly a kind of information processing method and electronic equipment.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, a lot of electronic equipment, as mobile phone, computer etc., becomes the necessity of people's daily life.In order to enable user process file whenever and wherever possible, USB flash disk usually can be used to carry out copy process to file.
In the prior art, the minimum memory unit of USB flash disk is sector, when USB flash disk is when carrying out exchanges data by USB and computer, as, when computer transmits the data of a page size by USB to USB flash disk, first USB flash disk needs the logical block addresses that storage space available in reading disk is corresponding, namely the address that sector is corresponding, then data are stored in corresponding sector, size due to data to be transmitted is greater than the storage space of sector, now, USB flash disk also needs the address of reading next sector, then remaining data are stored in another sector, until data are all stored into USB flash disk.
Visible, there is the single technical matters of read-write mode in electronic equipment of the prior art.
Further, because USB flash disk is when carrying out reading and writing data, usually with a page (integral multiple of sector) for unit carries out data transmission, so just, following situation can be there is: the logical block addresses that the remaining space that first USB flash disk needs to read a certain disc page is corresponding, then a part of data are write in the remaining space of current disc page, then, read the logical block addresses of another new disc page again, remainder data in data to be transmitted are written in new disc page, like this, when USB flash disk transmits the data of a page size, all need to carry out twice read-write operation, and when data waiting for transmission are far above a page size, USB flash disk needs to carry out repeatedly read-write operation, as shown in Figure 1, and then reduce the read or write speed of USB flash disk.
Visible, there is the slow-footed technical matters read and write data in electronic equipment of the prior art.
Summary of the invention
The embodiment of the present application provides a kind of information processing method and electronic equipment, there is the single technical matters of read-write mode for solving electronic equipment of the prior art, realizes the technique effect increasing electronic equipment read-write mode.
The embodiment of the present application provides a kind of information processing method on the one hand, comprises the following steps:
When the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data;
Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector;
When described initial sector is described first sector, perform described data processing operation;
When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
Optionally, described be not described first sector in described initial sector time, after to described first data corresponding with described initial sector, wherein Part I data perform described data processing operation, described method also comprises:
By first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
Optionally, when described data processing operation is for described first data of write, address, described initial sector is specially in described storage unit for storing the first initial sevtor address of the first storage space of described first data.
Optionally, described when not being described first sector in described initial sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation, be specially:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
Optionally, described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
Optionally, when N is for being more than or equal to 2, the described i that gets successively is 1 to N, described by the i-th number in described Part II data according to stored in described first spatial cache, specifically comprise:
Get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
Based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and remove the described i-th number certificate in described first spatial cache;
By the i-th+1 number certificate stored in described first spatial cache;
When i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
Optionally, when described data processing operation is for reading described first data, address, described initial sector is specially in described storage unit for storing the second address, initial sector of the second storage space of described first data.
Optionally, described when not being described first sector in described initial sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation, specifically comprise:
Read the described first data wherein Part I data corresponding with the described page.
Optionally, described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
Optionally, when N is for being more than or equal to 2, the described i that gets successively is 1 to N, by the i-th number certificate in described Part II data stored in described first spatial cache, specifically comprises:
Getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
Obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
Based on address, described the i-th+1 initial sector, obtain described i-th+1 number certificate;
By described i-th+1 number certificate stored in described first spatial cache;
When i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
The embodiment of the present application additionally provides a kind of electronic equipment on the other hand, comprising:
Housing;
Storage unit, is arranged in described housing, for storing the first data;
Processor, is arranged in described housing, for when the data processing operation carried out described first data being detected, obtains the address, initial sector of described first data; Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in described storage unit, wherein, the described page comprises at least two sectors of described first sector; When described initial sector is described first sector, perform described data processing operation; When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
Optionally, described be not described first sector in described initial sector time, after to described first data corresponding with described initial sector, wherein Part I data perform described data processing operation, described processor also for:
By first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
Optionally, when described data processing operation is for described first data of write, address, described initial sector is specially in described storage unit for storing the first initial sevtor address of the first storage space of described first data.
Optionally, described processor specifically for:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
Optionally, described processor specifically for:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described processor specifically for:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
Optionally, when N is for being more than or equal to 2, described processor specifically for:
Get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
Based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and remove the described i-th number certificate in described first spatial cache;
By the i-th+1 number certificate stored in described first spatial cache;
When i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
Optionally, when described data processing operation is for reading described first data, address, described initial sector is specially in described storage unit for storing the second address, initial sector of the second storage space of described first data.
Optionally, described processor specifically for:
Read the described first data wherein Part I data corresponding with the described page.
Optionally, described processor specifically for:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described processor specifically for:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
Optionally, when N is for being more than or equal to 2, described processor specifically for:
Getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
Obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
Based on address, described the i-th+1 initial sector, obtain described i-th+1 number certificate;
By described i-th+1 number certificate stored in described first spatial cache;
When i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
One, due to the technical scheme in the embodiment of the present application, adopting when the data processing operation carried out the first data being detected, obtaining the address, initial sector of described first data, determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector, when described initial sector is described first sector, perform described data processing operation, when in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform the technological means of described data processing operation, like this, when electronic equipment is when carrying out data processing, first the address, initial sector of data and the corresponding relation of the page can be judged, then according to the difference of corresponding relation, different processing modes is adopted to carry out data processing, thus efficiently solve electronic equipment of the prior art and there is the single technical matters of read-write mode, realize the technique effect increasing electronic equipment read-write mode.
Two, due to the technical scheme in the embodiment of the present application, adopting at described data processing operation is described first data of write, when described initial sector is not described first sector, by described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page and by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache is M times of the size of the described page, M is the technological means of the integer being more than or equal to 1, like this, when initial sector is not described first sector, show that this sevtor address and the page do not line up, now, first the page corresponding for initial sector is first write full, then the sevtor address that record one is new, described new sevtor address aligns with sector, be the initial sector of a page, then remaining data is written in a spatial cache, after spatial cache writes full data, again data are stored in space corresponding to new sevtor address, because the size of spatial cache becomes integral multiple relation with page size, like this, spatial cache only needs just can by the data write-once electronic equipment in spatial cache according to described new sevtor address, and do not need the process of other acquisition sevtor address, decrease the number of times reading sevtor address when carrying out data and storing, thus efficiently solve electronic equipment of the prior art and there is the slow-footed technical matters read and write data, achieve the technique effect improving data processing speed.
Three, due to the technical scheme in the embodiment of the present application, adopting at described data processing operation is described first data of write, when described initial sector is not described first sector, by described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page and by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache is M times of the size of the described page, M is the technological means of the integer being more than or equal to 1, like this, decrease the number of times reading sevtor address when carrying out data and storing, improve the processing speed of electronic equipment when reading and writing data, thus achieve the technique effect improving Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described by the accompanying drawing used required in describing embodiment below, apparently, the accompanying drawing in the following describes is only some embodiments of the present invention.
Fig. 1 is the process schematic carrying out reading when data store sevtor address of the prior art;
A kind of process flow diagram of information processing method of Fig. 2 for providing in the embodiment of the present application one;
Fig. 3 is the first the specific implementation process flow diagram of step S105 in the embodiment of the present application one;
Fig. 4 is the specific implementation process flow diagram of step S302 in the embodiment of the present application one;
Fig. 5 is the first the specific implementation schematic diagram of step S105 in the embodiment of the present application one;
Fig. 6 is the first the specific implementation process flow diagram of step S105 in the embodiment of the present application two;
Fig. 7 is the specific implementation process flow diagram of step S602 in the embodiment of the present application two;
A kind of structural representation of electronic equipment of Fig. 8 for providing in the embodiment of the present application three.
Embodiment
The embodiment of the present application provides a kind of information processing method and electronic equipment, there is the single technical matters of read-write mode for solving electronic equipment of the prior art, realizes the technique effect increasing electronic equipment read-write mode.
Technical scheme in the embodiment of the present application is solve above-mentioned technical matters, and general thought is as follows:
When the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data;
Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector;
When described initial sector is described first sector, perform described data processing operation;
When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
In technique scheme, adopting when the data processing operation carried out the first data being detected, obtaining the address, initial sector of described first data, determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector, when described initial sector is described first sector, perform described data processing operation, when in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform the technological means of described data processing operation, like this, when electronic equipment is when carrying out data processing, first the address, initial sector of data and the corresponding relation of the page can be judged, then according to the difference of corresponding relation, different processing modes is adopted to carry out data processing, thus efficiently solve electronic equipment of the prior art and there is the single technical matters of read-write mode, realize the technique effect increasing electronic equipment read-write mode.
In order to better understand technique scheme, below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical solution of the present invention, instead of the restriction to technical solution of the present invention, when not conflicting, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
Embodiment one
Please refer to Fig. 2, be a kind of process flow diagram of information processing method provided in the embodiment of the present application one, comprise:
S101: when the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data;
S102: determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector;
S103: when described initial sector is described first sector, perform described data processing operation;
S104: when in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
In specific implementation process, described information processing method can be applied in smart mobile phone, notebook computer, panel computer, USB flash disk, also can be the electronic equipment that other can process data, and at this, just differing one schematically illustrates.In the embodiment of the present application, USB flash disk will be applied in for described information processing method, the implementation procedure of the method in the embodiment of the present application will be described in detail.
When adopting the technical scheme in the application to carry out information processing, first perform step S101, that is: when the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data.
In the embodiment of the present application one, described data processing operation is described first data of write, and correspondingly, address, described initial sector is specially in described storage unit for storing the first initial sevtor address of the first storage space of described first data.
In specific implementation process, USB flash disk is applied in for described information processing method, when user need in USB flash disk stored in data time, as, by a certain video in notebook computer D dish stored in USB flash disk, now, when notebook computer is when to USB flash disk transmission of video, USB flash disk be driven through read/write function, obtain first LBA (Logical Block Addressing) corresponding for the storage unit of store video in USB flash disk data field.The minimum memory unit of USB flash disk is sector, the size of each sector is 512 bytes, like this, the USB flash disk of 1G size, just there is 1G*1024*1024*1024/512=2097152 sector, there is corresponding sector number each sector, and USB flash disk is sector 10 for the sector number that first blank cell of store video is corresponding, then the driving of USB flash disk obtains sector 10 is address, described initial sector.
After complete step S102, method in the embodiment of the present application just performs step S102, that is: determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector.
In the embodiment of the present application, different from the relativeness of the page according to the address, initial sector obtained, step S102 has the following two kinds situation:
The first situation:
In specific implementation process, continue to use above-mentioned example, USB flash disk is when transmitting data, all transmit in units of a page, generally, at least two sectors in the corresponding USB flash disk of a page of USB flash disk, 8 sectors as corresponding in a page, corresponding 5 sectors of the page or corresponding 4 sectors of the page etc., for corresponding 5 sectors of USB flash disk page, when the driving of the USB flash disk address, initial sector obtained for store video is sector 10, just address, initial sector is judged, with determine the address, initial sector that obtains whether with the page alignment of USB flash disk.Specifically, corresponding 5 sectors of a page of USB flash disk, then the address, initial sector of each page is sector 0, sector 5, sector 10 etc., the i.e. initial sector of sector number to be the sector corresponding to multiple of 5 be each page in USB flash disk, because the address, initial sector for store video obtained is sector 10,10 is 52 times, and therefore, sector 10 is first sector of the 3rd page in USB flash disk.
Accordingly, after complete step S102, the method in the embodiment of the present application just performs step S103, that is: when described initial sector is described first sector, perform described data processing operation.
In specific implementation process, continue to use above-mentioned example, when the driving of USB flash disk determines that sector 10 is first sector of the 3rd page in USB flash disk, then show that the disc page of LBA (Logical Block Addressing) and the USB flash disk obtained is in aligned condition, then by video with 5 sector-size for unit of transfer, successively video to be deposited in USB flash disk with in the 3rd storage space that the page is starting memory location, to complete the operation of write data.
The second situation:
For corresponding 4 sectors of USB flash disk page, when the driving of the USB flash disk address, initial sector obtained for store video is sector 10, just address, initial sector is judged, with determine the address, initial sector that obtains whether with the page alignment of USB flash disk.Specifically, corresponding 4 sectors of a page of USB flash disk, then the address, initial sector of each page is sector 0, sector 4, sector 8 etc., the i.e. initial sector of sector number to be the sector corresponding to multiple of 4 be each page in USB flash disk, because the address, initial sector for store video obtained is sector 10,10 be not 4 multiple, therefore, sector 10 is not first sector of any one page in USB flash disk.
Accordingly, after complete step S102, method in the embodiment of the present application just performs step S104, that is: when not being described first sector in described initial sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
In the embodiment of the present application one, the specific implementation of step S104 is:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
In specific implementation process, continue to use above-mentioned example, after USB flash disk drives and determines first sector of sector 10 not for any one page in USB flash disk, determine that sector 10 is the sector in the 3rd page, and the sector that can be used in current 3rd page stores data is sector 10 and sector 11, then the residual memory space size in current 3rd page is 512*2=1024 byte, i.e. 1KB, now, the 1KB in video is deposited in the 3rd page.
After complete step S104, the method in the embodiment of the present application also comprises:
S105: by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
In the embodiment of the present application one, according to varying in size of described Part II data, step S105 specifically comprises the following two kinds implementation:
First kind of way, please refer to Fig. 3:
S301: determine that the size of described Part II data is N times of the size of described first spatial cache;
S302: described Part II Data Placement is become N part, getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N.
In the embodiment of the present application one, please refer to Fig. 4, the specific implementation of step S302 is:
S401: get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
S402: based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and removes the described i-th number certificate in described first spatial cache;
S403: by the i-th+1 number certificate stored in described first spatial cache;
S404: when i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
In specific implementation process, continue to use above-mentioned example, can first to file spatial cache in advance in USB flash disk, its space size can be identical with the page size of USB flash disk, also can be the integral multiple of USB flash disk page size, not be restricted in the embodiment of the present application, be that 2 times of USB flash disk page size are example in the embodiment of the present application with spatial cache, namely the size of spatial cache is 512*4*2=4096 byte, i.e. 4KB.If the remainder size of data of video is 256KB, USB flash disk drives determines that the size of current residual data is 256/4=64 times of spatial cache, now, the remainder Data Placement of video is become 64 parts, the size of each number certificate is 4KB, then, by the first number according to being written in spatial cache, now, 3rd page has been write full by the Part I data due to video, now, the initial sector that can be used for the storage space of store video is sector 12, the i.e. initial sector of the 4th page, then USB flash disk drives the address, initial sector of acquisition the 4th page: sector 12, and the data in spatial cache are written in USB flash disk, size due to spatial cache is 2 times of USB flash disk page size, now, first number is according to taking the 4th page and the 5th page of USB flash disk, after the data in spatial cache are written to USB flash disk, remove the first number certificate, then the second number certificate is written in spatial cache, because the first number is full according to being write by the 4th and the 5th of USB flash disk the page, then USB flash disk drives acquisition to be sector 20 for storing the address, initial sector of the second number certificate, then the second number certificate being written to initial sector is in the storage space of 20, as shown in Figure 5.By that analogy, until by 64 numbers according to being all deposited in USB flash disk, now just complete the storage to video.
If the remainder size of data of video is 250KB, then now Data Placement is become 63 parts, wherein, from 1 to 62 numbers certificates, the size of every number certificate is 4KB, and the size of the 63rd number certificate is 2KB, then mode same as described above is adopted, by 63 numbers certificates stored in USB flash disk.
The second way:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
In specific implementation process, continue to use above-mentioned example, can first to file spatial cache in advance in USB flash disk, its space size can be identical with the page size of USB flash disk, also can be the integral multiple of USB flash disk page size, not be restricted in the embodiment of the present application, be that 2 times of USB flash disk page size are example in the embodiment of the present application with spatial cache, namely the size of spatial cache is 512*4*2=4096 byte, i.e. 4KB.If the remainder size of data of video is 3KB, USB flash disk drives determines that current residual size of data is less than the size of spatial cache, then to be directly all deposited in spatial cache by remaining data, via spatial cache, data to be write USB flash disk, complete the storage to video.
Embodiment two
Please refer to Fig. 2, be a kind of process flow diagram of information processing method provided in the embodiment of the present application two, comprise:
S101: when the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data;
S102: determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector;
S103: when described initial sector is described first sector, perform described data processing operation;
S104: when in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
In specific implementation process, described information processing method can be applied in smart mobile phone, notebook computer, panel computer, USB flash disk, also can be the electronic equipment that other can process data, and at this, just differing one schematically illustrates.In the embodiment of the present application, USB flash disk will be applied in for described information processing method, the implementation procedure of the method in the embodiment of the present application will be described in detail.
When adopting the technical scheme in the application to carry out information processing, first perform step S101, that is: when the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data.
In the embodiment of the present application two, described data processing operation is for reading described first data, and correspondingly, address, described initial sector is specially in described storage unit for storing the second address, initial sector of the second storage space of described first data.
In specific implementation process, USB flash disk is applied in for described information processing method, when user needs to read the data in USB flash disk, as, a certain video in USB flash disk is deposited in notebook computer D dish, now, when USB flash disk is when to notebook computer transmission of video, USB flash disk be driven through read/write function, obtain first LBA (Logical Block Addressing) of this video in USB flash disk data field.The minimum memory unit of USB flash disk is sector, the size of each sector is 512 bytes, like this, the USB flash disk of 1G size, just there is 1G*1024*1024*1024/512=2097152 sector, there is corresponding sector number each sector, and the sector number storing first storage unit of this video in the data field of USB flash disk corresponding is sector 10, then the driving of USB flash disk obtains sector 10 is address, described initial sector.
After complete step S102, method in the embodiment of the present application just performs step S102, that is: determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector.
In the embodiment of the present application, different from the relativeness of the page according to the address, initial sector obtained, step S102 has the following two kinds situation:
The first situation:
In specific implementation process, continue to use above-mentioned example, USB flash disk is when transmitting data, all transmit in units of a page, generally, at least two sectors in the corresponding USB flash disk of a page of USB flash disk, 8 sectors as corresponding in a page, corresponding 5 sectors of the page or corresponding 4 sectors of the page etc., for corresponding 5 sectors of USB flash disk page, when the sector number that USB flash disk drives first storage unit obtained in the data field of this video at USB flash disk corresponding is sector 10, just address, initial sector is judged, with determine the address, initial sector that obtains whether with the page alignment of USB flash disk.Specifically, corresponding 5 sectors of a page of USB flash disk, then the address, initial sector of each page is sector 0, sector 5, sector 10 etc., the i.e. initial sector of sector number to be the sector corresponding to multiple of 5 be each page in USB flash disk, the sector number corresponding due to first storage unit of video in the data field of USB flash disk obtained is sector 10,10 is 52 times, and therefore, sector 10 is first sector of the 3rd page in USB flash disk.
Accordingly, after complete step S102, the method in the embodiment of the present application just performs step S103, that is: when described initial sector is described first sector, perform described data processing operation.
In specific implementation process, continue to use above-mentioned example, when the driving of USB flash disk determines that sector 10 is first sector of the 3rd page in USB flash disk, then show that the disc page of LBA (Logical Block Addressing) and the USB flash disk obtained is in aligned condition, then by video with 5 sector-size for unit of transfer, successively video is read from USB flash disk, complete the operation of reading data.
The second situation:
For corresponding 4 sectors of USB flash disk page, when the sector number that USB flash disk drives first storage unit obtained in the data field of this video at USB flash disk corresponding is sector 10, just address, initial sector is judged, with determine the address, initial sector that obtains whether with the page alignment of USB flash disk.Specifically, corresponding 4 sectors of a page of USB flash disk, then the address, initial sector of each page is sector 0, sector 4, sector 8 etc., the i.e. initial sector of sector number to be the sector corresponding to multiple of 4 be each page in USB flash disk, the sector number corresponding due to first storage unit of video in the data field of USB flash disk obtained is sector 10,10 be not 4 multiple, therefore, sector 10 is not first sector of any one page in USB flash disk.
Accordingly, after complete step S102, method in the embodiment of the present application just performs step S104, that is: when not being described first sector in described initial sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
In the embodiment of the present application two, the specific implementation of step S104 is:
Read the described first data wherein Part I data corresponding with the described page.
In specific implementation process, continue to use above-mentioned example, after USB flash disk drives and determines first sector of sector 10 not for any one page in USB flash disk, determine that sector 10 is the sector in the 3rd page, and in current 3rd page, the sector storing this video is sector 10 and sector 11, now, just read the sector 10 in the 3rd page and the data in sector 11, the data stored in sector 10 and sector 11 are the Part I data of this video.
After complete step S104, the method in the embodiment of the present application also comprises:
S105: by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
In the embodiment of the present application two, according to varying in size of described Part II data, step S105 specifically comprises the following two kinds implementation:
First kind of way, please refer to Fig. 6:
S601: determine that the size of described Part II data is N times of the size of described first spatial cache;
S602: described Part II Data Placement is become N part, getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N.
In the embodiment of the present application two, please refer to Fig. 7, the specific implementation of step S602 is:
S701: getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
S702: obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
S703: based on address, described the i-th+1 initial sector, obtains described i-th+1 number certificate;
S704: by described i-th+1 number certificate stored in described first spatial cache;
S705: when i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
In specific implementation process, continue to use above-mentioned example, can first to file spatial cache in advance in USB flash disk, its space size can be identical with the page size of USB flash disk, also can be the integral multiple of USB flash disk page size, not be restricted in the embodiment of the present application, be that 2 times of USB flash disk page size are example in the embodiment of the present application with spatial cache, namely the size of spatial cache is 512*4*2=4096 byte, i.e. 4KB.If the remainder size of data of this video stored in USB flash disk is 256KB, USB flash disk drives determines that the size of current residual data is 256/4=64 times of spatial cache, now, the remainder Data Placement of video is become 64 parts, the size of each number certificate is 4KB, namely every number is according to 2 pages occupying USB flash disk data field, if the first number is according to the video data stored in the 4th page in corresponding USB flash disk data field and the 5th page, then, by the 4th page and the first number corresponding to the 5th page according to being deposited in spatial cache, after USB flash disk driving detects that the storage unit of notebook computer obtains described first number certificate via described spatial cache, then by part data dump of first in spatial cache, then the sevtor address that the initial sector of the second number certificate is corresponding is stored in acquisition USB flash disk, the i.e. initial sector of the 6th page: sector 20, then, obtain the data of 20 to sector, sector 27 and be deposited in spatial cache, after USB flash disk driving detects that the storage unit of notebook computer obtains the second number certificate via described spatial cache, then by part data dump of second in spatial cache, continue to obtain next number certificate.By that analogy, until by 64 numbers of the remaining video stored in USB flash disk according to all reading, now just complete the reading to video.
If the remainder size of data of video is 250KB, then now Data Placement is become 63 parts, wherein, from 1 to 62 numbers certificates, the size of every number certificate is 4KB, and the size of the 63rd number certificate is 2KB, then adopt mode same as described above, from USB flash disk, read above-mentioned 63 number certificates.
The second way:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
In specific implementation process, continue to use above-mentioned example, can first to file spatial cache in advance in USB flash disk, its space size can be identical with the page size of USB flash disk, also can be the integral multiple of USB flash disk page size, not be restricted in the embodiment of the present application, be that 2 times of USB flash disk page size are example in the embodiment of the present application with spatial cache, namely the size of spatial cache is 512*4*2=4096 byte, i.e. 4KB.If the remainder size of data of this video stored in USB flash disk is 3KB, namely remaining video occupies 1.5 pages of USB flash disk data field, USB flash disk drives determines that current residual size of data is less than the size of spatial cache, then direct remaining data to be all deposited in spatial cache, via spatial cache, from USB flash disk, read corresponding data, complete the reading to video.
Embodiment three
Based on the inventive concept identical with the embodiment of the present application one, the embodiment of the present application three provides a kind of electronic equipment, please refer to Fig. 8, comprising:
Housing 10;
Storage unit 20, is arranged in housing 10, for storing the first data;
Processor 30, is arranged in housing 10, for when the data processing operation carried out described first data being detected, obtains the address, initial sector of described first data; Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in described storage unit, wherein, the described page comprises at least two sectors of described first sector; When described initial sector is described first sector, perform described data processing operation; When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
In the embodiment of the present application three, processor 30 also for:
By first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
In the embodiment of the present application three, because described data processing operation has multiple, as the first data as described in writing, read described first data etc., described data processing operation is different makes the alignment processing method of processor 30 also different.
The first situation:
When described data processing operation is for described first data of write, address, described initial sector is specially in described storage unit for storing the first initial sevtor address of the first storage space of described first data.Correspondingly, processor 30 specifically for:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
In a first scenario, processor 30 specifically for:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Processor 30 specifically for:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
When N is for being more than or equal to 2, processor 30 specifically for:
Get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
Based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and remove the described i-th number certificate in described first spatial cache;
By the i-th+1 number certificate stored in described first spatial cache;
When i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
The second situation:
When described data processing operation is for reading described first data, address, described initial sector is specially in described storage unit for storing the second address, initial sector of the second storage space of described first data.Correspondingly, processor 30 specifically for:
Read the described first data wherein Part I data corresponding with the described page.
In the latter case, processor 30 specifically for:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Processor 30 specifically for:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
When N is for being more than or equal to 2, processor 30 specifically for:
Getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
Obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
Based on address, described the i-th+1 initial sector, obtain described i-th+1 number certificate;
By described i-th+1 number certificate stored in described first spatial cache;
When i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
By the one or more technical schemes in the embodiment of the present application, following one or more technique effect can be realized:
One, due to the technical scheme in the embodiment of the present application, adopting when the data processing operation carried out the first data being detected, obtaining the address, initial sector of described first data, determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector, when described initial sector is described first sector, perform described data processing operation, when in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform the technological means of described data processing operation, like this, when electronic equipment is when carrying out data processing, first the address, initial sector of data and the corresponding relation of the page can be judged, then according to the difference of corresponding relation, different processing modes is adopted to carry out data processing, thus efficiently solve electronic equipment of the prior art and there is the single technical matters of read-write mode, realize the technique effect increasing electronic equipment read-write mode.
Two, due to the technical scheme in the embodiment of the present application, adopting at described data processing operation is described first data of write, when described initial sector is not described first sector, by described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page and by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache is M times of the size of the described page, M is the technological means of the integer being more than or equal to 1, like this, when initial sector is not described first sector, show that this sevtor address and the page do not line up, now, first the page corresponding for initial sector is first write full, then the sevtor address that record one is new, described new sevtor address aligns with sector, be the initial sector of a page, then remaining data is written in a spatial cache, after spatial cache writes full data, again data are stored in space corresponding to new sevtor address, because the size of spatial cache becomes integral multiple relation with page size, like this, spatial cache only needs just can by the data write-once electronic equipment in spatial cache according to described new sevtor address, and do not need the process of other acquisition sevtor address, decrease the number of times reading sevtor address when carrying out data and storing, thus efficiently solve electronic equipment of the prior art and there is the slow-footed technical matters read and write data, achieve the technique effect improving data processing speed.
Three, due to the technical scheme in the embodiment of the present application, adopting at described data processing operation is described first data of write, when described initial sector is not described first sector, by described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page and by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache is M times of the size of the described page, M is the technological means of the integer being more than or equal to 1, like this, decrease the number of times reading sevtor address when carrying out data and storing, improve the processing speed of electronic equipment when reading and writing data, thus achieve the technique effect improving Consumer's Experience.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Specifically, the computer program instructions that information processing method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, read by an electronic equipment when the computer program instructions corresponding with information processing method in storage medium or when being performed, comprise the steps:
When the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data;
Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector;
When described initial sector is described first sector, perform described data processing operation;
When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
Optionally, other computer program instructions is also stored in described storage medium, this other computer program instructions with step: when in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data be performed after performing described data processing operation, implementation comprises the steps:
By first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
Optionally, that store in described storage medium and step: during in described initial sector for described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation, corresponding computer program instructions, when being performed, specifically comprises the steps:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
Optionally, that store in described storage medium and step: by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, corresponding computer program instructions, when being performed, specifically comprises the steps:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
That store in described storage medium and step: by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, corresponding computer program instructions, when being performed, specifically comprises the steps:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
Optionally, when N is for being more than or equal to 2, store in described storage medium and step: getting i is successively 1 to N, described by the i-th number in described Part II data according to stored in described first spatial cache, corresponding computer program instructions, when being performed, specifically comprises the steps:
Get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
Based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and remove the described i-th number certificate in described first spatial cache;
By the i-th+1 number certificate stored in described first spatial cache;
When i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
Optionally, that store in described storage medium and step: during in described initial sector for described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation, corresponding computer program instructions, when being performed, specifically comprises the steps:
Read the described first data wherein Part I data corresponding with the described page.
Optionally, that store in described storage medium and step: by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, corresponding computer program instructions, when being performed, specifically comprises the steps:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
That store in described storage medium and step: by first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, corresponding computer program instructions, when being performed, specifically comprises the steps:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
Optionally, when N is for being more than or equal to 2, store in described storage medium and step: getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, corresponding computer program instructions, when being performed, specifically comprises the steps:
Getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
Obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
Based on address, described the i-th+1 initial sector, obtain described i-th+1 number certificate;
By described i-th+1 number certificate stored in described first spatial cache;
When i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (20)

1. an information processing method, comprising:
When the data processing operation carried out the first data being detected, obtain the address, initial sector of described first data;
Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in a storage unit, wherein, the described page comprises at least two sectors of described first sector;
When described initial sector is described first sector, perform described data processing operation;
When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
2. the method for claim 1, it is characterized in that, when in described initial sector not being described first sector, after to described first data corresponding with described initial sector, wherein Part I data perform described data processing operation, described method also comprises:
By first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
3. method as claimed in claim 2, it is characterized in that, when described data processing operation is for described first data of write, address, described initial sector is specially in described storage unit for storing the first initial sevtor address of the first storage space of described first data.
4. method as claimed in claim 3, is characterized in that, described when not being described first sector in described initial sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation, be specially:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
5. method as claimed in claim 4, is characterized in that, described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
6. method as claimed in claim 5, it is characterized in that, when N is for being more than or equal to 2, the described i that gets successively is 1 to N, described by the i-th number in described Part II data according to stored in described first spatial cache, specifically comprise:
Get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
Based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and remove the described i-th number certificate in described first spatial cache;
By the i-th+1 number certificate stored in described first spatial cache;
When i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
7. method as claimed in claim 2, it is characterized in that, when described data processing operation is for reading described first data, address, described initial sector is specially in described storage unit for storing the second address, initial sector of the second storage space of described first data.
8. method as claimed in claim 7, is characterized in that, described when not being described first sector in described initial sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation, specifically comprise:
Read the described first data wherein Part I data corresponding with the described page.
9. method as claimed in claim 8, is characterized in that, described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described by the Part II data except described Part I data in described first data stored in the first spatial cache of described storage unit, specifically comprise:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
10. method as claimed in claim 9, it is characterized in that, when N is for being more than or equal to 2, the described i that gets successively is 1 to N, by the i-th number certificate in described Part II data stored in described first spatial cache, specifically comprises:
Getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
Obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
Based on address, described the i-th+1 initial sector, obtain described i-th+1 number certificate;
By described i-th+1 number certificate stored in described first spatial cache;
When i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
11. 1 kinds of electronic equipments, comprising:
Housing;
Storage unit, is arranged in described housing, for storing the first data;
Processor, is arranged in described housing, for when the data processing operation carried out described first data being detected, obtains the address, initial sector of described first data; Determine that whether initial sector corresponding to address, described initial sector be first sector of the page in described storage unit, wherein, the described page comprises at least two sectors of described first sector; When described initial sector is described first sector, perform described data processing operation; When in described initial sector not being described first sector, to described first data corresponding with described initial sector wherein Part I data perform described data processing operation.
12. electronic equipments as claimed in claim 11, it is characterized in that, described be not described first sector in described initial sector time, after to described first data corresponding with described initial sector, wherein Part I data perform described data processing operation, described processor also for:
By first spatial cache of the Part II data except described Part I data in described first data stored in described storage unit, wherein, the size of described first spatial cache be the M of the size of the described page doubly, M be more than or equal to 1 integer.
13. electronic equipments as claimed in claim 12, it is characterized in that, when described data processing operation is for described first data of write, address, described initial sector is specially in described storage unit for storing the first initial sevtor address of the first storage space of described first data.
14. electronic equipments as claimed in claim 13, is characterized in that, described processor specifically for:
By described first data corresponding with the first residual memory space in the described page wherein Part I data write the described page.
15. electronic equipments as claimed in claim 14, is characterized in that, described processor specifically for:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described processor specifically for:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
16. electronic equipments as claimed in claim 15, is characterized in that, when N is for being more than or equal to 2, described processor specifically for:
Get i successively from 1 to N-1, by the i-th number according to after in stored in described first spatial cache, obtain the address, i-th initial sector of i-th pages different from described first page in described storage unit;
Based on address, described i-th initial sector, by described i-th number certificate stored in described i-th page, and remove the described i-th number certificate in described first spatial cache;
By the i-th+1 number certificate stored in described first spatial cache;
When i gets N-1, by the N number certificate in described Part II data stored in described first spatial cache.
17. electronic equipments as claimed in claim 12, it is characterized in that, when described data processing operation is for reading described first data, address, described initial sector is specially in described storage unit for storing the second address, initial sector of the second storage space of described first data.
18. electronic equipments as claimed in claim 17, is characterized in that, described processor specifically for:
Read the described first data wherein Part I data corresponding with the described page.
19. electronic equipments as claimed in claim 18, is characterized in that, described processor specifically for:
Determine that the size of described Part II data is N times of the size of described first spatial cache;
Described Part II Data Placement is become N part, and getting i is successively 1 to N, by the i-th number in described Part II data according to stored in described first spatial cache, wherein, N be more than or equal to 1 integer, i is the integer being more than or equal to 1 and being less than or equal to N; Or
Described processor specifically for:
Determine that the size of described Part II data is less than the size of described first spatial cache;
By described Part II data stored in described first spatial cache.
20. electronic equipments as claimed in claim 19, is characterized in that, when N is for being more than or equal to 2, described processor specifically for:
Getting i is successively 1 to N-1, by the i-th number according to after in stored in described first spatial cache, read described i-th number certificate, and remove the described i-th number certificate in described first spatial cache;
Obtain in described storage unit for storing the address, the i-th+1 initial sector of the i-th+1 page different from described first page of described i-th+1 number certificate;
Based on address, described the i-th+1 initial sector, obtain described i-th+1 number certificate;
By described i-th+1 number certificate stored in described first spatial cache;
When i is N-1, by the N number certificate in described Part II data stored in described first spatial cache.
CN201510674067.8A 2015-10-16 2015-10-16 A kind of information processing method and electronic equipment Active CN105389124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510674067.8A CN105389124B (en) 2015-10-16 2015-10-16 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510674067.8A CN105389124B (en) 2015-10-16 2015-10-16 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105389124A true CN105389124A (en) 2016-03-09
CN105389124B CN105389124B (en) 2018-11-09

Family

ID=55421443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510674067.8A Active CN105389124B (en) 2015-10-16 2015-10-16 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105389124B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329694A (en) * 2017-06-22 2017-11-07 苏州交运电子科技有限公司 Data storage control method, control device and storage device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243611A (en) * 2010-05-11 2011-11-16 深圳市朗科科技股份有限公司 Data storage method and system
CN102722456A (en) * 2012-05-30 2012-10-10 深圳市江波龙电子有限公司 Flash memory device and data writing method thereof
CN103425602A (en) * 2013-08-15 2013-12-04 深圳市江波龙电子有限公司 Data reading and writing method and device for flash memory equipment and host system
CN104536699A (en) * 2014-12-11 2015-04-22 中国科学院声学研究所 Streamed data write-in method based on embedded file system
CN104866428A (en) * 2014-02-21 2015-08-26 联想(北京)有限公司 Data access method and data access device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243611A (en) * 2010-05-11 2011-11-16 深圳市朗科科技股份有限公司 Data storage method and system
CN102722456A (en) * 2012-05-30 2012-10-10 深圳市江波龙电子有限公司 Flash memory device and data writing method thereof
CN103425602A (en) * 2013-08-15 2013-12-04 深圳市江波龙电子有限公司 Data reading and writing method and device for flash memory equipment and host system
CN104866428A (en) * 2014-02-21 2015-08-26 联想(北京)有限公司 Data access method and data access device
CN104536699A (en) * 2014-12-11 2015-04-22 中国科学院声学研究所 Streamed data write-in method based on embedded file system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329694A (en) * 2017-06-22 2017-11-07 苏州交运电子科技有限公司 Data storage control method, control device and storage device
CN107329694B (en) * 2017-06-22 2021-05-18 苏州奈特力智能科技有限公司 Data storage control method, control device and storage equipment

Also Published As

Publication number Publication date
CN105389124B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
US9880770B2 (en) Supporting invalidation commands for non-volatile memory
CN101266829B (en) Memory card, memory system including the same, and operating method thereof
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
US9164892B2 (en) Writing data to solid state drives
US11010079B2 (en) Concept for storing file system metadata within solid-stage storage devices
US20140297921A1 (en) Method of Partitioning Physical Block and Memory System Thereof
CN103077121B (en) The method of data management in a kind of flash memory device and device
WO2009096180A1 (en) Memory controller, nonvolatile storage device, and nonvolatile storage system
CN111078582A (en) Memory system based on mode adjustment mapping segment and operation method thereof
US20120198131A1 (en) Data writing method for rewritable non-volatile memory, and memory controller and memory storage apparatus using the same
CN103677674A (en) Data processing method and device
CN101751343A (en) Method for writing data in solid-state hard-disk and device thereof
CN104699622A (en) Data storage device and data erasing method thereof
CN109902034A (en) Snapshot creation method, device, electronic equipment and machine readable storage medium
CN105094691A (en) Data manipulation methods and system, and devices
CN106575273A (en) Systems and methods for expanding memory for system on chip
TW201327185A (en) Memory storage device and memory controller and data writing method thereof
CN103246482A (en) Apparatus and method for memory overlay
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
US10289334B2 (en) Valid data merging method, memory controller and memory storage apparatus
CN105389124A (en) Information processing method and electronic equipment
CN104182181A (en) Data processing method, device and terminal of memory card
CN112148203B (en) Memory management method, device, electronic equipment and storage medium
US9195595B2 (en) Portable apparatus using multi-core storage mechanism and data access method therefor
CN103577113B (en) A kind of memory unit access method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant