Volume information analysis module and method thereof
A volume information analysis module reads a data by an interface unit. The volume information analysis module uses a compare unit to compare the data. After comparing the data, the compare unit outputs a signal, and then a count unit accumulates result of the comparing according to the signal. A control unit receives a setting signal from a micro process unit to control the interface unit, the compare unit and the count unit. Thereby using the volume information analysis module can accelerate analysis speed and reduce loading of the micro process unit.
This application is a Continuation-in-part of application Ser. No. 11/039892, filed on 24 Jan. 2005, and entitled Storage control apparatus capable of analyzing volume information and a control method thereof.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to information analysis module and the method thereof; in particular, it relates to a volume information analysis module and the method thereof.
2. Description of Related Art
Prior art storage devices are provided with volume information analysis functions therein to facilitate users to observe storage volume, which scan and analyze usage status of the storage media, then save and record the scanning and analysis results, allowing further display for user's references. In the U.S. Patent Open Publication No. 2006/0075182, titled as “Storage control apparatus capable of analyzing volume information and a control method thereof”, there provided an analysis method for volume information. The said document illustrated a storage control system provided with a volume information analysis module and a volume information registration area, offering the storage control system with the functions of reading the storage media independently, online or offline, to further analyze storage volume related application information carried thereon. However, in terms of the volume information analysis module, the said document has merely stated the functions provided by the volume information analysis module within the entire system, but no further descriptions on its internal analysis method.
Concerning the prior art storage device volume information analysis method, please now refer to
Regarding to the above-mentioned issues, the present invention provides a volume information analysis module and the method thereof, which reduces work loadings of micro process unit, and also shortens process times required for analyzing storage media volume information.
The present invention offers a volume information analysis module, wherein comprising an interface unit, a compare unit, an accumulate unit and a control unit. In which, the interface unit is used to read data, thereby provided to compare unit for compare. Next the compare unit compares the data and outputs an acknowledge signal, then the accumulate unit, according to the said acknowledge signal, accumulates the compare result from the compare unit. The control unit thus, in accordance with the setting signal provided by the micro process unit, controls the settings of actions among each unit.
The present invention provides a volume information analysis method, which first sets control actions of the control unit with setting signal provided for the process unit. Then the control unit controls the interface unit according to the setting signal to read data. Next, the control unit controls the compare unit in accordance with the setting signal to compare data. Following which, the accumulate unit accumulates the data compare result provided by the compare unit. Finally, at the accumulate unit, the accumulated compare result will be read.
To further appreciate the features and technical contents of the present invention, please refer to the detailed descriptions and appended drawings for the present invention, wherein the appended drawings hereunder provided are merely for references and illustrations of the present invention, not in any aspects for limiting the scope of the present invention.
BRIEF DESCRIPTION OF THE DRAWINGS
Now refer to the functional block diagram of volume information analysis module according to the present invention, as shown in
The volume information analysis module 20 comprises a control unit 201, an interface unit 203, a compare unit 205 and an accumulate unit 207. Wherein the control unit 201 is connected to the microprocessor 24, and receives the setting signal sent by the microprocessor 24. The control unit 201 then sets the actions of the interface unit 203, the compare unit 205 and the accumulate unit 207 according to the setting signal. The interface unit 203 is linked with the data buffering area 22 or a storage media interface (not shown in the drawing), controlled by the settings of the control unit 201, and reading data from the data buffering area 22 or the storage media according to the set addresses or interfaces, thereby providing the compare unit 205 to compare. The compare unit 205 is connected to the interface unit 203, controlled by the settings of the control unit 201, wherein the control unit 201 controls the compare unit 205 in accordance with the file type of data intended to be compared, thereby to select an appropriate compare mode, then compares with the data that read by the interface unit 203 based on the selected compare mode. Furthermore, when the compare result matches (e.g. for FAT32, the compare result matches four consecutive bytes 0, which indicates the corresponding clusters are available), an acknowledge single will be output to the accumulate unit 207. The accumulate unit 207 is connected to the compare unit 205, and performs accumulation and storage actions based on the acknowledge signal sent by the compare unit 205, thereby calculates available volume space size, allowing the microprocessor 24 to read directly, or via the control unit 201, such an accumulate result. The accumulate unit 207 is also controlled by the settings of the control unit 201, which can be cleared and reset to zero.
Next, refer to
In summary, by means of the volume information analysis module and the method thereof of the present invention, it is hence possible to reduce work loadings of the microprocessor 24, increase efficiency of volume information analysis in the microprocessor 24, and furthermore enhance the access performance when applied to storage devices.
However, the fore-mentioned illustrations represent simply the descriptions and drawings for the preferred embodiments of the present invention; the features of the present invention are not in any aspects limited to such embodiments, nor should they be used to constrain the present invention. The scopes of the present invention should hence be based on the following claims; all embodiments conforming with the spirits and scopes of the present invention, as well as similar variations thereof, should be included in the of field the present invention. Any variations and modifications that those skilled in the art can conveniently consider in the field of the present invention should therefore be covered by the following claims of the present invention.
Claims
1. A volume information analysis module, wherein comprising:
- an interface unit, used to read data to provide for compare;
- a compare unit, comparing the data and outputting an acknowledge signal;
- an accumulate unit, accumulating the compare result from the compare unit, according to the said acknowledge signal; and
- a control unit, controlling the interface unit, the compare unit and the accumulate unit, according to a setting signal.
2. The volume information analysis module of claim 1, wherein the interface unit reads the data at a data buffering area or a storage media interface.
3. The volume information analysis module of claim 2, wherein the control unit controls the interface unit according to the setting signal, and reads the data from the data buffering area or the storage media interface according to the set addresses or interfaces in the setting signal.
4. The volume information analysis module of claim 1, wherein the compare unit comprises at least one compare mode; the control unit controls the selection of the compare modes.
5. The volume information analysis module of claim 4, wherein the control unit, based on the file type of the data, selects corresponding compare mode.
6. The volume information analysis module of claim 5, wherein the acknowledge signal is the output signal when the data matches the compare mode.
7. The volume information analysis module of claim 1, wherein the control unit, according to the setting signal, controls the accumulate unit to response accumulate result or clear the accumulate result to zero.
8. The volume information analysis module of claim 1, wherein the control unit receives the setting signal from a micro process unit.
9. A volume information analysis method, comprising the following steps:
- using a setting signal to set a control unit;
- controlling an interface unit to read a data by the control unit according to the setting signal;
- controlling a compare unit to compare the data by the control unit according to the setting signal;
- accumulating the compare result for the data from the compare unit by an accumulate unit; and
- reading the accumulate result from the accumulate unit.
10. The volume information analysis method of claim 9, wherein the setting signal is provided by a micro process unit, in order to set the control actions of the control unit.
11. The volume information analysis method of claim 9, wherein the interface unit reads the data from the data buffering area or the storage media according to the addresses or interfaces set by the control unit.
12. The volume information analysis method of claim 9, wherein the control unit controls the compare unit according to the file type of the data, to select a corresponding compare mode to compare with the data.
13. The volume information analysis method of claim 9, wherein, as to the compare result for the data from the compare unit, if the data is available volume space, then an acknowledge signal will be output to the accumulate unit.
14. The volume information analysis method of claim 13, wherein the accumulate unit, according to the acknowledge signal, accumulates and saves the compare result for the data from the compare unit.
15. The volume information analysis method of claim 9, wherein the control unit, according to the setting signal, controls the accumulate unit to response accumulate result or clear the accumulate result to zero.
16. The volume information analysis method of claim 9, further comprising a micro process unit reading the accumulate result of the accumulate unit via the control unit.
Type: Application
Filed: Aug 4, 2006
Publication Date: Nov 30, 2006
Inventor: Hsiang-An Hsieh (Sindian City)
Application Number: 11/498,891
International Classification: G06F 7/00 (20060101);