Carbon


VolumeParam

Header: Files.h

struct VolumeParam {
    QElemPtr qLink; 
    SInt16 qType; 
    SInt16 ioTrap; 
    Ptr ioCmdAddr; 
    IOCompletionUPP ioCompletion; 
    volatile OSErr ioResult; 
    StringPtr ioNamePtr; 
    SInt16 ioVRefNum; 
    SInt32 filler2; 
    SInt16 ioVolIndex; 
    UInt32 ioVCrDate; 
    UInt32 ioVLsBkUp; 
    UInt16 ioVAtrb; 
    UInt16 ioVNmFls; 
    UInt16 ioVDirSt; 
    SInt16 ioVBlLn; 
    UInt16 ioVNmAlBlks; 
    UInt32 ioVAlBlkSiz; 
    UInt32 ioVClpSiz; 
    UInt16 ioAlBlSt; 
    UInt32 ioVNxtFNum; 
    UInt16 ioVFrBlk;
};
typedef VolumeParam VolumeParamPtr;

Field descriptions

qLink

A pointer to the next entry in the file I/O queue. (This field is used internally by the File Manager to keep track of asynchronous calls awaiting execution.)

qType

The queue type. (This field is used internally by the File Manager.)

ioTrap

The trap number of the function that was called. (This field is used internally by the File Manager.)

ioCmdAddr

The address of the function that was called. (This field is used internally by the File Manager.)

ioCompletion

A pointer to a completion routine to be executed at the end of an asynchronous call. It should be NULL for asynchronous calls with no completion routine and is automatically set to NULL for all synchronous calls. See IOCompletionProcPtr for information about completion routines.

ioResult

The result code of the function. For synchronous calls, this field is the same as the result code of the function call itself. To determine when an asynchronous call has actually been completed, your application can poll this field; it’s set to a positive number when the call is made and receives the actual result code when the call is completed.

ioNamePtr

A pointer to a pathname. Whenever a function description specifies that ioNamePtr is used—whether for input, output, or both—it’s very important that you set this field to point to storage for a Str255 value (if you’re using a pathname) or to NULL (if you’re not).

ioVRefNum

A volume specification (volume reference number, working directory reference number, drive number, or 0 for default volume).

filler2

Reserved.

ioVolIndex

The volume index.

ioVCrDate

The date and time of volume initialization.

ioVLsBkUp

The date and time the volume information was last modified. (This field is not changed when information is written to a file and does not necessarily indicate when the volume was flushed.)

ioVAtrb

The volume attributes.

ioVNmFls

The number of files in the root directory.

ioVDirSt

The first block of the volume directory.

ioVBlLn

Length of directory in blocks.

ioVNmAlBlks

The number of allocation blocks.

ioVAlBlkSiz

The size of allocation blocks.

ioVClpSiz

The volume clump size.

ioAlBlSt

The first block in the volume map.

ioVNxtFNum

The next unused file number.

ioVFrBlk

The number of unused allocation blocks.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)