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: Markus Hitter <email@hidden>
- Date: Sat, 16 Jul 2005 19:30:18 +0200
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.
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/>
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden