Re: Finding Blocks occupied by the file on the volume
Re: Finding Blocks occupied by the file on the volume
- Subject: Re: Finding Blocks occupied by the file on the volume
- From: santosh katvate <email@hidden>
- Date: Thu, 21 Jul 2005 15:53:39 +0530
hi mike
If i keep the handle of the file open then i don't think that
filesystem will try to recycle the blocks corresponding to file as
long as the handle is open
According to http://developer.apple.com/technotes/tn/tn1150.html , the
catalog file stores the first 8 extents:
HFS Plus maintains information about the contents of a file using the
HFSPlusForkData structure. Two such structures -- one for the resource
and one for the data fork -- are stored in the catalog record for each
user file. In addition, the volume header contains a fork data
structure for each special file.
Do anyone have any idea of how to obtain the catalog record
corresponding to file?
what are the api's or function to obtain this.
thanks
santosh k
On 7/21/05, santosh katvate <email@hidden> wrote:
> hi mike
>
> If i keep the handle of the file open then i don't think that
> filesystem will try to recycle the blocks corresponding to file as
> long as the handle is open
>
>
> According to http://developer.apple.com/technotes/tn/tn1150.html , the
> catalog file stores the first 8 extents:
> HFS Plus maintains information about the contents of a file using the
> HFSPlusForkData structure. Two such structures -- one for the resource
> and one for the data fork -- are stored in the catalog record for each
> user file. In addition, the volume header contains a fork data
> structure for each special file.
>
> Do anyone have any idea of how to obtain the catalog record
> corresponding to file?
> what are the api's or function to obtain this.
>
>
> thanks
> santosh k
>
--
Life is Small and Lots of Things to Learn
Lets Share the Knowledge
_______________________________________________
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