CN104766027A - Data access method - Google Patents

Data access method Download PDF

Info

Publication number
CN104766027A
CN104766027A CN201510134429.4A CN201510134429A CN104766027A CN 104766027 A CN104766027 A CN 104766027A CN 201510134429 A CN201510134429 A CN 201510134429A CN 104766027 A CN104766027 A CN 104766027A
Authority
CN
China
Prior art keywords
file destination
file
target data
mark
storage space
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
CN201510134429.4A
Other languages
Chinese (zh)
Inventor
李海林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510134429.4A priority Critical patent/CN104766027A/en
Publication of CN104766027A publication Critical patent/CN104766027A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a data access method. The method comprises the steps of receiving a read instruction for target data, wherein the read instruction includes a target data marker and a target file marker of a target file with the target data; searching a target linking file corresponding to the target file marker, wherein the target linking file carries the linking address information of the target file; analyzing the target linking file to obtain the linking address information of the target file determining whether the reading instruction includes preset encrypting information of the target data; if so, reading the target data corresponding to the target data marker from the target file according to the linking address information of the target file. With the adoption of the method, the safety of the target data can be improved.

Description

A kind of data access method
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of data access method.
Background technology
Along with the universal of intelligent mobile terminal equipment and development, the data volume of mobile terminal process is also increasing, and user is also increasing to the demand of terminal storage space.Existing mobile terminal device memory device is divided into two parts usually, Part I is internal memory, for a part of data that security requirement in storage system, user data and application program is higher, Part II is external memory, as TF card (Trans-flash Card), SD card (Secure Digital Memory Card), memory stick etc., for store picture data, another part data that in video data and application program, security requirement is not high.Because internal storage space size is limited, the higher partial data of security requirement leaves external memory safety in and often can not get ensureing.
Summary of the invention
The embodiment of the invention discloses a kind of data access method, the security of target data can be improved.
The embodiment of the invention discloses a kind of data access method, comprising:
Receive the reading command for target data, described reading command comprises the file destination mark of target data mark and described target data place file destination;
From the file identification of pre-stored and the corresponding lists of chained file, inquire about the Object linking file that described file destination mark is corresponding, described Object linking file carries the link address information of described file destination;
Resolve described Object linking file, obtain the link address information of described file destination;
Judge in described reading command, whether also to comprise the default decryption information reading described target data;
Comprise the default decryption information reading described target data if judge, then according to the link address information of described file destination, from described file destination, read the described target data that described target data mark is corresponding.
In the embodiment of the present invention, receive the reading command for target data, this reading command comprises the file destination mark of target data mark and target data place file destination; From the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination; Resolve Object linking file, obtain the link address information of file destination; Judge in reading command, whether also to comprise the default decryption information reading target data; Comprise the default decryption information reading target data if judge, then according to the link address information of file destination, from file destination, read the target data that target data mark is corresponding.Add default decryption information in the reading command for target data, the security of target data can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of data access method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of data access method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of data access method, by target data being placed in external storage space, thus can internal storage space be discharged.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of data access method disclosed in the embodiment of the present invention.As shown in Figure 1, this data access method can comprise the following steps:
S101, receives the reading command for target data, and reading command comprises the file destination mark of target data mark and target data place file destination.
In the embodiment of the present invention, the reading command received for target data can be the reading command for target data that response user inputs, and also can be the reading command for target data that response terminal automatic reception system sends.Target data mark can be the data type of target data, data creation time, data preserve address, size of data etc., can determine the target data needing to read according to target data mark.The file destination mark of target data place file destination can be the file destination mark of the file destination that target data is deposited, identify according to this file destination, navigate to this file destination, the target data according to target data identifies, and reads the target data of needs from this file destination.
S102, from the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination.
In the embodiment of the present invention, file destination mark can be relation one to one with Object linking file, and the Object linking file that query aim file identification is corresponding can determine Object linking file according to file destination mark with the one-to-one relationship of Object linking file.The link address information that Object linking file carries file destination is used for localizing objects file, and this link address information can be the address information that file destination stores.Object linking file takies very little storage space, can create a lot of chained files in internal storage space.
S103, resolves Object linking file, obtains the link address information of file destination.
In the embodiment of the present invention, resolve Object linking file, obtain the link address information of file destination, the link address information of the file destination carried by chained file, obtain the link address information of file destination.
S104, judges whether also comprise the default decryption information reading target data in reading command, if the determination result is YES, then performs step S105, if judged result is no, then performs step S106.
S105, according to the link address information of file destination, reads the target data that target data mark is corresponding from file destination.
In the embodiment of the present invention, according to the link address information of file destination, from file destination, read the target data that target data mark is corresponding.According to the link address information of file destination, localizing objects file, in file destination, according to the corresponding target data of target data identifier lookup, thus obtains target data corresponding to target data mark.File destination takies larger storage space, can leave external memory in, and chained file takies very little storage space, can leave internal memory in.By taking the chained file of very little storage space in internal storage space, the data realized taking in external storage space in the larger file destination of storage space conduct interviews.
S106, abandons reading command, and refusal reads target data.
In the method described by Fig. 1, terminal can receive the reading command for target data, and this reading command comprises the file destination mark of target data mark and target data place file destination; From the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination; Resolve Object linking file, obtain the link address information of file destination; Judge in reading command, whether also to comprise the default decryption information reading target data; Comprise the default decryption information reading target data if judge, then according to the link address information of file destination, from file destination, read the target data that target data mark is corresponding; Do not comprise the default decryption information reading target data if judge in reading command, then abandon reading command, refusal reads target data.Add default decryption information in the reading command for target data, the security of target data can be improved.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of a kind of data access method disclosed in the embodiment of the present invention.As shown in Figure 2, this data access method can comprise the following steps:
S201, judges whether to meet the pre-conditioned of establishment file destination.
In the embodiment of the present invention, judge whether that meeting the pre-conditioned of establishment file destination can be the pre-conditioned of the whether satisfied establishment file destination of size of the pre-conditioned of the whether satisfied establishment file destination of size of the storage space judging internal memory and the storage space judging external memory.
In the embodiment of the present invention, whether terminal judges meets establishment the pre-conditioned of file destination can comprise the following steps:
11) the current size taking the storage space of internal memory is obtained;
12) judge that whether the current size taking the storage space of internal memory is more than the first predetermined threshold value;
13) if the current size taking the storage space of described internal memory is more than the first predetermined threshold value, judge that whether the current size taking the storage space of external memory is more than the second predetermined threshold value;
14) if the current size taking the storage space of described external memory is no more than the second predetermined threshold value, then determine to meet the pre-conditioned of establishment file destination.
In the embodiment of the present invention, when terminal needs to create file destination, first obtain the current size taking the storage space of internal memory, secondly judge that whether the current size taking the storage space of internal memory is more than the first predetermined threshold value, this first predetermined threshold value can set according to the size of internal storage space automatically for system, also can arrange for user individual, for example, if the size of the storage space of internal memory is 1,000 million (1000MB), it is 800MB that system can arrange the first predetermined threshold value, also can be set to 700MB, 500MB, 300MB even 100MB according to user individual, the size of the storage space of described internal memory is taken more than the first predetermined threshold value if current, again judge that whether the current size taking the storage space of external memory is more than the second predetermined threshold value, this second predetermined threshold value can set according to the size of external storage space automatically for system, also can arrange for user individual, for example, if the size of the storage space of external memory is 8 gigabits (8000MB), it is 7000MB that system can arrange the first predetermined threshold value, also 7500MB can be set to according to user individual, 6500MB, 6000MB, 5000MB etc.If the size taking the storage space of described external memory current is no more than the second predetermined threshold value, then determine to meet to create the pre-conditioned of file destination.When the memory space inadequate of internal memory, system running speed can be caused slack-off, even can crash, affect Consumer's Experience, the embodiment of the present invention is by taking the chained file of very little storage space in internal storage space, realize conducting interviews to the data taken in external storage space in the larger file destination of storage space, effectively can discharge internal storage space, thus improve system response speed.
In the embodiment of the present invention, whether terminal judges meets establishment the pre-conditioned of file destination can also comprise the following steps:
21) if the current size taking the storage space of internal memory is no more than the first predetermined threshold value, then determine not meet the pre-conditioned of establishment file destination.
In the embodiment of the present invention, whether terminal judges meets establishment the pre-conditioned of file destination can also comprise the following steps:
31) if the current size taking the storage space of external memory is more than the second predetermined threshold value, then determine not meet and create the pre-conditioned of file destination.
S202, if meet, creates the file destination comprising target data, for file destination distributes file destination mark.
In the embodiment of the present invention, create the file destination comprising target data, for file destination distributes file destination mark.Wherein, when creating file destination, target data is write this file destination, and identify for this file destination distributes file destination.
In the embodiment of the present invention, terminal creates the file destination comprising target data and can comprise the following steps:
41) file destination is created, for file destination distributes file destination mark;
42) receive the write instruction comprising target data, write instruction comprises the file destination mark of file destination;
43) target data is write file destination;
44) for target data distributes target data mark.
In the embodiment of the present invention, when terminal determine to meet create file destination pre-conditioned time, first create file destination, and identify for file destination distributes file destination; Secondly receive the write instruction comprising target data, write instruction comprises the file destination mark of file destination; Again target data is write file destination; Finally for target data distributes target data mark.
Wherein, target data is write file destination and specifically can comprise by terminal:
51) predetermined encryption information is utilized to encrypt target data;
52) by the target data write file destination after encryption.
In the embodiment of the present invention, when utilizing predetermined encryption information to encrypt target data, first target data is encrypted through certain algorithm (as AES, MD5 etc.), here AES refers to the Advanced Encryption Standard in cryptography, and MD5 refers to the Message-Digest Algorithm 5 in cryptography; Then by the target data write file destination after encryption.After target data is encrypted, effectively can prevent target data from being revealed, ensure that privacy and the security of target data.
S203, leaves file destination in external memory.
S204, generate Object linking file, Object linking file carries the link address information of file destination; Wherein, the link address information of file destination is the storage address information of file destination in external memory.
In the embodiment of the present invention, generating Object linking file is generate according to the address information of file destination, and wherein, the link address information of file destination is the storage address information of file destination in external memory.
S205, leaves Object linking file in internal memory.
S206, sets up the corresponding relation of file destination mark and Object linking file.
In the embodiment of the present invention, when establishment file destination, for file destination distributes file destination mark and after generating Object linking file, set up the corresponding relation of file destination mark and Object linking file, this corresponding relation can be the one-to-one relationship of file destination mark and Object linking file, and this corresponding relation leaves in the corresponding lists of file identification and chained file.
S207, is added into file destination mark in the corresponding lists of file identification and chained file with the corresponding relation of Object linking file.
In the embodiment of the present invention, the corresponding lists of file identification and chained file can leave internal memory in.
S208, receives the reading command for target data, and reading command comprises the file destination mark of target data mark and target data place file destination.
S209, from the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination.
S210, resolves Object linking file, obtains the link address information of file destination.
S211, judges whether also comprise the default decryption information reading target data in reading command.
S212, comprises the default decryption information reading target data if judge, then according to the link address information of file destination, read the target data that target data mark is corresponding from file destination.
In the method described by Fig. 2, terminal can judge whether to meet and create the pre-conditioned of file destination; If meet, create the file destination comprising target data, for file destination distributes file destination mark; Leave file destination in external memory; Generate Object linking file, Object linking file carries the link address information of file destination; Wherein, the link address information of file destination is the storage address information of file destination in external memory; Leave Object linking file in internal memory; Set up the corresponding relation of file destination mark and Object linking file; File destination mark is added in the corresponding lists of file identification and chained file with the corresponding relation of Object linking file; Receive the reading command for target data, this reading command comprises the file destination mark of target data mark and target data place file destination; From the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination; Resolve Object linking file, obtain the link address information of file destination; Judge in reading command, whether also to comprise the default decryption information reading target data; Comprise the default decryption information reading target data if judge, then according to the link address information of file destination, from file destination, read the target data that target data mark is corresponding.Add default decryption information in the reading command for target data, the security of target data can be improved.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention, and wherein, the terminal shown in Fig. 3 can comprise receiving element 301, query unit 302, resolution unit 303 and judging unit 304, reading unit 305 and discarding unit 306.
Receiving element 301, for receiving the reading command for target data, reading command comprises the file destination mark of target data mark and target data place file destination.
In the embodiment of the present invention, the reading command that receiving element 301 receives for target data can be the reading command for target data that response user inputs, and also can be the reading command for target data that response terminal automatic reception system sends.Target data mark can be the data type of target data, data creation time, data preserve address, size of data etc., can determine the target data needing to read according to target data mark.The file destination mark of target data place file destination can be the file destination mark of the file destination that target data is deposited, identify according to this file destination, navigate to this file destination, the target data according to target data identifies, and reads the target data of needs from this file destination.
Query unit 302, for from the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination.
In the embodiment of the present invention, file destination mark can be relation one to one with Object linking file, and the Object linking file that query unit 302 query aim file identification is corresponding can determine Object linking file according to file destination mark with the one-to-one relationship of Object linking file.The link address information that Object linking file carries file destination is used for localizing objects file, and this link address information can be the address information that file destination stores.Object linking file takies very little storage space, can create a lot of chained files in internal storage space.
Resolution unit 303, for resolving Object linking file, obtains the link address information of file destination.
In the embodiment of the present invention, resolution unit 303 resolves Object linking file, obtains the link address information of file destination, the link address information of the file destination carried by chained file, obtains the link address information of file destination.
Whether judging unit 304, also comprise for judging the default decryption information reading target data in reading command.
In the embodiment of the present invention, judging unit 304 judges whether also comprise the default decryption information reading target data in reading command, if comprise, according to the link address information of file destination, can read the target data that target data mark is corresponding from file destination.If do not comprise, can abandon reading command, refusal reads target data, by judging whether comprise the default decryption information reading target data in reading command, can improve the security of target data.
Reading unit 305, for when judging unit judged result is for being, then according to the link address information of file destination, reads the target data that target data mark is corresponding from file destination.
In the embodiment of the present invention, reading unit 305, according to the link address information of file destination, reads the target data that target data mark is corresponding from file destination.According to the link address information of file destination, localizing objects file, in file destination, according to the corresponding target data of target data identifier lookup, thus obtains target data corresponding to target data mark.File destination takies larger storage space, can leave external memory in, and chained file takies very little storage space, can leave internal memory in.By taking the chained file of very little storage space in internal storage space, the data realized taking in external storage space in the larger file destination of storage space conduct interviews.
Discarding unit 306, during for being no when judging unit judged result, abandons reading command, and refusal reads target data.
In the terminal described by Fig. 3, receiving element 301 can receive the reading command for target data, and this reading command comprises the file destination mark of target data mark and target data place file destination; Query unit 302 from the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination; Resolution unit 303 resolves Object linking file, obtains the link address information of file destination; Judging unit 304 judges whether also comprise the default decryption information reading target data in reading command; When judging unit 304 judged result is for being, reading unit 305 link address information according to file destination, read the target data that target data mark is corresponding from file destination; When judging unit judged result is no, discarding unit 306 abandons reading command, and refusal reads target data.Add default decryption information in the reading command for target data, the security of target data can be improved.
See also Fig. 4, Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.Wherein, the terminal shown in Fig. 4 is that terminal is as shown in Figure 3 optimized and obtains.Compared with the terminal shown in Fig. 3, terminal shown in Fig. 4, except the receiving element 301 comprised shown in Fig. 3, query unit 302, resolution unit 303 and judging unit 304 and reading unit 305, can also comprise the first judging unit 307, creating unit 308, first storage unit 309, generation unit 310, second storage unit 311, set up unit 312 and adding device 313.
First judging unit 307, before receiving the reading command for target data at receiving element, judges whether to meet the pre-conditioned of establishment file destination.
In the embodiment of the present invention, the first judging unit 307 judges whether that meeting the pre-conditioned of establishment file destination can be the pre-conditioned of the whether satisfied establishment file destination of size of the pre-conditioned of the whether satisfied establishment file destination of size of the storage space judging internal memory and the storage space judging external memory.
In the terminal shown in Fig. 4, the first judging unit 307 can comprise with lower unit:
First acquiring unit 3701, for obtaining the current size taking the storage space of internal memory.
Second judging unit 3702, for judging that whether the current size taking the storage space of internal memory is more than the first predetermined threshold value.
3rd judging unit 3703, for when the second judging unit judged result is for being, judges that whether the current size taking the storage space of external memory is more than the second predetermined threshold value.
Determining unit 3704, if be no more than the second predetermined threshold value for the current size taking the storage space of external memory, then determines to meet the pre-conditioned of establishment file destination.
In the embodiment of the present invention, when terminal needs to create file destination, the first acquiring unit 3701 obtains the current size taking the storage space of internal memory, second judging unit 3702 judges that whether the current size taking the storage space of internal memory is more than the first predetermined threshold value, this first predetermined threshold value can set according to the size of internal storage space automatically for system, also can arrange for user individual, for example, if the size of the storage space of internal memory is 1,000 million (1000MB), it is 800MB that system can arrange the first predetermined threshold value, also can be set to 700MB, 500MB, 300MB even 100MB according to user individual, the size of the storage space of described internal memory is taken more than the first predetermined threshold value if current, 3rd judging unit 3703 judges that whether the current size taking the storage space of external memory is more than the second predetermined threshold value, this second predetermined threshold value can set according to the size of external storage space automatically for system, also can arrange for user individual, for example, if the size of the storage space of external memory is 8 gigabits (8000MB), it is 7000MB that system can arrange the first predetermined threshold value, also 7500MB can be set to according to user individual, 6500MB, 6000MB, 5000MB etc.If the size taking the storage space of described external memory current is no more than the second predetermined threshold value, and determining unit 3704 is determined to meet the pre-conditioned of establishment file destination.When the memory space inadequate of internal memory, system running speed can be caused slack-off, even can crash, affect Consumer's Experience, the embodiment of the present invention is by taking the chained file of very little storage space in internal storage space, realize conducting interviews to the data taken in external storage space in the larger file destination of storage space, effectively can discharge internal storage space, thus improve system response speed.
Creating unit 308, for when the first judging unit judged result is for being, creates the file destination comprising target data, for file destination distributes file destination mark.
In the terminal shown in Fig. 4, creating unit 308 can comprise with lower unit:
First creating unit 3801, for creating file destination, for file destination distributes file destination mark.
First receiving element 3802, for receiving the write instruction comprising target data, write instruction comprises the file destination mark of file destination.
Writing unit 3803, for writing file destination by target data.
Allocation units 3804, for distributing target data mark for target data.
In the embodiment of the present invention, when terminal determine to meet create file destination pre-conditioned time, the first creating unit 3801 creates file destination, and identifies for file destination distributes file destination; First receiving element 3802 receives the write instruction comprising target data, and write instruction comprises the file destination mark of file destination; Target data is write file destination by writing unit 3803; Allocation units 3804 distribute target data for target data and identify.
In the embodiment of the present invention, writing unit 3803 specifically can comprise ciphering unit and the first writing unit.Ciphering unit, encrypts target data for utilizing predetermined encryption information; First writing unit, for writing file destination by the target data after encryption.
When utilizing predetermined encryption information to encrypt target data, first target data encrypted through certain algorithm (as AES, MD5 etc.), AES here refers to the Advanced Encryption Standard in cryptography, and MD5 refers to the Message-Digest Algorithm 5 in cryptography; Then by the target data write file destination after encryption.Ciphering unit effectively can prevent target data from being revealed, ensure that privacy and the security of target data after target data being encrypted.
First storage unit 309, for leaving file destination in external memory.
Generation unit 310, for generating Object linking file, Object linking file carries the link address information of file destination; Wherein, the link address information of file destination is the storage address information of file destination in external memory.
In the embodiment of the present invention, it is generate according to the address information of file destination that generation unit 310 generates Object linking file, and wherein, the link address information of file destination is the storage address information of file destination in external memory.
Second storage unit 311, for leaving Object linking file in internal memory.
Set up unit 312, for setting up the corresponding relation of file destination mark and Object linking file;
In the embodiment of the present invention, creating unit 308 creates file destination, and distribute file destination mark and after generating Object linking file for file destination, set up the corresponding relation that unit 312 sets up file destination mark and Object linking file, this corresponding relation can be the one-to-one relationship of file destination mark and Object linking file, and this corresponding relation leaves in the corresponding lists of file identification and chained file.
Adding device 313, for being added into file destination mark in the corresponding lists of file identification and chained file with the corresponding relation of Object linking file.
In the embodiment of the present invention, the corresponding lists of file identification and chained file can leave internal memory in.
In the terminal described by Fig. 4, the first judging unit 307 can judge whether to meet and create the pre-conditioned of file destination; If meet, creating unit 308 creates the file destination comprising target data, for file destination distributes file destination mark; First storage unit 309 leaves file destination in external memory; Generation unit 310 generates Object linking file, and Object linking file carries the link address information of file destination; Wherein, the link address information of file destination is the storage address information of file destination in external memory; Second storage unit 311 leaves Object linking file in internal memory; Set up the corresponding relation that unit 312 sets up file destination mark and Object linking file; File destination mark is added in the corresponding lists of file identification and chained file with the corresponding relation of Object linking file by adding device 313; Receiving element 301 receives the reading command for target data, and this reading command comprises the file destination mark of target data mark and target data place file destination; Query unit 302 from the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination, and Object linking file leaves internal memory in; Resolution unit 303 resolves Object linking file, obtains the link address information of file destination; Judging unit 304 judges whether also comprise the default decryption information reading target data in reading command; Comprise the default decryption information reading target data if judge, reading unit 305 link address information according to file destination, from file destination, read the target data that target data mark is corresponding.Add default decryption information in the reading command for target data, the security of target data can be improved.
Refer to Fig. 5, Fig. 5 is the structural representation of the embodiment of the present invention another terminal disclosed, as shown in Figure 5, this terminal can comprise: at least one processor 410, such as CPU, storer 420, at least one communication bus 430, input media 440, output unit 450.Wherein, communication bus 430 is for realizing the communication connection between these assemblies.Storer 420 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 420 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 410.Wherein, processor 410 can composition graphs 3 and the terminal described by Fig. 4, stores batch processing code in storer 420, and processor 410 calls the program code stored in storer 420, for performing following operation:
Receive the reading command for target data by input media 440, reading command comprises the file destination mark of target data mark and target data place file destination.
From the file identification of pre-stored and the corresponding lists of chained file, the Object linking file that query aim file identification is corresponding, Object linking file carries the link address information of file destination;
Resolve Object linking file, obtain the link address information of file destination;
Judge in reading command, whether also to comprise the default decryption information reading target data;
Comprise the default decryption information reading target data if judge, then according to the link address information of file destination, from file destination, read target data corresponding to target data mark by output unit 450.
In the embodiment of the present invention, processor 410 calls the program code in storer 420, before receiving the reading command for target data, can also perform following operation:
Judge whether to meet and create the pre-conditioned of file destination;
If meet, create the file destination comprising target data, for file destination distributes file destination mark;
Leave file destination in external memory;
Generate Object linking file, Object linking file carries the link address information of file destination; Wherein, the link address information of file destination is the storage address information of file destination in external memory;
Leave Object linking file in internal memory;
Set up the corresponding relation of file destination mark and Object linking file;
File destination mark is added in the corresponding lists of file identification and chained file with the corresponding relation of Object linking file.
In the embodiment of the present invention, processor 410 calls the program code in storer 420, judges whether that meeting establishment the pre-conditioned of file destination can specifically comprise following operation:
Obtain the current size taking the storage space of internal memory;
Judge that whether the current size taking the storage space of internal memory is more than the first predetermined threshold value;
If the size taking the storage space of described internal memory current, more than the first predetermined threshold value, judges that whether the current size taking the storage space of external memory is more than the second predetermined threshold value;
If the size taking the storage space of described external memory current is no more than the second predetermined threshold value, then determine to meet to create the pre-conditioned of file destination.
In the embodiment of the present invention, processor 410 calls the program code in storer 420, judges whether that meeting establishment the pre-conditioned of file destination can also specifically comprise following operation:
If the size taking the storage space of internal memory current is no more than the first predetermined threshold value, then determine not meet to create the pre-conditioned of file destination;
If the size taking the storage space of external memory current more than the second predetermined threshold value, is then determined not meet the pre-conditioned of establishment file destination.
In the embodiment of the present invention, processor 410 calls the program code in storer 420, and creating the file destination comprising target data can specifically comprise following operation:
Create file destination, for file destination distributes file destination mark;
Receive the write instruction comprising target data, write instruction comprises the file destination mark of file destination;
Target data is write file destination;
For target data distributes target data mark.
Wherein target data is write file destination by processor, can be specially:
Predetermined encryption information is utilized to encrypt target data;
By the target data write file destination after encryption.
In the embodiment of the present invention, processor 410 calls the program code in storer 420, can also perform following operation:
Do not comprise the default decryption information reading target data if judge in reading command, then abandon reading command, refusal reads target data.
Concrete, the terminal introduced in the present embodiment can implement the part or all of flow process in the embodiment of the data access method that composition graphs 1 to Fig. 2 of the present invention introduces.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal or equipment or subelement can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can carry out the device-dependent hardware of command terminal by program to have come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Be described in detail the embodiment of the invention discloses a kind of data access method above, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (9)

