File system preventing file fragmentation
First Claim
1. A file system capable of reserving a write area, wherein when a file write process is performed, a file size or a file offset of a file to be written is compared with a threshold value designated in advance, and in accordance with a comparison result, a reservation size of a write area is changed.
1 Assignment
0 Petitions
Accused Products
Abstract
In a file system capable of reserving a storage area, disk fragments can be prevented and an insufficient file system area is hard to occur. A response time of writing a small size file can be shortened. When a file is written, a file size is compared with a plurality of preset threshold values and reservation is executed at a reservation size corresponding to the file size. If the reservation is failed due to an insufficient file system capacity, the reservation is again executed at an actual I/O size to effectively use the file system area. If the file size does not reach the preset smallest threshold value, the reservation is again executed at the actual I/O size and the reservation release process for the file equal to or smaller than the smallest threshold value is skipped.
-
Citations
11 Claims
- 1. A file system capable of reserving a write area, wherein when a file write process is performed, a file size or a file offset of a file to be written is compared with a threshold value designated in advance, and in accordance with a comparison result, a reservation size of a write area is changed.
-
11. A file write method wherein a storage area of a storage is managed in a block unit having a constant size, and in response to a write request of a file, a reservation operation is performed to set a write reservation size or a write reservation block of the file to sequentially perform a write process, the file write method comprises:
-
a first judgement procedure of comparing a file offset of the file to be written with a threshold value designated in advance for the file offset; and
a second judgement procedure of comparing a file size of the file to be written with a threshold value designated in advance for the file size, said reservation operation is executed at a first reservation size designated in advance, if said first judgement procedure judges that the threshold value is hit, said reservation operation is executed at a second reservation size designated in advance, if said second judgement procedure judges that the threshold value is hit, and said reservation operation is executed at a write request size if both said first and second judgement procedures do not hit the threshold values.
-
Specification