CN107704198B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN107704198B
CN107704198B CN201710708280.5A CN201710708280A CN107704198B CN 107704198 B CN107704198 B CN 107704198B CN 201710708280 A CN201710708280 A CN 201710708280A CN 107704198 B CN107704198 B CN 107704198B
Authority
CN
China
Prior art keywords
file
storage unit
reading
stored
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710708280.5A
Other languages
Chinese (zh)
Other versions
CN107704198A (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 CN201710708280.5A priority Critical patent/CN107704198B/en
Publication of CN107704198A publication Critical patent/CN107704198A/en
Application granted granted Critical
Publication of CN107704198B publication Critical patent/CN107704198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1456Hardware arrangements for backup
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD

Landscapes

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

Abstract

The invention discloses information processing method and electronic equipment, wherein the electronic equipment comprises a storage unit and a second storage unit, a 1 operating system is installed in the 0 storage unit, whether the th file is stored in the second storage unit is judged in the process that the 2 th operating system reads the part file of the th file from the 3 storage unit, when the th file is stored in the second storage unit, the second part file of the th file is read in advance from the second storage unit in the period of reading the part file from the storage unit, wherein the second part file is different from the part file.

Description

Information processing method and electronic equipment
The application has an application date of 2012, 12 and 17, and has an application number of: 201210549720.4, title of the invention: an information processing method and a divisional application of an electronic device.
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an information processing method and an electronic device.
Background
With the development of computer technology, in order to speed up the read-write performance or stability of hard disks, the existing electronic device usually uses a Redundant Array of Independent Disks (RAID) technology, for example, RAID0 is to disperse continuous data to multiple hard disks for access, so that a system can be executed by multiple hard disks in parallel when there is a data request, and each hard disk executes its own part of data request, thereby improving the data read performance of a hard disk combination; RAID1 realizes data redundancy by mirroring hard disk data, and generates data that are backed up with each other on paired independent hard disks, thereby improving the reliability of the hard disks.
In the process of implementing the technical solution of the embodiment of the present application, the inventor of the present application finds at least the following technical problems in the prior art:
when the existing electronic equipment uses the RAID0 technology, data is stored dispersedly, the damage of any hard disks can cause the loss of all data, and the probability of damage of a plurality of hard disks is greater than that of a single hard disk, so that the overall reliability of the hard disks is reduced, and the safety is low, while when the RAID1 technology is used, the reliability of the overall operation of the hard disks is improved, but the data reading speed is low due to the adoption of a redundancy backup method.
Disclosure of Invention
The embodiment of the application provides information processing methods and electronic equipment, so as to solve the technical problems that when the electronic equipment in the prior art reads data from a hard disk, the data reading speed is high, the safety is low, and when the safety is high, the data reading speed is low.
The embodiment of the application provides information processing methods, which are applied to electronic equipment, wherein the electronic equipment comprises a storage unit and a second storage unit, a operating system is installed in a storage unit, and the method comprises the following steps:
in the process that the operating system reads the part file of the file from the storage unit, judging whether the file is stored in the second storage unit;
when the th file is stored in the second storage unit, during reading of the th partial file from the th storage unit, starting pre-reading of a second partial file of the th file from the second storage unit, wherein the second partial file is different from the th partial file;
when the th file is stored in the second storage unit, the pre-reading of the 1 th file part of the th file from the second storage unit is started during the reading of the 0 th file part from the th storage unit, specifically, the method comprises the steps of acquiring th identification information after the th file part from the th file when the th file is stored in the second storage unit, acquiring a second file part of the 85 th file based on the th identification information, and starting the pre-reading of the second file part from the second storage unit during the reading of the 36 th file part from the th storage unit.
Optionally, the second storage unit is mounted in an th directory of the electronic device, and the th directory is directories in the th storage unit.
Optionally, the th file is stored in the second storage unit, and specifically includes acquiring a th file from a file package stored in the th storage unit based on preset rules, generating a th control instruction, and executing the th control instruction, and backing up th data content of the th file in a preset space in the second storage unit.
Optionally, after the control instruction is executed and the 0 th data content of the th file is backed up in the preset space in the second storage unit, the method further includes obtaining a th path parameter of the th data content in the second storage unit, and storing the th path parameter in a memory of the electronic device, so that the memory can read the th data content of the th file through the th path parameter.
Optionally, the pre-reading of the second part file from the second storage unit is started during the reading of the th part file from the th storage unit, and specifically includes acquiring a second path parameter of the second part file in the second storage unit during the reading of the th part file from the th storage unit, and pre-reading a second data content of the second part file through the th memory based on the second path parameter.
Optionally, after the reading of the second partial file from the second storage unit is started, the method further includes detecting whether the th file is changed, acquiring a second file when the th file is changed, where the second file is the th file after the change, and replacing the th file stored in the second storage unit with the second file.
The embodiment of the present application further provides electronic devices, where the electronic device includes a th storage unit and a second storage unit, the th storage unit has a th operating system installed therein, and the electronic device includes:
a circuit board;
a processing chip, disposed on the circuit board, for determining whether the th file is stored in the second storage unit during a process that the th operating system reads the th part of the th file from the th storage unit, and for starting to pre-read a second part of the th file from the second storage unit during a period that the th part of the th file is read from the th storage unit when the th file is stored in the second storage unit, wherein the second part of the th file is different from the nd part of the 362 th file;
the processing chip comprises an th reading unit, when the th file is stored in the second storage unit, the th reading unit is used for acquiring th identification information after the th part file from the th file, acquiring a second part file of the th file based on the th identification information, and during the reading of the th part file from the th storage unit, the th reading unit is used for starting pre-reading of the second part file from the second storage unit.
Optionally, the processing chip includes a mounting unit, configured to mount the second storage unit under an th directory of the electronic device, where the th directory is directories in the th storage unit.
Optionally, the processing chip includes a data backup unit, where the th file is stored in the second storage unit, and is used to obtain the th file from the file package stored in the th storage unit based on preset rules, generate a th control instruction, and execute the th control instruction, so as to backup the th data content of the th file in a preset space in the second storage unit.
Optionally, the processing chip includes a path parameter storage unit, and after the 0 th data content of the th file is backed up in a preset space in the second storage unit by executing the th control instruction, the processing chip is configured to obtain a th path parameter of the th data content in the second storage unit, and store the th path parameter in an th memory of the electronic device, so that the th memory can read the th data content of the th file by using the th path parameter.
Optionally, the th reading unit includes a second reading unit, configured to, during the period of reading the th partial file from the th storage unit, obtain second path parameters of the second partial file in the second storage unit, and based on the second path parameters, pre-read second data content of the second partial file through the th memory.
Optionally, the processing chip includes a prompt unit, configured to detect whether the th file is changed after the second partial file is read from the second storage unit, and obtain a second file when the th file is changed, where the second file is the th file that is changed, and replace the th file stored in the second storage unit with the second file.
or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
in , in the process of reading th part of file of th file from th storage unit by using operating system according to the embodiment of the present invention, when it is detected that th file is stored in the second storage unit, during reading th part of file from the th storage unit, a second part of file different from th part of file in th file is read in advance from the second storage unit, so that part of data in th storage unit is stored in the second storage unit, when reading th part of data, the th part of data can be read from the th storage unit and the second storage unit at the same time, so as to solve the technical problem that when an electronic device in the prior art reads data from a hard disk, the data reading speed is fast, the security is low, and the security is high, the data reading speed is slow, and further when the electronic device reads data from a hard disk, the data reading speed is fast and the security is high, and the technical effect of user experience is better.
Secondly, since the embodiment of the present application reads the second data content of the second partial file in advance through the second path parameter in the memory during the period of reading the partial file from the storage unit, the memory may directly obtain the second data content through obtaining the second path parameter of the second partial file in the second storage unit, so as to increase the speed of reading the second data content, and further is convenient for the user to use, so that the user experience is better.
Thirdly, according to the embodiment of the present application, when the th file is changed, the th file is obtained and the th file stored in the second storage unit is replaced with the second file, so that when the th file is changed, the th file stored in the second storage unit is also changed, so that the data in the second storage unit and the th storage unit are kept synchronous, steps are facilitated for the user, and the user experience is better.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method of information processing in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The embodiment of the application provides information processing methods and electronic equipment, so as to solve the technical problems that when the electronic equipment in the prior art reads data from a hard disk, the data reading speed is high, the security is low, the security is high, and the data reading speed is low.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
in the embodiment of the present application, when it is detected that the 2 file is stored in the second storage unit during the period of reading the part file from the 3 rd storage unit when the th operating system reads the 1 th part file of the 0 th file from the th storage unit, the second part file different from the th part file of the th file starts to be pre-read from the second storage unit during the period of reading the th part file from the rd storage unit, so that the part data in the th storage unit is stored in the second storage unit, and when the part data is read, the part data can be simultaneously read from the th storage unit and the second storage unit, so as to solve the technical problems of slow data reading speed, fast data reading speed, low security and high security of the electronic device in the prior art, and further achieve a technical effect of fast data reading speed and high security of the electronic device from the hard disk, thereby facilitating a user experience and facilitating a user.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
The embodiment of the application provides information processing methods, which are applied to electronic equipment, wherein the electronic equipment comprises a th storage unit and a second storage unit, and a th operating system is installed in the th storage unit.
The th storage unit is, for example, an electronic device such as a Solid State Disk (SSD) or a mechanical hard disk (HDD), and the th step is further performed, and the second storage unit is, for example, an electronic device such as a Solid State Disk (SSD) or a mechanical hard disk (HDD).
Referring to fig. 1, the method includes:
101, in the process that the operating system reads the part file of the file from the storage unit, judging whether the file is stored in the second storage unit;
102, when the th file is stored in the second storage unit, starting to pre-read a th part file of the th file from the second storage unit during reading the th part file from the th storage unit, wherein the second part file is different from the th part file.
In step 101, in the process that the th operating system reads the 1 st part file of the 0 th file from the th storage unit, it is determined whether the 2 th file is stored in the second storage unit, in the specific implementation process, it is first detected whether the electronic device is in the on state, when the electronic device is in the on state, it is detected whether the 3 th operating system reads the th part file of the th file from the th storage unit, and in the process that the th operating system reads the th part file of the th file from the th storage unit, it is determined whether the th file is stored in the second storage unit.
The th operating system may be an operating system such as Windows, Unix, Linux, ios, Android, and the like.
Specifically, taking the electronic device as a notebook computer as an example, the notebook computer is provided with th HDD hard disks and a second HDD hard disk, a th operating system installed on the th HDD hard disk is Windows XP, after the notebook computer is powered on and is turned on by a switch key, the Windows XP is started, the Windows XP reads a corresponding start file from the th HDD hard disk to start the electronic device, at the current time, the Windows XP is acquired to read a th file of the start file from the th HDD hard disk, and in a process that the Windows XP reads a th part of the th file from the th HDD hard disk, whether the th file is stored in the second HDD hard disk is determined.
In a specific implementation process, the second storage unit is mounted in the th directory of the th electronic device, the 0 th directory is 2 directories in the multiple directories of the 1 th storage unit, specifically, taking the th storage unit as an HDD-a hard disk, the HDD-a hard disk is divided into 3 partitions, which are a C disk, a D disk and an E disk, wherein the th operating system installed in the C disk is ios6.0, th th directories are created below the directory of the D disk as D, wherein the HDD-B is a mini disk, the hard disk of the HDD-B as the second storage unit is mounted in the th directory, similarly, th directories can be created under the directories of the C disk and the E disk, and the th directory is used for mounting the HDD-B hard disk.
For example, when the electronic device is a desktop computer, the th operating system installed on the desktop computer is Linux, the th storage unit is an SSD-a hard disk, and the mounting point of the SSD-a hard disk is mount/dev/sdb1/media, and when the second storage unit is an SSD-B hard disk connected to the desktop computer, the mounting point of the SSD-B hard disk is mount/dev/sdb2/media, so that the SSD-a hard disk and the SSD-B hard disk are mounted in different directories of the electronic device.
When the th file is stored in the second storage unit, step 102 is executed to begin pre-reading a second portion file of the th file from the second storage unit during reading the th portion file from the th storage unit, wherein the second portion file is different from the th portion file.
The th file is stored in the second storage unit, and specifically includes acquiring a th file from a file package stored in the th storage unit based on preset rules, generating a th control instruction, executing the th control instruction, and backing up th data content of the th file in a preset space in the second storage unit.
Specifically, taking the th storage unit as a hard disk a and the second storage unit as a hard disk B as an example, preset spaces are preset in the hard disk B for storing parts of files of the hard disk a in the preset spaces, such as dividing the hard disk a into a C disk and a D disk and dividing the hard disk B into an E disk and an F disk, wherein the preset spaces may be assumed as the E disk, that is, storing parts of files in the hard disk a in the E disk, when storing the th file in the hard disk a in the hard disk B, it may be determined whether to store the th file in the preset space of the hard disk B according to a directory of a rd file in the hard disk a, such as storing packages under directories such as windows, program files and the like under a notebook C disk in the hard disk B, when the th file in the packages is, such as storing the files , program files and the like under mykers 3884 th file control data, the second file data of mykers 3884 is generated by the mykers and the mykers 3884, wherein the second backup data is stored in the hard disk B, and the mykers 3 st file data of the mykers and the mykers.
Of course, the th file may also be specified by a user, for example, when a notebook computer includes a hard disk a and a hard disk B, and a Unix system is installed in the hard disk a, and when the user stores a th file in the hard disk a, for example, a file such as QQ software, OFICE2010 software, etc., in a preset space of the hard disk B, the notebook computer generates a th control instruction, executes the th control instruction, and backs up th data content of the th file in the preset space of the hard disk B.
In a specific implementation process, after the control instruction is executed and the 0 th data content of the th file is backed up in a preset space in the second storage unit, the method further includes acquiring th path parameters of the th data content in the second storage unit, and storing the th path parameters in an memory of the electronic device, so that the memory can read the th data content of the th file through the th path parameters.
The th memory is, for example, an electronic device such as a Read Only Memory (ROM), a Random Access Memory (RAM), and a Cache memory (Cache).
Specifically, taking a desktop computer as an example, the desktop computer is provided with an SSD-a hard disk and an SSD-B hard disk, Windows XP is safely stored in the SSD-a hard disk, an th file stored in the SSD-a hard disk is a QQ application, the SSD-B hard disk is divided into an E disk and an F disk, th data content of the QQ application is backed up in an E: \/QQ directory of the SSD-B hard disk, an obtained th path parameter is an E: \/QQ, and the th path parameter is stored in a th internal memory of the desktop computer, so that the th data content of the QQ application can be read by the th path parameter in the th internal memory.
When the th file is stored in the second storage unit, in a specific implementation process, identification information after the th part file is obtained from the th file, a second part file of the th file is obtained based on the th identification information, and the second part file is read in advance from the second storage unit while the th part file is read from the th storage unit.
Specifically, for example, when a notebook computer reads an outlook nexpress file from a hard disk a, it is detected that the outlook nexpress file is also stored in a hard disk B, and it is detected that a th part file read from the hard disk a is a msoeres.dll file, during reading the msoeres.dll file, it is acquired that a th identification information in the outlook nexpress file follows the msoeres.dll file, the th identification information is, for example, a specific ASCII code representation such as 00000000, 10000000, etc., after acquiring a th identification information, it is acquired that a second part file of the file follows the th identification information of the file, such as the th file is, for example, the th file is, a msoere.dll file 0000, a file 0000, a binary file, and a binary code representation thereof are read from the hard disk B, and then it is also possible to read the outlook code representation from the binary code representation of the outlook file, such as a binary code representation, and the file using the binary code representation of the file.
When the th file is a database file of the electronic device, the database file is, for example, a CSV comma separated value file, a DAT data file, a WrodPerfect merged data file, and the like, when the database file contains a large amount of data, th partial file and a second partial file of the database file can be distinguished by the identification information, for example, when the th file is a Registry database file, the Registry database file includes char [40], int [50], and long [35] data, the th identification information is represented by ASCII code of 10000000, the Registry database file is represented by char [40]10000000int [50]10000000long [35], when the th partial file is detected to be char [40], the second partial file is int [50] and long [35], the th partial file is read from the second partial file , and the second partial file is read from the electronic device during reading the second partial file from the electronic device.
In this embodiment of the present application, for the period of reading the th partial file from the th storage unit, starting to pre-read the second partial file from the second storage unit, a specific implementation procedure includes, during the period of reading the th partial file from the th storage unit, acquiring a second path parameter of the second partial file in the second storage unit, and pre-reading a second data content of the second partial file through the th memory based on the second path parameter.
In a specific implementation process, for example, when the th file is a Tencent (Tencent) file in a programefiles directory in a hard disk A, the directory of the Tencent file in the hard disk B is obtained as E: \ Tencent, during the period of reading a Bin file of the Tencent file from the hard disk A, based on the Bin file, a second part of the Tencent file is a Users file, and a second path parameter of the Users file is found in a memory of the electronic device as E: \ Users, that is, the second path parameter is obtained, and based on the second path parameter, the second data content of the Users file is pre-read from the E: \ Tencent \ Users directory of the hard disk B through the memory.
In an actual application process, for example, notebook computers are provided with a hard disk a and a hard disk B, wherein a Windows XP is installed in the hard disk a, file packages in Windows and programfiles in the hard disk a are all stored in the hard disk B according to user settings, when it is detected that the notebook computer is powered on and opened, a second file read from the hard disk a by the Windows XP is a Microsoft Office file, when it is detected that the Microsoft Office file is stored in the hard disk B, when the Windows XP reads a CLIPART file of the Microsoft Office file from the hard disk a, it is determined that a second part of the Microsoft Office file is a MEDIA file and a Templates file, a second path parameter of the second part of the Microsoft Office file is obtained, and the second path parameter is E \\ \ Microsoft Windows Templates and E \ instances files, and the second path parameter is read from the hard disk a through the notebook computer based on the second path data of the Microsoft Office file and the Microsoft Office file , so that the Microsoft Office data can be read from the hard disk B at the same time.
In the embodiment of the application, parts of important data in the hard disk A are stored in the preset space of the hard disk B, so that when the hard disk A fails, parts of important data can be read from the hard disk B, and the safety of the data is improved in degree, and in addition, the data redundancy in the hard disk B is reduced, so that the storage performance of the notebook computer is improved to degree.
In the embodiment, when the file is judged to have been stored in the second storage unit, and the file is not stored in the second storage unit, the electronic device reads the files of the remaining part of the file from the storage unit.
In another embodiment, after the reading of the second partial file from the second storage unit is started, it is further required to detect whether the file is changed, and when the file is changed, a second file is obtained, where the second file is the file that is changed, and the file stored in the second storage unit is replaced with the second file.
In a specific implementation process, after a notebook computer is powered on and started, when the notebook computer is detected to read a QQ application program from a hard disk a, when the QQ application program is stored in a preset space in a hard disk B, when it is detected that an operation such as a user's remark name modification, a user addition, a user deletion, and the like is performed on the QQ application program, data of the QQ application program is changed, a second file after the QQ application program is changed is acquired, and the QQ application program stored in the hard disk B is replaced with the second file based on path information of the QQ application program in the hard disk B, so that data in the hard disk a and the hard disk B are kept synchronous.
Specifically, when the th file stored in the second storage unit is replaced with the second file, only the changed file may be replaced, for example, the QQ application changes the user note file to be the original user note file before the change, and changes the th user note file after the change, and overwrites the th user note file in the address space of the hard disk B in which the original user note file is stored.
or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
in , in the process of reading th part of file of th file from th storage unit by using operating system according to the embodiment of the present invention, when it is detected that th file is stored in the second storage unit, during reading th part of file from the th storage unit, a second part of file different from th part of file in th file is read in advance from the second storage unit, so that part of data in th storage unit is stored in the second storage unit, when reading th part of data, the th part of data can be read from the th storage unit and the second storage unit at the same time, so as to solve the technical problem that when an electronic device in the prior art reads data from a hard disk, the data reading speed is fast, the security is low, and the security is high, the data reading speed is slow, and further when the electronic device reads data from a hard disk, the data reading speed is fast and the security is high, and the technical effect of user experience is better.
Secondly, since the embodiment of the present application reads the second data content of the second partial file in advance through the second path parameter in the memory during the period of reading the partial file from the storage unit, the memory may directly obtain the second data content through obtaining the second path parameter of the second partial file in the second storage unit, so as to increase the speed of reading the second data content, and further is convenient for the user to use, so that the user experience is better.
Thirdly, according to the embodiment of the present application, when the th file is changed, the th file is obtained and the th file stored in the second storage unit is replaced with the second file, so that when the th file is changed, the th file stored in the second storage unit is also changed, so that the data in the second storage unit and the th storage unit are kept synchronous, steps are facilitated for the user, and the user experience is better.
The embodiment of the invention also provides kinds of electronic devices, which include a th storage unit and a second storage unit, wherein a th operating system is installed in the th storage unit, and the electronic devices are electronic devices such as a tablet computer, a notebook computer, a mobile phone and the like.
The th storage unit is, for example, an electronic device such as a Solid State Disk (SSD) or a mechanical hard disk (HDD), and the th step is further performed, and the second storage unit is, for example, an electronic device such as a Solid State Disk (SSD) or a mechanical hard disk (HDD).
, the os may be Windows, Unix, Linux, ios, Android, or the like.
Referring to fig. 2, the electronic device includes a circuit board 201, and a processing chip 202 disposed on the circuit board 201, and configured to determine whether a th file is stored in a second storage unit 204 in a process that an th operating system reads a th partial file of a th file from a th storage unit 203, and when the th file is stored in the second storage unit 204, start pre-reading a th partial file from the second storage unit 204 during reading the th partial file from a th storage unit 203, where the second partial file is different from the th partial file.
The circuit board 201 may be a motherboard of an electronic device, and further , the processing chip 202 may be a separate processing chip or may be integrated in a processor.
, the th memory unit 203 is electrically connected to the circuit board 201 and the processing chip 202, and the second memory unit 204 is also electrically connected to the circuit board 201 and the processing chip 202.
Further , the processing chip 202 includes a mounting unit configured to mount the second storage unit 204 on the th directory of the electronic device, where the th directory is directories in the th storage unit 203.
, the processing chip 202 includes a data backup unit, wherein the file is stored in the second storage unit 204, and is used to obtain the th file from the package of files stored in the th storage unit 203 based on preset rules, generate the th control instruction, and execute the th control instruction, so as to backup the th data content of the th file in a preset space in the second storage unit 204.
, the processing chip 202 includes a path parameter storage unit, and after the control instruction is executed, the 1 th data content of the 0 th file is backed up in a preset space in the second storage unit 204, the processing chip is configured to obtain a th path parameter of the th data content in the second storage unit 204, and store the th path parameter in a memory of the electronic device, so that the th memory can read the th data content of the th file by using the th path parameter.
The th memory is, for example, an electronic device such as a Read Only Memory (ROM), a Random Access Memory (RAM), a Cache memory (Cache), and the th memory is electrically connected to the circuit board 201 and the processing chip 202, respectively.
, the processing chip 202 includes a reading unit, configured to, when the th file is stored in the second storage unit 204, obtain th identification information after the th part file from the th file, obtain a second part file of the th file based on the th identification information, and start pre-reading the second part file from the second storage unit 204 during reading the th part file from the th storage unit 203.
, the reading unit includes a second reading unit, configured to, during the reading of the th partial file from the th storage unit 203, obtain second path parameters of the second partial file in the second storage unit 204, and based on the second path parameters, pre-read second data content of the second partial file through the th memory.
In , for example, notebook computers, a hard disk a and a hard disk B are installed in the notebook computer, where Windows XP is installed in the hard disk a, and all the packets in the Windows and programefiles directories in the hard disk a are stored in the hard disk B according to the setting of a user, when detecting that the notebook computer is powered on and turned on, and when detecting that the second file read from the hard disk a by the Windows XP is a Windows Media Player file, and when detecting that the Windows Media Player file is stored in the hard disk B, and when the Windows XP reads the Icons file of the Windows Media Player file from the hard disk a, determining that the second part file of the Windows Media Player file is a file of.
In another embodiment, the processing chip 202 includes a prompt unit, configured to detect whether the file is changed after the second partial file is read from the second storage unit 204, and obtain a second file when the file is changed, where the second file is the file that is changed, and replace the file stored in the second storage unit 204 with the second file.
or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
in , in the process of reading th part of file of th file from th storage unit by using operating system according to the embodiment of the present invention, when it is detected that th file is stored in the second storage unit, during reading th part of file from the th storage unit, a second part of file different from th part of file in th file is read in advance from the second storage unit, so that part of data in th storage unit is stored in the second storage unit, when reading th part of data, the th part of data can be read from the th storage unit and the second storage unit at the same time, so as to solve the technical problem that when an electronic device in the prior art reads data from a hard disk, the data reading speed is fast, the security is low, and the security is high, the data reading speed is slow, and further when the electronic device reads data from a hard disk, the data reading speed is fast and the security is high, and the technical effect of user experience is better.
Secondly, since the embodiment of the present application reads the second data content of the second partial file in advance through the second path parameter in the memory during the period of reading the partial file from the storage unit, the memory may directly obtain the second data content through obtaining the second path parameter of the second partial file in the second storage unit, so as to increase the speed of reading the second data content, and further is convenient for the user to use, so that the user experience is better.
Thirdly, according to the embodiment of the present application, when the th file is changed, the th file is obtained and the th file stored in the second storage unit is replaced with the second file, so that when the th file is changed, the th file stored in the second storage unit is also changed, so that the data in the second storage unit and the th storage unit are kept synchronous, steps are facilitated for the user, and the user experience is better.
Having described preferred embodiments of the invention, further alterations and modifications may be effected to these embodiments by those skilled in the art having the benefit of the basic inventive concepts .
It will be apparent to those skilled in the art that various changes and modifications may be made in the invention without departing from the invention
With clear spirit and scope. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1, method for processing information, applied to electronic equipment, the electronic equipment includes storage unit and second storage unit, the storage unit has operating system installed, the method includes:
in the process that the operating system reads the part file of the file from the storage unit, judging whether the file is stored in the second storage unit;
when the th file is stored in the second storage unit, during reading of the th partial file from the th storage unit, starting pre-reading of a second partial file of the th file from the second storage unit, wherein the second partial file is different from the th partial file;
when the th file is stored in the second storage unit, during the reading of the th partial file from the th storage unit, the pre-reading of the th partial file from the second storage unit is started, which specifically includes:
acquiring identification information following the th partial file from the file when the th file is stored in the second storage unit;
acquiring a second part file of the file based on the identification information;
during the reading of the th partial file from the th storage unit, the pre-reading of the second partial file from the second storage unit is started.
2. The method of claim 1, wherein the second storage unit is mounted under an th directory of the electronic device, and the th directory is directories of the plurality of directories of the th storage unit.
3. The method of claim 1, wherein the storing of the th file in the second storage unit specifically comprises:
based on preset rules, obtaining th file from the file package stored in the th storage unit, and generating th control command;
executing the control command to backup th data content of the th file in a preset space in the second storage unit.
4. The method of claim 3, wherein after said executing the control directive to backup the th data content of the th file in a preset space in the second storage unit, the method further comprises:
obtaining the th path parameter of the th data content in the second storage unit;
storing the th path parameter in a th memory of the electronic device, so that the th memory can read th data content of the th file through the th path parameter.
5. The method as claimed in claim 1, wherein said pre-reading said second part file from said second storage unit is started during the reading of said th part file from said th storage unit, specifically comprising:
during reading the part file from the th storage unit, acquiring second path parameters of the second part file in the second storage unit;
and pre-reading second data content of the second part of files through an th memory based on the second path parameters.
An electronic device of kinds, the electronic device includes a th storage unit and a second storage unit, the th storage unit has a th operating system installed therein, the electronic device includes:
a circuit board;
a processing chip, disposed on the circuit board, for determining whether the th file is stored in the second storage unit during a process that the th operating system reads the th part of the th file from the th storage unit, and for starting to pre-read a second part of the th file from the second storage unit during a period that the th part of the th file is read from the th storage unit when the th file is stored in the second storage unit, wherein the second part of the th file is different from the nd part of the 362 th file;
the processing chip comprises an th reading unit, when the th file is stored in the second storage unit, the th reading unit is used for acquiring th identification information after the th part file from the th file, acquiring a second part file of the th file based on the th identification information, and during the reading of the th part file from the th storage unit, the th reading unit is used for starting pre-reading of the second part file from the second storage unit.
7. The electronic device of claim 6, wherein the processing chip comprises a mounting unit to mount the second storage unit under an th directory of the electronic device, the th directory being of the th storage unit's multiple directories.
8. The electronic device as claimed in claim 6, wherein the processing chip comprises a data backup unit, the th file is stored in the second storage unit, and is used for obtaining a th file from a file package stored in the th storage unit based on preset rules, generating th control instructions, and executing the th control instructions for backing up th data content of the th file in a preset space in the second storage unit.
9. The electronic device of claim 8, wherein the processing chip comprises a path parameter storage unit, and after the control instruction is executed to backup 0 th data content of the th file in a preset space in the second storage unit, the processing chip is configured to obtain th path parameters of the th data content in the second storage unit, and store th path parameters in a memory of the electronic device, so that the memory can read th data content of the th file through the th path parameters.
10. The electronic device as claimed in claim 6, wherein the reading unit includes a second reading unit, during the reading of the th partial file from the th storage unit, for obtaining second path parameters of the second partial file in the second storage unit, and based on the second path parameters, for pre-reading second data content of the second partial file through the th memory.
CN201710708280.5A 2012-12-17 2012-12-17 Information processing method and electronic equipment Active CN107704198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710708280.5A CN107704198B (en) 2012-12-17 2012-12-17 Information processing method and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710708280.5A CN107704198B (en) 2012-12-17 2012-12-17 Information processing method and electronic equipment
CN201210549720.4A CN103870208B (en) 2012-12-17 2012-12-17 The method and electronic equipment of information processing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210549720.4A Division CN103870208B (en) 2012-12-17 2012-12-17 The method and electronic equipment of information processing

Publications (2)

Publication Number Publication Date
CN107704198A CN107704198A (en) 2018-02-16
CN107704198B true CN107704198B (en) 2020-01-31

Family

ID=50908796

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210549720.4A Active CN103870208B (en) 2012-12-17 2012-12-17 The method and electronic equipment of information processing
CN201710708280.5A Active CN107704198B (en) 2012-12-17 2012-12-17 Information processing method and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201210549720.4A Active CN103870208B (en) 2012-12-17 2012-12-17 The method and electronic equipment of information processing

Country Status (1)

Country Link
CN (2) CN103870208B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274155B (en) * 2020-02-25 2021-08-06 腾讯科技(深圳)有限公司 Memory operation recording method, device, equipment and storage medium of dynamic library

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1330328A (en) * 2000-06-16 2002-01-09 东芝株式会社 Information repeater and storage medium
US7287133B2 (en) * 2004-08-24 2007-10-23 Symantec Operating Corporation Systems and methods for providing a modification history for a location within a data store
US7127549B2 (en) * 2004-02-04 2006-10-24 Sandisk Corporation Disk acceleration using first and second storage devices
US7921258B1 (en) * 2006-12-14 2011-04-05 Microsoft Corporation Nonvolatile disk cache for data security
US7769971B2 (en) * 2007-03-29 2010-08-03 Data Center Technologies Replication and restoration of single-instance storage pools
JP5346536B2 (en) * 2008-10-02 2013-11-20 株式会社日立ソリューションズ Information backup / restore processing device and information backup / restore processing system
US8805953B2 (en) * 2009-04-03 2014-08-12 Microsoft Corporation Differential file and system restores from peers and the cloud
CN102375696A (en) * 2010-08-20 2012-03-14 英业达股份有限公司 Data storage system and data access method by utilizing virtual disk

Also Published As

Publication number Publication date
CN103870208A (en) 2014-06-18
CN107704198A (en) 2018-02-16
CN103870208B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
JP5715566B2 (en) Cache data and metadata management
US8489815B2 (en) Managing cache data and metadata
US10073703B2 (en) Booting an operating system of a system using a read ahead technique
US9880762B1 (en) Compressing metadata blocks prior to writing the metadata blocks out to secondary storage
CN109445861B (en) System starting method, device, computer device and storage medium
KR20100107470A (en) Selecting storage location for file storage based on storage longevity and speed
US8959301B2 (en) Accessing data in a storage system
JP4903244B2 (en) Computer system and failure recovery method
US11698808B2 (en) System and method of selectively restoring a computer system to an operational state
US8560775B1 (en) Methods for managing cache configuration
US10089015B1 (en) Per-drive memory resident zeroing maps for drive zeroing in a data storage system
CN107704198B (en) Information processing method and electronic equipment
US10732870B2 (en) Method and apparatus for triggering raid reconstruction
US10592329B2 (en) Method and electronic device for continuing executing procedure being aborted from physical address where error occurs
CN100389396C (en) FAT file system error treating method and device
KR20060135248A (en) File system recovery method and system for portable terminal with hard disk drive
WO2018024327A1 (en) Device and method arranged to support execution of a booting process executed during an instant restore process

Legal Events

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