Re: Finding Blocks occupied by the file on the volume
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 -Shawn _______________________________________________ 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 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Shawn Erickson