Mailing Lists: Apple Mailing Lists

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

Device File convenience methods



Are there any functions which can take a device name like "disk1" and
determine if it is a whole device, or a partition of a device?

I am pretty sure that I can just assume that:

disk1 - whole device
disk1s0 - partition of device disk1

Right?

But I am wondering if this is standard "trusted" naming conventions (for
storage devices) or if it is possible for them to have other naming
conventions.

Either way, is there a set of functions in Darwin to determine these
properties about device files?

- Ryan




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.