search for: sparse1

Displaying 1 result from an estimated 1 matches for "sparse1".

Did you mean: sparse
2005 Nov 09
1
smarter sparse files?
...by manipulating trees/freelists/whatever and perhaps "massaging" a small number of actual data blocks. (I should mention that my slots are typically much larger than a disk block 100kB-1MB, say) Simple example: On a file system supporting sparse files, the following fd = open("sparse1",w"); write(fd, buf, 10); lseek(fd,1000000,SEEK_CUR); write(fd, buf, 10); will create a file occupying a small number of disk blocks. Ideally I would like to be able to do the following fd = open("sparse2",w"); write(fd, buf, 1000020); lseek(fd,10,SEEK_SET); giveback(fd...