CN108920480B - Processing method and device for file system exception and computer storage medium - Google Patents

Processing method and device for file system exception and computer storage medium Download PDF

Info

Publication number
CN108920480B
CN108920480B CN201810341695.8A CN201810341695A CN108920480B CN 108920480 B CN108920480 B CN 108920480B CN 201810341695 A CN201810341695 A CN 201810341695A CN 108920480 B CN108920480 B CN 108920480B
Authority
CN
China
Prior art keywords
file system
unloading
electronic device
electronic equipment
instruction
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.)
Expired - Fee Related
Application number
CN201810341695.8A
Other languages
Chinese (zh)
Other versions
CN108920480A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810341695.8A priority Critical patent/CN108920480B/en
Publication of CN108920480A publication Critical patent/CN108920480A/en
Application granted granted Critical
Publication of CN108920480B publication Critical patent/CN108920480B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention discloses a method for processing file system exception, which comprises the following steps: receiving an unloading instruction aiming at the file system sent by the control device; wherein the uninstall instruction is issued by the control device upon completion of a pre-assembly test for the electronic device; and unloading the file system in the electronic equipment based on the unloading instruction so as to avoid the abnormality of the file system. The embodiment of the invention also discloses equipment for processing the file system exception and a computer readable storage medium.

Description

Processing method and device for file system exception and computer storage medium
Technical Field
The present invention relates to the field of operating system technologies, and in particular, to a method and an apparatus for processing file system exceptions, and a computer storage medium.
Background
Before the electronic equipment is assembled into a complete machine, the electronic equipment is subjected to some basic function tests so as to ensure that the electronic equipment can be normally used before the electronic equipment is assembled; if the electronic equipment before being installed is not tested, the problem that the electronic equipment cannot be used after being installed is solved, the fault point is difficult to locate, and meanwhile, the electronic equipment needs to be disassembled and maintained when necessary, so that the testing efficiency is low. Therefore, it is necessary to test the electronic devices before they are assembled into a complete machine.
In the existing testing technology, after corresponding testing content is completed, the power supply of the electronic equipment is usually directly cut off, that is, the electronic equipment is abnormally powered down after the testing is completed; however, due to the fact that the abnormal power failure of the electronic equipment can cause the running program to be suddenly stopped, the data of the file system is lost and damaged or the structure of the file system is incomplete, so that the electronic equipment cannot read correct data in the file system when being started, and the electronic equipment cannot be started normally; therefore, a method for handling file system exception is urgently needed to solve the problem of file system exception caused by abnormal power failure in the process of testing electronic equipment.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method and an apparatus for processing a file system exception, and a computer storage medium.
The embodiment of the invention provides a method for processing file system exception, which is applied to electronic equipment and comprises the following steps:
receiving an unloading instruction aiming at the file system sent by the control device; wherein the uninstall instruction is issued by the control device upon completion of a pre-assembly test for the electronic device;
and unloading the file system in the electronic equipment based on the unloading instruction so as to avoid the abnormality of the file system.
The embodiment of the invention provides a processing method of file system exception, which is applied to and used for controlling equipment and comprises the following steps:
when testing before assembling aiming at the electronic equipment is completed, an unloading instruction aiming at a file system is sent to the electronic equipment; the unloading instruction is used for unloading the file system in the electronic equipment so as to avoid the abnormality of the file system.
The embodiment of the present invention further provides an electronic device, including a first receiving unit and a processing unit, wherein:
the first receiving unit is used for receiving an unloading instruction aiming at the file system sent by the control equipment; the unloading instruction is sent by the control equipment when the test of the mainboard before the assembly of the electronic equipment is finished;
and the processing unit is used for unloading the file system in the electronic equipment based on the unloading instruction so as to avoid the exception of the file system.
An embodiment of the present invention further provides a control device, including: a second transmitting unit, wherein:
the second sending unit is used for sending an unloading instruction aiming at the file system to the electronic equipment when the test before the electronic equipment is assembled is finished; the unloading instruction is used for unloading the file system in the electronic equipment so as to avoid the abnormality of the file system.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the above methods.
The file system exception handling method, the file system exception handling device and the computer storage medium provided by the embodiment of the invention firstly receive an unloading instruction aiming at a file system sent by a control device, wherein the unloading instruction is sent by the control device when a test aiming at electronic equipment before assembly is finished, and then the file system in the electronic equipment is unloaded based on the unloading instruction; therefore, after the electronic equipment is tested and before the power supply of the electronic equipment is cut off, the file system on the disk partition in the electronic equipment is unloaded, so that the file system of the electronic equipment is deleted before abnormal power failure, the file system on the disk partition can be prevented from being damaged under the condition of abnormal power failure, the probability of damage of the file system can be effectively reduced, and the normal starting of the electronic equipment is ensured.
Drawings
Fig. 1 is a schematic flowchart of a method for handling a file system exception according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another file system exception handling method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for handling a file system exception according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a control device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Generally, before the electronic device is shipped, basic function tests are performed on the unassembled electronic device in batch to determine whether the electronic device meets the shipping standards. The basic function test can comprise parameter calibration, current test, comprehensive test and the like; in practical situations, in order to seek higher efficiency, after the electronic equipment is tested on a test production line, the power supply of the electronic equipment is usually directly cut off, and the next processing is not performed after each piece of electronic equipment is normally shut down; therefore, the electronic device which is abnormally powered down can damage the running file system to a certain extent, and the electronic device cannot be started.
In order to solve the problem of file system abnormality caused by abnormal power failure on a test production line, the embodiment of the invention provides a method for processing file system abnormality.
Fig. 1 is a schematic flowchart of a processing method for a file system exception according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101, receiving an unloading instruction aiming at a file system sent by a control device.
Wherein the unloading instruction is issued by the control device when the pre-assembly test for the electronic device is completed.
In other embodiments of the present invention, the receiving of the uninstalling instruction for the file system from the control device in step 101 may be implemented by the electronic device; here, the electronic apparatus may be an apparatus including at least a CPU and a storage device; in practical applications, the electronic device may include: smart phones, tablet computers, computer devices, and the like, as the present invention is not limited thereto. The control device may be a device that controls the electronic device to perform a test; in practical applications, the control device may include: personal Computers (PCs), and the like.
In step 101, a communication connection may be established between the control device and the electronic device through a data line, or may be established in a WiFi or bluetooth manner, in this embodiment, the main function of the communication connection includes, but is not limited to, implementing transmission of control signals and data of the control device to the electronic device, and may also be used to implement transmission of information and data of the electronic device to the control device. The control device may include a display screen for displaying relevant information of the electronic device during the test process, for example, information of a test process, a test result, an uninstall process, an uninstall result, and the like of the electronic device may be displayed.
The file system is used for organizing and distributing the space of storage equipment in the electronic equipment, is responsible for storing files and protecting and retrieving the stored files; for example, a file system refers to a system that titles files and indicates where the files are located for storage and retrieval. Before using the file system, the file system needs to be connected with a preset directory in the electronic device to establish a mapping relationship. Therefore, the electronic device reads the file system by reading the data in the preset directory.
The unloading instruction is used for unloading a file system in the electronic equipment; wherein the uninstalling instruction is issued by the control device after the control device completes the test of the electronic device. Specifically, the electronic device sends test completion information to the control device after the test is completed, and the control device sends an unloading instruction to the electronic device after receiving the test completion information.
102, unloading the file system in the electronic equipment based on the unloading instruction to avoid the abnormal situation of the file system.
Step 102 may be implemented by the electronic device, based on the uninstall instruction, uninstalling the file system in the electronic device to avoid the file system from being abnormal.
Specifically, before the electronic device is assembled and shipped out of a factory, the control device controls the electronic device to perform various types of tests; normally, after the test is completed, the control device directly cuts off the power supply of the electronic device to complete the test procedure; however, in this embodiment, after the electronic device completes the test, the file system in the electronic device needs to be unloaded, and after the unloading is completed, the control device directly cuts off the power supply of the electronic device.
In other embodiments of the present invention, the electronic device unloads the file system in the electronic device based on the unload instruction. Here, step 102 may include:
step 102a, the electronic device traverses the target file to obtain a mount point directory of the file system in the target file.
Wherein the file system is loaded under a preset directory in the target file.
Here, the electronic device may read all file systems in the electronic device through the object file. That is, the target file may contain information of all file systems in the electronic device. In this embodiment, the target file may include a readable and writable partition; for example, the object file may include/proc/mounts. It should be noted that, an operating system of the electronic device may regard all resources in the electronic device as files, so that the resources of the whole electronic device may be integrated into a large file directory; when we need to access a system file, the system file must be connected to a directory already existing in the electronic device, and then the file system is accessed by accessing this directory.
The mount point is an entry directory of the file system, where mount is a process of associating the file system with a preset directory in the target file, that is, a process of establishing a mapping relationship between the file system and the preset directory. All file systems in the electronic equipment are mounted under the preset directory in the readable and writable partition, namely all the file systems in the electronic equipment are connected with the preset directory in the readable and writable partition.
And 102b, the electronic equipment deletes the mount point directory corresponding to the file system in the target file.
The electronic device can transfer the mount point directory in the acquired target file to the function by calling the umount function, so as to achieve unloading of the file system.
The file system exception handling method provided by the embodiment of the invention comprises the steps of firstly receiving an unloading instruction aiming at a file system sent by a control device, wherein the unloading instruction is sent by the control device when the test aiming at a mainboard of electronic equipment before assembly is finished, and then unloading the file system in the electronic equipment based on the unloading instruction; therefore, after the electronic equipment is tested and before the electronic equipment is powered off, the file system on the disk partition inside the electronic equipment is unloaded, so that the file system is deleted before the electronic equipment is powered off abnormally.
Based on the foregoing embodiments, an embodiment of the present invention provides a method for handling a file system exception, as shown in fig. 2, where the method includes the following steps:
step 201, when the test before the electronic device is assembled is completed, an unloading instruction for the file system is sent to the electronic device.
The unloading instruction is used for unloading the file system in the electronic equipment so as to avoid the abnormality of the file system.
When the test before assembling for the electronic device is completed in step 201, sending an unloading instruction for the file system to the electronic device may be implemented by the control device; the control device may be a device that controls an electronic device to perform a test; in practical applications, the control device may include: personal Computers (PCs), and the like.
In some embodiments, step 201 may be preceded by receiving test completion information sent by the electronic device.
In other embodiments of the present invention, the control device and the electronic device may establish a communication connection through a data line, or may establish a communication connection through WiFi or bluetooth, in this embodiment, the main function of the communication connection includes, but is not limited to, implementing transmission of control signals and data of the control device to the electronic device, and may also be used to implement transmission of information and data of the electronic device to the control device. The control device may include a display screen for displaying relevant information of the electronic device during the test process, for example, information of a test process, a test result, an uninstall process, an uninstall result, and the like of the electronic device may be displayed.
According to the file system exception handling method provided by the embodiment of the invention, when the test before the electronic equipment is assembled is finished, an unloading instruction aiming at the file system is sent to the electronic equipment; the unloading instruction is used for unloading a file system in the electronic equipment so as to avoid the file system from being abnormal; therefore, after the electronic equipment is tested and before the electronic equipment is powered off, the control equipment indicates the electronic equipment to unload the file system on the disk partition inside the electronic equipment, so that the file system of the electronic equipment is deleted before abnormal power failure, the file system on the disk partition can be prevented from being damaged under the condition of abnormal power failure, the probability of damage of the file system can be effectively reduced, and the normal starting of the electronic equipment is ensured.
Based on the foregoing embodiments, an embodiment of the present invention provides a method for handling a file system exception, as shown in fig. 3, where the method includes the following steps:
step 301, when the control device completes the test before assembling the electronic device, sending an uninstalling instruction for the file system to the electronic device.
The unloading instruction is used for unloading the file system in the electronic equipment so as to avoid the abnormality of the file system.
Step 302, the electronic device receives an uninstall instruction for the file system from the control device.
Wherein the unloading instruction is issued by the control device when the pre-assembly test for the electronic device is completed.
Step 303, the electronic device traverses the target file to obtain a mount point directory of the file system in the target file.
Wherein the file system is loaded under a preset directory in the target file. Here, the target file includes a readable and writable partition; correspondingly, all file systems in the electronic equipment are mounted in the preset directory in the readable and writable partition.
And step 304, the electronic equipment deletes the mount point directory corresponding to the file system in the target file.
Step 305, if the electronic device fails to unload the file system, sending a result of the failure to unload the file system in the electronic device to the control device, so that the control device processes the electronic device without unloading the file system.
The failure of unloading the file system in the electronic device at least comprises that the unloading of the file system is not finished within a preset time.
Here, the preset time may be a maximum duration for executing the uninstalling of the file system, which is set by the control device, and in a process of executing the uninstalling instruction, an unresponsive condition, that is, a crash condition, of the electronic device may inevitably occur; it can be understood that the electronic device does not complete unloading the file system within the preset time, which is largely due to the crash of the electronic device. Therefore, in order to prevent the electronic device from crashing and affecting the efficiency, it is necessary to set the maximum time length for executing the uninstall instruction for the electronic device. In this embodiment, the preset time may be 3-4 times the time it takes for the electronic device to normally unload the file system.
Step 306, if the control device receives a failure result of unloading the file system sent by the electronic device, the control device sends an unloading instruction for the file system for the nth time to the electronic device.
Wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time.
In other embodiments of the present invention, after receiving the test completion information sent by the electronic device, the control device sends an uninstalling instruction to control the electronic device to uninstall the file system of the electronic device; it is to be understood that the unload instruction sent at the time of test completion in step 301 is the 1 st unload instruction sent by the control device. If the electronic device fails to unload the file system based on the 1 st unloading instruction, the electronic device can be controlled to unload the file system again after the control device receives the result of the failure of unloading the file system; therefore, a 2 nd unloading instruction can be sent to the electronic device, and the electronic device is controlled to execute 2 nd unloading on the file system; if the electronic equipment still fails to unload after executing the 2 nd unloading instruction, the control equipment sends the 3 rd unloading instruction to the electronic equipment again after receiving the result of failure in unloading the file system; and the like until the control device sends the unloading instruction aiming at the file system for the Nth time.
In the above process, if the electronic device successfully unloads the file system, the control device may directly cut off the power of the electronic device, and exit the unloading process.
It should be noted that, in order to prevent the occurrence of a dead loop in the unloading process, the control device needs to set a maximum unloading number, i.e., a maximum execution number N. That is, after the control device sends the nth uninstall instruction, no uninstall instruction is sent any more regardless of whether the uninstall of the electronic device is successful or not. Wherein, the value of N can be 3-4.
And 307, the electronic device receives the nth unloading instruction aiming at the file system, which is sent by the control device.
Wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time.
In other embodiments of the present invention, after the electronic device completes the test, the file system of the electronic device is unloaded based on receiving an unloading instruction sent by the control device; it can be understood that the uninstall instruction received after the electronic device completes the test in step 302 is the 1 st uninstall instruction.
It should be noted that N sets the maximum unloading number for the control device, and is mainly used to prevent the situation of dead cycle in the unloading process. That is, the electronic device receives the uninstall instruction at most N times. Wherein, the value of N can be 3-4.
And 308, the electronic device uninstalls the file system in the electronic device based on the nth uninstall instruction.
In this embodiment, if the file system in the electronic device fails to be unloaded based on the nth unloading command, the result of the file system failure is sent to the control device, and steps 306 and 307 are executed; and if the file system in the electronic equipment is successfully unloaded based on the nth unloading instruction, which indicates that the unloading of the file system is completed, the control equipment cuts off the power supply of the electronic equipment and exits the unloading process.
Step 309, if the electronic device executes the nth unloading instruction, the file system in the electronic device fails to be unloaded, and a result of the file system unloading failure is sent to the control device.
After the nth unloading instruction is executed, the file system unloading failure in the electronic device may be understood as that the unloading of the file system is still not completed after the electronic device executes the N unloading instructions in total.
And step 310, after sending the nth unloading instruction, the control device receives a failure result of unloading the file system sent by the electronic device, and sends a label representing the file system abnormality to the electronic device.
After the control device sends N times of unloading instructions to the electronic device, the control device still receives a result of failure in unloading the file system, and then may consider that the file system in the electronic device is abnormal, and send a file system abnormal tag to the electronic device, where the file system abnormal tag is used to identify the file system abnormality of the electronic device.
And 311, the electronic device receives a label sent by the control device to represent the file system abnormity.
It should be noted that, for the explanation of the same steps or related concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments, and details are not described herein again.
The file system exception handling method provided by the embodiment of the invention comprises the steps of firstly receiving an unloading instruction aiming at a file system sent by a control device, wherein the unloading instruction is sent by the control device when the test aiming at a mainboard of electronic equipment before assembly is finished, and then unloading the file system in the electronic equipment based on the unloading instruction; therefore, after the electronic equipment is tested and before the electronic equipment is powered off, the file system on the disk partition inside the electronic equipment is unloaded, so that the file system is deleted before the electronic equipment is powered off abnormally.
In order to implement the method according to the embodiment of the present invention, an electronic device is further provided in the embodiment of the present invention, as shown in fig. 4, where the electronic device 4 includes a first receiving unit 41 and a processing unit 42, where:
a first receiving unit 41, configured to receive an uninstall instruction for the file system from the control device; wherein the unloading instruction is issued by the control device when testing before assembly for the electronic device is completed;
and the processing unit 42 is configured to, based on the uninstall instruction, uninstall the file system in the electronic device to avoid an exception of the file system.
In some embodiments, the processing unit 42 is specifically configured to traverse the target file to obtain a mount point directory of the file system in the target file; the file system is hung under a preset directory in the target file; and deleting the mount point directory corresponding to the file system in the target file.
In some embodiments, the electronic device may further include a first transmitting unit 41.
The first sending unit 43 is configured to, after failing to uninstall the file system in the electronic device, send a result of failing to uninstall the file system in the electronic device to the control device, so that the control device processes the electronic device that does not uninstall the file system;
the failure of unloading the file system in the electronic device at least comprises that the unloading of the file system is not finished within a preset time.
In some embodiments, the first receiving unit 41 is further configured to receive an nth unloading instruction for the file system sent by the control device; wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time;
the processing unit 42 is also configured to unload the file system in the target file based on the nth unload instruction.
In some embodiments, the first sending unit 43 is further configured to, if the file system in the electronic device fails to be unloaded after the nth unloading instruction is executed, send a result of the failure to unload the file system to the control device;
the first receiving unit 41 is further configured to receive a label indicating that a file system is abnormal, where the label is sent by the control device, if the file system in the electronic device fails to be unloaded after the nth unloading instruction is executed.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as the first memory 51, comprising a computer program, which is executable by the first processor 52 of the electronic device 50 to perform the steps of the foregoing method. The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM), among other memories.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a control device, as shown in fig. 6, where the control device includes a second receiving unit 61 and a second sending unit 62, where:
a second sending unit 62, configured to send an uninstall instruction for the file system to the electronic device when the test before assembly for the electronic device is completed; the unloading instruction is used for unloading the file system in the electronic equipment so as to avoid the abnormality of the file system.
The second receiving unit 61 may be configured to receive test completion information of the electronic device;
the second receiving unit 61 is further configured to receive a result of failure to unload the file system sent by the electronic device;
the second sending unit 62 is further configured to send an n-th offload instruction for the file system to the electronic device after receiving a result that the file system offload sent by the electronic device fails; wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time.
In some embodiments, the second receiving unit 61 is further configured to receive, after sending the nth unloading instruction, a result of failure to unload the file system sent by the electronic device;
the second sending unit 62 is further configured to send a label indicating that the file system is abnormal to the electronic device after the nth uninstall instruction is sent and a result that the file system is unsuccessfully uninstalled, which is sent by the electronic device, is received.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as the second memory 71 comprising a computer program, which is executable by the second processor 72 of the control device 70 to perform the steps of the aforementioned method. The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM), among other memories.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (12)

1. A processing method of file system exception is applied to an electronic device and comprises the following steps:
receiving an unloading instruction aiming at the file system sent by the control device; wherein the uninstall instruction is issued by the control device upon completion of a pre-assembly test for the electronic device;
unloading a file system in the electronic equipment based on the unloading instruction so as to avoid the file system from being abnormal;
if the file system in the electronic equipment fails to be unloaded, sending a result of the failure in unloading the file system in the electronic equipment to the control equipment so that the control equipment can process the electronic equipment without unloading the file system; wherein the failure to uninstall the file system in the electronic device at least comprises an incomplete uninstallation of the file system within a preset time;
receiving an nth unloading instruction aiming at the file system and sent by the control device; wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time; and unloading the file system in the electronic equipment based on the nth unloading instruction.
2. The method of claim 1, wherein the unloading the file system in the electronic device based on the unloading instruction comprises:
traversing a target file to obtain a mount point directory of the file system in the target file; the file system is loaded under a preset directory in the target file;
and deleting the mount point directory corresponding to the file system in the target file.
3. The method of claim 2, wherein the target file comprises a writable-readable partition; and all file systems in the electronic equipment are mounted in a preset directory in the readable and writable partition.
4. The method of claim 1, further comprising:
and if the unloading of the file system in the electronic equipment fails after the Nth unloading instruction is executed, sending a result of the failure of unloading the file system to the control equipment, and receiving a label which is sent by the control equipment and represents the file system abnormity.
5. A processing method of file system exception is applied to a control device and comprises the following steps:
when testing before assembling aiming at the electronic equipment is completed, an unloading instruction aiming at a file system is sent to the electronic equipment; the unloading instruction is used for unloading a file system in the electronic equipment so as to avoid the file system from being abnormal;
if a result of failure in unloading the file system sent by the electronic equipment is received, sending an unloading instruction aiming at the file system for the nth time to the electronic equipment; wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time.
6. The method of claim 5, further comprising:
and if receiving a result of failure in unloading the file system, which is sent by the electronic equipment, after sending the nth unloading instruction, sending a label representing the file system abnormality to the electronic equipment.
7. An electronic device, the electronic device comprising: a first receiving unit, a processing unit and a first transmitting unit, wherein:
the first receiving unit is used for receiving an unloading instruction aiming at the file system sent by the control equipment; the unloading instruction is sent by the control equipment when the test of the mainboard before the assembly of the electronic equipment is finished;
the processing unit is used for unloading the file system in the electronic equipment based on the unloading instruction so as to avoid the abnormality of the file system;
the first sending unit is used for sending a result of failure in unloading the file system in the electronic equipment to the control equipment after failure in unloading the file system in the electronic equipment, so that the control equipment can process the electronic equipment without unloading the file system; wherein the failure to uninstall the file system in the electronic device at least comprises an incomplete uninstallation of the file system within a preset time;
the first receiving unit is further configured to receive an nth unloading instruction for the file system sent by the control device; wherein N is a natural number which is greater than and 1 and less than N, and N is the maximum execution time;
the processing unit is further configured to uninstall the file system in the electronic device based on the nth uninstall instruction.
8. The electronic device of claim 7, wherein,
the processing unit is specifically configured to traverse a target file to obtain a mount point directory of the file system in the target file; the file system is loaded under a preset directory in the target file; and deleting the mount point directory corresponding to the file system in the target file.
9. The electronic device of claim 8,
the first sending unit is further configured to, if the file system in the electronic device fails to be unloaded after the nth unloading instruction is executed, send a result of the failure in unloading the file system to the control device;
the first receiving unit is further configured to receive a tag indicating a file system exception sent by the control device.
10. A control device, the control device comprising: a second transmitting unit and a second receiving unit, wherein:
the second sending unit is used for sending an unloading instruction aiming at the file system to the electronic equipment when the test before the electronic equipment is assembled is finished; the unloading instruction is used for unloading a file system in the electronic equipment so as to avoid the file system from being abnormal;
the second receiving unit is configured to receive a result of failure to uninstall the file system, where the result is sent by the electronic device;
the second sending unit is further configured to send an n-th unloading instruction for the file system to the electronic device after receiving a result that the unloading of the file system by the electronic device fails; wherein N is a natural number greater than 1 and less than N, and N is the maximum execution time.
11. The control apparatus according to claim 10,
the second receiving unit is further configured to receive a result of failure to unload the file system, sent by the electronic device, after sending the nth unload instruction;
the second sending unit is further configured to send a label indicating that the file system is abnormal to the electronic device after the nth uninstalling instruction is sent and a result that the file system is unsuccessfully uninstalled, which is sent by the electronic device, is received.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201810341695.8A 2018-04-17 2018-04-17 Processing method and device for file system exception and computer storage medium Expired - Fee Related CN108920480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810341695.8A CN108920480B (en) 2018-04-17 2018-04-17 Processing method and device for file system exception and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810341695.8A CN108920480B (en) 2018-04-17 2018-04-17 Processing method and device for file system exception and computer storage medium

Publications (2)

Publication Number Publication Date
CN108920480A CN108920480A (en) 2018-11-30
CN108920480B true CN108920480B (en) 2021-09-03

Family

ID=64402953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810341695.8A Expired - Fee Related CN108920480B (en) 2018-04-17 2018-04-17 Processing method and device for file system exception and computer storage medium

Country Status (1)

Country Link
CN (1) CN108920480B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727528A (en) * 2019-08-22 2020-01-24 深圳市元征科技股份有限公司 Memory failure recovery method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866211A (en) * 2005-05-17 2006-11-22 韩国电子通信研究院 Method for forced unloading of file system
CN102799519A (en) * 2012-06-07 2012-11-28 浪潮电子信息产业股份有限公司 Automatic test method for cluster file system
CN103235756A (en) * 2013-04-22 2013-08-07 北京航空航天大学 Simulation testing method for partition application software of embedded system
CN106126272A (en) * 2016-06-15 2016-11-16 北京小米移动软件有限公司 File system discharging method and device
CN106776161A (en) * 2016-11-18 2017-05-31 广东欧珀移动通信有限公司 A kind of method for preventing power failure data from losing, device and mobile terminal
CN107656871A (en) * 2017-09-30 2018-02-02 郑州云海信息技术有限公司 A kind of rear end storage performance automated testing method based on Postmark

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8346752B2 (en) * 2009-02-03 2013-01-01 Bmc Software, Inc. Software title discovery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866211A (en) * 2005-05-17 2006-11-22 韩国电子通信研究院 Method for forced unloading of file system
CN102799519A (en) * 2012-06-07 2012-11-28 浪潮电子信息产业股份有限公司 Automatic test method for cluster file system
CN103235756A (en) * 2013-04-22 2013-08-07 北京航空航天大学 Simulation testing method for partition application software of embedded system
CN106126272A (en) * 2016-06-15 2016-11-16 北京小米移动软件有限公司 File system discharging method and device
CN106776161A (en) * 2016-11-18 2017-05-31 广东欧珀移动通信有限公司 A kind of method for preventing power failure data from losing, device and mobile terminal
CN107656871A (en) * 2017-09-30 2018-02-02 郑州云海信息技术有限公司 A kind of rear end storage performance automated testing method based on Postmark

