CN101350020A - Method, apparatus and system for verifying embedded type file system - Google Patents
Method, apparatus and system for verifying embedded type file system Download PDFInfo
- Publication number
- CN101350020A CN101350020A CNA2008101173426A CN200810117342A CN101350020A CN 101350020 A CN101350020 A CN 101350020A CN A2008101173426 A CNA2008101173426 A CN A2008101173426A CN 200810117342 A CN200810117342 A CN 200810117342A CN 101350020 A CN101350020 A CN 101350020A
- Authority
- CN
- China
- Prior art keywords
- file
- directory
- file system
- catalogue
- operating terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000011161 development Methods 0.000 claims abstract description 42
- 238000012795 verification Methods 0.000 claims description 19
- 238000012986 modification Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000012360 testing method Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method, a device and a system for verifying an embedded file system, wherein the method comprises: firstly, obtaining catalog information of each grade catalog of the embedded file system of a development board and file information of each file by an operating terminal, secondly, constructing a directory tree on the operating terminal, wherein each grade catalog of the file system and each file have corresponding nodes in the directory tree, and thirdly, operating the directory tree to obtain the catalog information and/or the file information through the operating terminal. The method for verifying the embedded file system which is provided by the invention can provide testing personnel with a good interface and rapid operations.
Description
Technical field
The present invention relates to embedded file system, particularly relate to a kind of verification method, device and system of embedded file system.
Background technology
Along with the complexity day by day of electronic product, the Embedded Application field more and more needs the auxiliary of operating system.And file system is the important component part of operating system, and the performance of whole operation system is played an important role, and the quality that file system realizes will determine directly that can operating system operate as normal.
And embedded file system is meant the file system that is applied in the embedded system, compares with common file system, simplify to some extent on the function, but size of code is few, realizes simply being easy to integrated.Whether checking is consistent with actual result from the notional result of angle of practice checking system.In Embedded Application, the checking of embedded file system is become an important problem.
Present verification method is realized with the form of shell (command line interpreter) mostly, main problem is exactly that man-machine interface is bad, and tester's inconvenience that operates is realizing that some function is for example during search file in addition, the operation more complicated, processor is carried out very consuming time.
Summary of the invention
The purpose of the embodiment of the invention provides a kind of verification method, device and system of embedded file system, and good man computer interface can be provided, and easily tester's use solves the technical matters that prior art need be remembered the substantive test order.
To achieve these goals, on the one hand, provide a kind of verification method of embedded file system, comprised the steps:
Step 1, operating terminal are obtained the directory information of each grade catalogue of embedded file system of development board and the fileinfo of each file;
Step 2 makes up directory tree at described operating terminal, and each of described file system grade catalogue and each file all have node one to one in described directory tree;
Step 3 is obtained described directory information and/or described fileinfo by operate described directory tree at described operating terminal.
Preferably, described method, wherein, in described step 3, described operation comprises: inquire about and search for described directory tree.
Preferably, described method, wherein, in described step 3, also comprise: operating terminal sends catalogue or the file that described file system is revised in order, and, at the catalogue or the file of each variation, all corresponding catalogue or the pairing node of file of revising described variation.
Preferably, described method, wherein, described step 1 specifically comprises:
Step a, described operating terminal send the traversal order to described development board;
Step b, described development board is visited the root directory of described file system, and the directory information of described root directory is sent to described operating terminal;
Step c judges whether as yet the sub-directory or the file of not visit, is execution in step d then, otherwise execution in step e;
Steps d is visited described sub-directory or file of not visiting as yet, and the directory information of visit catalogue or the fileinfo of institute's access file are sent to described operating terminal, returns step c;
Step e, the signal that sends the termination transmission is to described operating terminal.
Preferably, described method wherein, after described step 2, also comprises, the mode by view shows described directory tree at described operating terminal.
Preferably, described method, wherein, described operating terminal adopts PC or adopts server.
Another aspect of the present invention provides a kind of demo plant of embedded file system, comprising:
The information acquisition module is used to obtain the directory information of each grade catalogue of embedded file system of development board and the fileinfo of each file;
Make up module, be used to make up directory tree, each of described file system grade catalogue and each file all have node one to one in described directory tree;
Operational module is used for obtaining described directory information and/or described fileinfo by operating described directory tree.
Preferably, described demo plant, wherein, described operational module comprises inquiry and search unit, is used for inquiry and searches for described directory tree.
Preferably, described demo plant, wherein, described operational module comprises the modification unit, sends catalogue or file that described file system is revised in order, and, at the catalogue or the file of each variation, all corresponding catalogue or the pairing node of file of revising described variation.
Another aspect of the present invention provides a kind of verification system of embedded file system, comprises operating terminal and development board, and described development board is equipped with embedded file system;
Described operating terminal comprises:
The information acquisition module is used to obtain the directory information of each grade catalogue of embedded file system of described development board and the fileinfo of each file;
Make up module, be used to make up directory tree, each of described file system grade catalogue and each file all have node one to one in described directory tree;
Operational module is used for obtaining described directory information and/or described fileinfo by operating described directory tree.
Preferably, described verification system, wherein, described operating terminal is PC or server.
Preferably, described verification system, wherein, described operating terminal connects described development board by the RS232 Serial Port Line.
There is following technique effect at least in the embodiment of the invention:
1) verification method of this embedded file system of the present invention's proposition can offer tester's good interface and operation efficiently.
2) the present invention has accelerated the function of search of file greatly.Because catalogue and file on each node on the PC in the directory tree and the development board in the file system are one to one, and adjust accordingly according to user's operation, so certain file in the search file system just changes into certain node in the searching directory tree, the speed of traversal directory tree is very fast on PC, and search file need carry out the disk read operation repeatedly in file system, by contrast, the speed of search is improved greatly.
Description of drawings
The hardware block diagram of the verification system that Fig. 1 provides for the embodiment of the invention;
The command response process flow diagram that Fig. 2 provides for the embodiment of the invention;
The flow chart of steps of the verification method that Fig. 3 provides for the embodiment of the invention;
The directory tree transfer process figure that Fig. 4 provides for the embodiment of the invention;
The view operation reaction process that Fig. 5 provides for the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, specific embodiment is described in detail below in conjunction with accompanying drawing.
The hardware block diagram of verification system as shown in Figure 1, comprise PC (PC) and development board, owing to be checking to file system on the development board, link to each other by the simplest RS232 Serial Port Line between PC and the development board, help simplified system like this, when makeing mistakes, find error reason fast, certainly, between PC and the development board multiple connected mode can be arranged, for example communication, so connected mode includes but not limited to the serial communication mode.
Proving program on the PC is the system of a class DOS, has a plurality of orders, and the tester sends order by the serial ports program, and development board responds after receiving order, carries out certain corresponding program, and the result that will carry out returns to PC then.
PC and development board command response process flow diagram as shown in Figure 2, after PC and development board were all finished system initialization, development board entered wait command state 201, if receive the order of PC, then sent rreturn value after the fill order to PC; PC enters and waits for rreturn value state 211 after sending order to development board, up to receiving rreturn value, like this, has just finished a command response flow process between PC and the development board.
The verification method of the embedded file system that the embodiment of the invention provides is based on above verification system and above command response flow process, and as shown in Figure 3, verification method comprises the steps:
In the described step 303, described operation comprises: inquire about and search for described directory tree.Like this, can realize that directory tree is intuitively simple, need not note down the order of the loaded down with trivial details DOS formula of development board by the directory tree of operating terminal to development board inquiry and search.And, operating terminal can also send catalogue or the file that described file system is revised in order, still, and at the catalogue or the file of each variation, all want corresponding catalogue or the pairing node of file of revising described variation, so that the file system of directory tree and development board is consistent.
In step 301 and step 302, obtaining information and make up the process of directory tree can be with reference to figure 4.
The directory tree transfer process figure that Fig. 4 provides for the embodiment of the invention; PC sends first order later on executing initialization operation, obtains the directory tree of file system on the development board.After development board receives this order, travel through the file system of oneself, whenever traverse a file (comprising root directory), just the information under this catalogue (is comprised file and directory name, but do not comprise darker first class catalogue, add file size, create and revise the date etc. according to application demand) packing, send to PC; The PC tree construction that creates a directory whenever receives a packets of information, resolves and the directory information of correspondence is added in the directory tree structure.
The available mode as shown in Table 1 and Table 2 of directory information bag represents that because file system is all restricted to pathname and filename, some special character codes can not appear at wherein, just can utilize these special characters to do cutting apart between these filenames here.2 these packets of information of byte representation of the beginning of packets of information length (using byte representation) altogether, be subsequently this catalogue correspondence pathname for example/boot/dir, represent ending place in path with separator, be the information of a plurality of files or sub-directory under this catalogue subsequently.
Table 1 directory information bag:
Total data length (2B) | The routing information of this catalogue correspondence | Separator | Fileinfo | Separator | Fileinfo | ... | CRC check information |
Table 2 fileinfo:
The file type mark | Filename | File out of Memory (file size, establishment and modification time etc.) |
Development board has just built directory tree after having traveled through local file system above the PC, use view to show on PC, and fileinfo is very clear.When wanting operation file this time, can directly on view, operate, the flow process of system response as shown in Figure 5, the user is by the view of the described directory tree of operation, make operating terminal send catalogue or file that described file system is revised in order, the catalogue of each variation of development board or file are all wanted corresponding catalogue or the pairing node of file of revising described variation, so that the file system of directory tree and development board is consistent, concrete steps comprise:
Step 506 judge to be carried out whether success, is execution in step 507 then, otherwise execution in step 508;
Step 507 provides and carries out unsuccessful prompting, finishes;
Corresponding above method, the embodiment of the invention also provides a kind of demo plant of embedded file system, comprising:
The information acquisition module is used to obtain the directory information of each grade catalogue of embedded file system of development board and the fileinfo of each file;
Make up module, be used to make up directory tree, each of described file system grade catalogue and each file all have node one to one in described directory tree;
Operational module is used for obtaining described directory information and/or described fileinfo by operating described directory tree.
Comprise inquiry and search unit in the described operational module, be used for inquiry and search for described directory tree, also comprise the modification unit, be used to send catalogue or the file that described file system is revised in order, and, at the catalogue or the file of each variation, all corresponding catalogue or the pairing node of file of revising described variation.
As from the foregoing, the embodiment of the invention advantage is a function of search of having accelerated file greatly.Because catalogue and file on each node on the PC in the directory tree and the development board in the file system are one to one, and adjust accordingly according to user's operation, so certain file in the search file system just changes into certain node in the searching directory tree, the speed of traversal directory tree is very fast on PC, and search file need carry out the disk read operation repeatedly in file system, by contrast, the speed of search is improved greatly.
In addition, with the comparison of current programme, the method for present authenticating documents system is to carry out with the form of shell, need a lot of orders of memory, it is convenient inadequately to use, and the embodiment of the invention can offer tester's good interface, operation efficiently, and strengthen function of search.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (12)
1. the verification method of an embedded file system is characterized in that, comprises the steps:
Step 1, operating terminal are obtained the directory information of each grade catalogue of embedded file system of development board and the fileinfo of each file;
Step 2 makes up directory tree at described operating terminal, and each of described file system grade catalogue and each file all have node one to one in described directory tree;
Step 3 is obtained described directory information and/or described fileinfo by operate described directory tree at described operating terminal.
2. method according to claim 1 is characterized in that, in described step 3, described operation comprises: inquire about and search for described directory tree.
3. method according to claim 1 is characterized in that, in described step 3, also comprise: operating terminal sends catalogue or the file that described file system is revised in order, and, at the catalogue or the file of each variation, all corresponding catalogue or the pairing node of file of revising described variation.
4. method according to claim 1 is characterized in that, described step 1 specifically comprises:
Step a, described operating terminal send the traversal order to described development board;
Step b, described development board is visited the root directory of described file system, and the directory information of described root directory is sent to described operating terminal;
Step c judges whether as yet the sub-directory or the file of not visit, is execution in step d then, otherwise execution in step e;
Steps d is visited described sub-directory or file of not visiting as yet, and the directory information of visit catalogue or the fileinfo of institute's access file are sent to described operating terminal, returns step c;
Step e, the signal that sends the termination transmission is to described operating terminal.
5. method according to claim 1 is characterized in that, after described step 2, also comprises, the mode by view shows described directory tree at described operating terminal.
6. according to any described method in the claim 1 to 5, it is characterized in that described operating terminal adopts PC or adopts server.
7. the demo plant of an embedded file system is characterized in that, comprising:
The information acquisition module is used to obtain the directory information of each grade catalogue of embedded file system of development board and the fileinfo of each file;
Make up module, be used to make up directory tree, each of described file system grade catalogue and each file all have node one to one in described directory tree;
Operational module is used for obtaining described directory information and/or described fileinfo by operating described directory tree.
8. demo plant according to claim 7 is characterized in that, described operational module comprises inquiry and search unit, is used for inquiry and searches for described directory tree.
9. demo plant according to claim 7 is characterized in that described operational module comprises the modification unit, send order and revise the catalogue or the file of described file system, and, at the catalogue or the file of each variation, all corresponding catalogue or the pairing node of file of revising described variation.
10. the verification system of an embedded file system is characterized in that, comprises operating terminal and development board, and described development board is equipped with embedded file system;
Described operating terminal comprises:
The information acquisition module is used to obtain the directory information of each grade catalogue of embedded file system of described development board and the fileinfo of each file;
Make up module, be used to make up directory tree, each of described file system grade catalogue and each file all have node one to one in described directory tree;
Operational module is used for obtaining described directory information and/or described fileinfo by operating described directory tree.
11. verification system according to claim 10 is characterized in that, described operating terminal is PC or server.
12. verification system according to claim 10 is characterized in that, described operating terminal connects described development board by the RS232 Serial Port Line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101173426A CN101350020A (en) | 2008-07-29 | 2008-07-29 | Method, apparatus and system for verifying embedded type file system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101173426A CN101350020A (en) | 2008-07-29 | 2008-07-29 | Method, apparatus and system for verifying embedded type file system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101350020A true CN101350020A (en) | 2009-01-21 |
Family
ID=40268815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101173426A Pending CN101350020A (en) | 2008-07-29 | 2008-07-29 | Method, apparatus and system for verifying embedded type file system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101350020A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102360410A (en) * | 2011-09-30 | 2012-02-22 | 许式伟 | User operation discovery method of file system and synchronous system utilizing the same |
CN102439598A (en) * | 2011-09-15 | 2012-05-02 | 华为技术有限公司 | Document template management method and system |
CN102722487A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Method and apparatus for file management |
CN104572430A (en) * | 2013-10-24 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Method, device and system for testing terminal application interface |
CN110489125A (en) * | 2019-07-29 | 2019-11-22 | 恩亿科(北京)数据科技有限公司 | File management method and computer storage medium |
-
2008
- 2008-07-29 CN CNA2008101173426A patent/CN101350020A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722487A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Method and apparatus for file management |
CN102722487B (en) * | 2011-03-30 | 2016-08-24 | 腾讯科技(深圳)有限公司 | File management method and device |
CN102439598A (en) * | 2011-09-15 | 2012-05-02 | 华为技术有限公司 | Document template management method and system |
WO2012083735A1 (en) * | 2011-09-15 | 2012-06-28 | 华为技术有限公司 | Document template management method and system |
CN102360410A (en) * | 2011-09-30 | 2012-02-22 | 许式伟 | User operation discovery method of file system and synchronous system utilizing the same |
CN102360410B (en) * | 2011-09-30 | 2014-03-19 | 许式伟 | User operation discovery method of file system and synchronous system utilizing the same |
CN104572430A (en) * | 2013-10-24 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Method, device and system for testing terminal application interface |
CN104572430B (en) * | 2013-10-24 | 2018-04-27 | 腾讯科技(深圳)有限公司 | A kind of test method, the device and system at terminal applies interface |
CN110489125A (en) * | 2019-07-29 | 2019-11-22 | 恩亿科(北京)数据科技有限公司 | File management method and computer storage medium |
CN110489125B (en) * | 2019-07-29 | 2023-07-25 | 恩亿科(北京)数据科技有限公司 | File management method and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20030195951A1 (en) | Method and system to dynamically detect, download and install drivers from an online service | |
CN103176844B (en) | The changing method of a kind of IE6 kernel and novel I E kernel and system | |
CN104468843A (en) | File uploading method and device | |
US20070245134A1 (en) | Testing device and testing method for computer | |
CN104796491A (en) | Server and software downloading and registration method based on once code-scanning | |
CN107885658B (en) | Test preposition implementation method, device, terminal device and storage medium | |
WO2017000761A1 (en) | Method and apparatus for extracting feature information of terminal device | |
CN101350020A (en) | Method, apparatus and system for verifying embedded type file system | |
CN111683066A (en) | Heterogeneous system integration method and device, computer equipment and storage medium | |
EP3523946B1 (en) | Profile based content and services | |
CN103902339A (en) | Application installation method, terminal and server | |
CN107145784A (en) | A kind of method of vulnerability scanning, device and computer-readable medium | |
CN108776592A (en) | A kind of method, apparatus of page makeup, equipment and storage medium | |
CN104618388A (en) | Quick registration and login method and corresponding reset server and information server | |
US8510423B2 (en) | Install system and install method | |
CN104750463A (en) | A plug-in developing method and system | |
CN115509582A (en) | Application program issuing method, device, equipment and storage medium | |
CN104699509A (en) | Method and device for downloading application software | |
CN102790806A (en) | Method and device for downloading courseware based on http (hyper text transport protocol) | |
CN101583204B (en) | Method and system for realizing managing universal combined circuit card multiple application files | |
CN106990988A (en) | The method and device that a kind of program updates | |
CN105094787B (en) | Method and device for processing enterprise internet application | |
CN111488286B (en) | Method and device for independently developing Android modules | |
CN107273401A (en) | Management method, mobile device and the storage device of application data file | |
CN106250437A (en) | A kind of electronic monitoring front end data acquisition method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20090121 |
|
C20 | Patent right or utility model deemed to be abandoned or is abandoned |