Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding the offset of a partition



This was to get the offset for the whole disk. The LOG2PHYS gets it for the partition.

Jason


--

Jason Bobier            email@hidden

PGP Corporation

www.pgp.com


On Feb 3, 2006, at 8:49 AM, Shawn Erickson wrote:

On 2/3/06, Jason Bobier <email@hidden> wrote:
In the driver, the disk and the partition are represented by IOMedia
objects and you can use getBase on the partition to know where it is
relative to the disk. So the system knows how the two are related.

I'm trying to get the offset on disk of a particular file. In order
to do this I use F_LOG2PHYS which gives me the offset from the
beginning of the partition. So I need to add the partition offset
somehow.

Are you doing raw access to the whole disk? or to a slice (partition)
of that disk? The offset may already be dealt with for you depending
on how you are doing your IO.

-Shawn




________________________________________________________________
This message could have been secured by PGP Universal. To secure
future messages from this sender, please click this link:

https://keys.prismatix.com/b/b.e?r=email@hidden&n=nZyHwo255DU%2F6VzP%2BOTPvw%3D%3D
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >finding the offset of a partition (From: Jason Bobier <email@hidden>)
 >Re: finding the offset of a partition (From: "Justin C. Walker" <email@hidden>)
 >Re: finding the offset of a partition (From: Jason Bobier <email@hidden>)
 >Re: finding the offset of a partition (From: Shawn Erickson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.