摘要 |
The invention concerns a technique for defragmenting digital storage media (disks). The invention is based on a filter driver or corresponding technology receiving all I/O to and/or from the file system driver, and which by itself is able to send I/O requests to the file system driver. Fig. 2 illustrates the basic architecture of the invention in the form of a data flow diagram. Filter (201) receives all I/O requests to and/or from the underlying file system driver. I/0-Synchronizer (202) controls when defragmentation can be performed without interfering with external I/O requests. In Defragmenter (203) is running a separate thread that analyzes files for fragmentation received from Filter (201). Fragmented files are defragmented by sending I/O requests to the file system driver, but only when I/O-Synchronisator (202) allows it. Thereby it is immediately recognised when a files has been fragmented, and it may be defragmented momentarily without affecting in any appreciable way the remaining yield of the system. |