Hi,
i want to write a user space program which can create a file with a specific
size. The disk space should be allocated too but the file content should not
be filled with zeros, so only the clusters
should be marked as allocated.
I took a look at the write functions but I am not sure which are needed to
allocate clusters and which part does write the file content.
Where do I have to start? Can someone give me a advice?
Or should I implement a fallocate function for ntfs? Would this be better?
Thanks in advance
Tobias
PS: I am using kernel 2.6.24 and ntfsprogs 2.0.0
|