Electronic apparatus and file search method thereof
First Claim
1. A file search method of an electronic apparatus, for searching for N configuration files stored in the electronic apparatus, the configuration files being in a file system of the electronic apparatus, N being a positive number, the file search method comprising:
- (a) providing an X being initially equal to 0 and a location Y being initially at the root of the file system, X being an integer;
(b) searching for an X-th configuration file starting from the location Y;
(c) if the X-th configuration file is found, performing a sanity check on the X-th configuration file and setting the location Y to the location of the X-th configuration file;
(d) incrementing X; and
(e) determining whether X equals N;
if so, ending the method;
if not, proceeding to the step (b).
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic apparatus and a file search method thereof are provided. The file search method sequentially searches for a plurality of configuration files according to a file order table. The file search method searches for a next adjacent configuration file according to a starting point based on the location of a previously found configuration file in the file system. Thus, the sanity check on the configuration files is speeded up. As a result, the boot-up time for the electronic apparatus, particularly portable electronic apparatus, is shortened.
-
Citations
42 Claims
-
1. A file search method of an electronic apparatus, for searching for N configuration files stored in the electronic apparatus, the configuration files being in a file system of the electronic apparatus, N being a positive number, the file search method comprising:
-
(a) providing an X being initially equal to 0 and a location Y being initially at the root of the file system, X being an integer;
(b) searching for an X-th configuration file starting from the location Y;
(c) if the X-th configuration file is found, performing a sanity check on the X-th configuration file and setting the location Y to the location of the X-th configuration file;
(d) incrementing X; and
(e) determining whether X equals N;
if so, ending the method;
if not, proceeding to the step (b). - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. An electronic apparatus, comprising:
-
a memory device, storing a sanity check module and N configuration files, where N is a positive integer; and
a processor, coupled to the memory device, for executing the sanity check module to perform a sanity check on the N configuration files, the sanity check module performs the steps of;
(a) providing an X being initially equal to 0 and a location Y being initially at the root of the file system, X being an integer;
(b) searching for an X-th configuration file starting from the location Y;
(c) if the X-th configuration file is found, performing a sanity check on the X-th configuration file and setting the location Y to a location of the X-th configuration file;
(d) incrementing X; and
(e) determining whether X equals N;
if so, ending the sanity check;
if not, proceeding to the step (b). - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-
-
33. A file search method of an electronic apparatus, for searching for a plurality of configuration files stored in the electronic apparatus, the configuration files being in a file system of the electronic apparatus, the file search method comprising:
-
(a) searching for a first configuration file;
if the first configuration file is found, proceeding to step (b);
if not found, proceeding to step (c);
(b) searching for a second configuration file according to a location of the first configuration file in the electronic apparatus; and
(c) starting to searching for the first configuration file from the a specific location of the file system. - View Dependent Claims (34, 35, 36, 37)
-
-
38. An electronic apparatus, comprising:
-
a memory device, storing a sanity check module and a plurality of configuration files, the configuration files being in a file system of the electronic apparatus; and
a processor, coupled to the memory device, for executing the sanity check module to perform a sanity check on the N configuration files, the sanity check module performs the steps of;
(a) searching for a first configuration file;
proceeding to step (b) if the first configuration file is found;
proceeding to step (c) if not found;
(b) searching for a second configuration file according to a location of the first configuration file in the electronic apparatus; and
(c) searching for the first configuration file from a specific location of the file system. - View Dependent Claims (39, 40, 41, 42)
-
Specification