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: Shawn Erickson <email@hidden>
- Date: Thu, 21 Jul 2005 07:03:14 -0700
On Jul 21, 2005, at 3:23 AM, santosh katvate 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
This is a very unsafe assumption. For example in that same document
you are looking at review the section on "Hot Files" [1]. If the
volume is mounted then the HFS+ file system code owns that file
system, it can do whatever it wants with blocks of data on disk
totally independent of what system level calls are made. You really
cannot make any safe assumptions about how blocks will exist on disk
as long as a file system driver owns the volume and you don't really
have a good API that will let you get at that information from the
file system driver itself, that I know of at least.
-Shawn
_______________________________________________
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