Sparse files on Mac
Sparse files on Mac
- Subject: Sparse files on Mac
- From: "Damir Dezeljin" <email@hidden>
- Date: Sat, 8 Dec 2007 10:33:17 +0100
Hi folks,
I have an non strictly kernel related question; however, I guess you'll be able to point me to the right resources. I developed a KEXT and I though of using sparse files functionality in user space for implementing some internal logic.
I tried creating a sparse file using the same set of commands I usually use on Linux, but I found out I just create a normal file:
----
ftruncate(fd, 0);
ftruncate(fd, 4*1024*1024*1024);
----
Now I'm wondering if sparse files are supported on the default file system used on OS
10.4 desktop (as I know, the HFS is used)? If yes, what I'm doing wrong?
Additionally I'm wondering if is it possible to get some kind of 'holes table' as it's on Windows -> so, let suppose the sparse file has some data on an offset of 1 GB, some on
1.7 GB and so on. As far as I know, this isn't possible on Linux, but I'm sure it is on Windows.
Is it possible to access above mentioned information from a KEXT?
Thanks,
Damir
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden