Re: Finding Blocks occupied by the file on the volume.
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Am 16.07.2005 um 10:46 schrieb santosh katvate: i want to write an application in carbon for finding the blocks occupied or assigned for a particular file. Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ _______________________________________________ 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... Carbon is the wrong level for tackling such a problem, but nobody stops you from using system calls and other frameworks in the same app. Did you notice files have some tendency to be moved around on the platter (hot file clustering) or may not exist at all on the magnetic media (yet to be written, network file system, ...)? Other than that I'm not aware of API dealing with the file system level other than disassembling the thing yourself. For local file systems you should have some luck looking at the implementation of fsck for borrowing code: <http://darwinsource.opendarwin.org/> This email sent to site_archiver@lists.apple.com
participants (1)
-
Markus Hitter