Also Published As

Publication number Publication date
CN108920480A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108399132B (en) Scheduling test method, device and storage medium
CN102736978B (en) A kind of method and device detecting the installment state of application program
US4852092A (en) Error recovery system of a multiprocessor system for recovering an error in a processor by making the processor into a checking condition after completion of microprogram restart from a checkpoint
US20140310698A1 (en) Apparatus and method for upgrading firmware of mobile terminal
US20200310779A1 (en) Validating a firmware compliance policy prior to use in a production system
CN110119280A (en) The method and device of more firmware upgrades
US5987625A (en) Method and apparatus for testing network bootable devices
CN106997313B (en) Signal processing method and system of application program and terminal equipment
CN112416411B (en) Upgrading method and device, equipment end, server and computer readable medium
CN108920480B (en) Processing method and device for file system exception and computer storage medium
US20060015770A1 (en) Method and system for a failover procedure with a storage system
CN111694684A (en) Abnormal construction method and device of storage equipment, electronic equipment and storage medium
CN106933604B (en) System upgrading method and device
CN111522598A (en) Method and device for recording restart information of embedded equipment
CN116719670B (en) Data processing method, electronic device and readable storage medium
RU2600101C1 (en) Assembly control module and method of firmware updating for this control module
CN114116330B (en) Server performance testing method, system, terminal and storage medium
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN106130815B (en) Board level testing method and device
CN105278993B (en) A kind of drive module upgrade method and device based on linux system
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN113703823A (en) BMC (baseboard management controller) firmware upgrading method and device, electronic equipment and storage medium
CN116340957B (en) Program starting method, device, server and nonvolatile storage medium
CN109245920B (en) Automatic switch configuration method and device, switch and storage medium
CN117472291B (en) Data block verification method and device, storage medium and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210903

CF01 Termination of patent right due to non-payment of annual fee