Re: Finding Blocks occupied by the file on the volume
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o4631aqrDGoxgweEnP5s3mvrrWZlAqUxL8PixGVOkW7pfTZG3ru4Fp0tMPV5u2HpkZ8UBWa7eQG4o4QpVIrOCFyO9pbpVu4D13bfhLOObfjbJxWsmHkARlA5MdnvJbgZBySGWypfj7iU3BOT11AEMe1JCCJxSCN/h69fB1uW+ws= 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 <santosh.nk@gmail.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
santosh katvate