1. a data access method, is characterized in that, comprising:
Receive the reading command for target data, described reading command comprises the file destination mark of target data mark and described target data place file destination;
From the file identification of pre-stored and the corresponding lists of chained file, inquire about the Object linking file that described file destination mark is corresponding, described Object linking file carries the link address information of described file destination;
Resolve described Object linking file, obtain the link address information of described file destination;
Judge in described reading command, whether also to comprise the default decryption information reading described target data;
Comprise the default decryption information reading described target data if judge, then according to the link address information of described file destination, from described file destination, read the described target data that described target data mark is corresponding.
2. method according to claim 1, is characterized in that, before the reading command of described reception for target data, described method also comprises:
Judge whether to meet and create the pre-conditioned of file destination;
If meet, create the file destination comprising described target data, for described file destination distributes described file destination mark;
Leave described file destination in external memory;
Generate Object linking file, described Object linking file carries the link address information of described file destination; Wherein, the link address information of described file destination is the storage address information of described file destination in described external memory;
Leave described Object linking file in internal memory;
Set up the corresponding relation of described file destination mark and Object linking file;
Described file destination mark is added in the corresponding lists of described file identification and chained file with the corresponding relation of Object linking file.
3. method according to claim 2, is characterized in that, described establishment comprises the file destination of described target data, comprises for described file destination distributes described file destination mark:
Create described file destination, for described file destination distributes described file destination mark;
Receive the write instruction comprising described target data, said write instruction comprises the described file destination mark of described file destination;
Described target data is write described file destination;
For described target data distributes described target data mark.
4. method according to claim 3, is characterized in that, describedly described target data is write described file destination comprises:
Predetermined encryption information is utilized to encrypt described target data;
Described target data after encryption is write described file destination.
5. method according to claim 1, is characterized in that, described method also comprises:
Do not comprise the default decryption information reading described target data if judge in described reading command, then abandon described reading command, refusal reads described target data.
6. method according to claim 2, is characterized in that, described in judge whether meet create the pre-conditioned of file destination comprise:
Obtain the current size taking the storage space of described internal memory;
Judge that whether the described current size taking the storage space of described internal memory is more than the first predetermined threshold value;
If the described current size taking the storage space of described internal memory is more than the first predetermined threshold value, judge that whether the current size taking the storage space of described external memory is more than the second predetermined threshold value;
If the size taking the storage space of described external memory current is no more than the second predetermined threshold value, then determine to meet to create the pre-conditioned of file destination.
7. method according to claim 6, is characterized in that, described method also comprises:
If the described current size taking the storage space of described internal memory is no more than the first predetermined threshold value, then determine not meet the pre-conditioned of establishment file destination.
8. method according to claim 6, is characterized in that, described method also comprises:
If the size taking the storage space of described external memory current more than the second predetermined threshold value, is then determined not meet the pre-conditioned of establishment file destination.
9. method according to claim 2, is characterized in that, described method also comprises:
Leave the corresponding lists of described file identification and chained file in described internal memory.
CN201510134429.4A 2015-03-25 2015-03-25 Data access method Pending CN104766027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510134429.4A CN104766027A (en) 2015-03-25 2015-03-25 Data access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510134429.4A CN104766027A (en) 2015-03-25 2015-03-25 Data access method

Publications (1)

Publication Number Publication Date
CN104766027A true CN104766027A (en) 2015-07-08

Family

ID=53647846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510134429.4A Pending CN104766027A (en) 2015-03-25 2015-03-25 Data access method

Country Status (1)

Country Link
CN (1) CN104766027A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104097A (en) * 2019-12-13 2020-05-05 上海众源网络有限公司 Data writing and reading method and device
WO2023216989A1 (en) * 2022-05-11 2023-11-16 华为技术有限公司 Method for converting file format, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101779209A (en) * 2007-08-24 2010-07-14 国际商业机器公司 Be used for protecting the system and method for the content that is stored in memory device
US20110004755A1 (en) * 2009-07-02 2011-01-06 Sharp Kabushiki Kaisha User information providing system
CN101958838A (en) * 2010-10-14 2011-01-26 联动优势科技有限公司 Data access method and device
CN102541762A (en) * 2010-12-27 2012-07-04 北京国睿中数科技股份有限公司 Data protector for external memory and data protection method
CN103218572A (en) * 2012-01-23 2013-07-24 国际商业机器公司 Memory address translation-based data encryption/compression
CN104408044A (en) * 2014-10-23 2015-03-11 北京用友政务软件有限公司 File access method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101779209A (en) * 2007-08-24 2010-07-14 国际商业机器公司 Be used for protecting the system and method for the content that is stored in memory device
US20110004755A1 (en) * 2009-07-02 2011-01-06 Sharp Kabushiki Kaisha User information providing system
CN101958838A (en) * 2010-10-14 2011-01-26 联动优势科技有限公司 Data access method and device
CN102541762A (en) * 2010-12-27 2012-07-04 北京国睿中数科技股份有限公司 Data protector for external memory and data protection method
CN103218572A (en) * 2012-01-23 2013-07-24 国际商业机器公司 Memory address translation-based data encryption/compression
CN104408044A (en) * 2014-10-23 2015-03-11 北京用友政务软件有限公司 File access method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104097A (en) * 2019-12-13 2020-05-05 上海众源网络有限公司 Data writing and reading method and device
CN111104097B (en) * 2019-12-13 2023-06-30 上海众源网络有限公司 Data writing and reading method and device
WO2023216989A1 (en) * 2022-05-11 2023-11-16 华为技术有限公司 Method for converting file format, and electronic device

Similar Documents

Publication Publication Date Title
CN107801165B (en) Business short message pushing method and device, computer equipment and storage medium
US9037870B1 (en) Method and system for providing a rotating key encrypted file system
US9769654B2 (en) Method of implementing a right over a content
CN108197485B (en) Terminal data encryption method and system and terminal data decryption method and system
US9967097B2 (en) Method and system for converting data in an electronic device
KR20190018869A (en) System and method for providing storage service based on block chain
CN104144419A (en) Identity authentication method, device and system
CN107577538B (en) Container resource management method and system
MX2007008540A (en) Method and portable storage device for allocating secure area in insecure area.
CN105007577A (en) Virtual SIM card parameter management method, mobile terminal and server
CN110460581B (en) File sharing method, system, equipment, SE device, shared end and medium
CN106506515B (en) Authentication method and device
CN113032357A (en) File storage method and device and server
JP6923582B2 (en) Information processing equipment, information processing methods, and programs
CN112883388A (en) File encryption method and device, storage medium and electronic device
CN107872315B (en) Data processing method and intelligent terminal
CN107547675B (en) User equipment migration method and device
CN109039997B (en) Secret key obtaining method, device and system
CN104423928A (en) Data processing method, data processing device and terminal equipment
CN104766027A (en) Data access method
CN112887297B (en) Privacy-protecting differential data determining method, device, equipment and system
CN103746768A (en) Data packet identification method and equipment thereof
CN104766026A (en) Terminal
US20180314807A1 (en) File permission control method
CN106537962B (en) Wireless network configuration, access and access method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20190215

AD01 Patent right deemed abandoned