Mac OS 9
DiskInit.h
Go to the documentation of this file.
1 
19 #ifndef __DISKINIT__
20 #define __DISKINIT__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #if PRAGMA_ONCE
27 #pragma once
28 #endif
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 #if PRAGMA_IMPORT
36 #pragma import on
37 #endif
38 
39 #if PRAGMA_STRUCT_ALIGN
40 #pragma options align = mac68k
41 #elif PRAGMA_STRUCT_PACKPUSH
42 #pragma pack(push, 2)
43 #elif PRAGMA_STRUCT_PACK
44 #pragma pack(2)
45 #endif
46 
47  struct HFSDefaults
48  {
49  char sigWord[2];
50  long abSize;
51  long clpSize;
52  long nxFreeFN;
53  long btClpSize;
54  short rsrv1;
55  short rsrv2;
56  short rsrv3;
57  };
58  typedef struct HFSDefaults HFSDefaults;
59  enum
60  {
61  kHFSPlusDefaultsVersion = 1
62  };
63 
65  {
66  UInt16 version;
67  UInt16 flags;
68  UInt32 blockSize;
69  UInt32 rsrcClumpSize;
70  UInt32 dataClumpSize;
71  UInt32 nextFreeFileID;
73  UInt32 catalogNodeSize;
75  UInt32 extentsNodeSize;
79  };
80  typedef struct HFSPlusDefaults HFSPlusDefaults;
81 #if CALL_NOT_IN_CARBON
90  void
91  DILoad(void);
92 
101  void
102  DIUnload(void);
103 
112  short
113  DIBadMount(Point where, UInt32 evtMessage);
114 
123  OSErr
124  DIFormat(short drvNum);
125 
134  OSErr
135  DIVerify(short drvNum);
136 
145  OSErr
146  DIZero(short drvNum, ConstStr255Param volName);
147 
160  OSErr
161  DIXFormat(short drvNum, Boolean fmtFlag, unsigned long fmtArg,
162  unsigned long *actSize);
163 
172  OSErr
173  DIXZero(short drvNum, ConstStr255Param volName, short fsid, short mediaStatus,
174  short volTypeSelector, unsigned long volSize, void *extendedInfoPtr);
175 
184  OSErr
185  DIReformat(short drvNum, short fsid, ConstStr255Param volName,
186  ConstStr255Param msgText);
187 
188 #endif
190 #if CALL_NOT_IN_CARBON
199  OSErr
200  dibadmount(Point *where, long evtMessage);
201 
210  OSErr
211  dizero(short drvnum, const char *volName);
212 
213 #endif
215 #if PRAGMA_STRUCT_ALIGN
216 #pragma options align = reset
217 #elif PRAGMA_STRUCT_PACKPUSH
218 #pragma pack(pop)
219 #elif PRAGMA_STRUCT_PACK
220 #pragma pack()
221 #endif
222 
223 #ifdef PRAGMA_IMPORT_OFF
224 #pragma import off
225 #elif PRAGMA_IMPORT
226 #pragma import reset
227 #endif
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
233 #endif
void DILoad(void)
OSErr DIFormat(short drvNum)
OSErr DIZero(short drvNum, ConstStr255Param volName)
OSErr dibadmount(Point *where, long evtMessage)
short DIBadMount(Point where, UInt32 evtMessage)
OSErr dizero(short drvnum, const char *volName)
OSErr DIXZero(short drvNum, ConstStr255Param volName, short fsid, short mediaStatus, short volTypeSelector, unsigned long volSize, void *extendedInfoPtr)
OSErr DIVerify(short drvNum)
void DIUnload(void)
OSErr DIReformat(short drvNum, short fsid, ConstStr255Param volName, ConstStr255Param msgText)
OSErr DIXFormat(short drvNum, Boolean fmtFlag, unsigned long fmtArg, unsigned long *actSize)
Str255 volName
Get volume name, reference number and free bytes.
Definition: Files.h:2663
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Definition: DiskInit.h:48
short rsrv2
Definition: DiskInit.h:55
short rsrv3
Definition: DiskInit.h:56
long abSize
Definition: DiskInit.h:50
short rsrv1
Definition: DiskInit.h:54
long btClpSize
Definition: DiskInit.h:53
long clpSize
Definition: DiskInit.h:51
long nxFreeFN
Definition: DiskInit.h:52
Definition: DiskInit.h:65
UInt32 rsrcClumpSize
Definition: DiskInit.h:69
UInt32 blockSize
Definition: DiskInit.h:68
UInt32 dataClumpSize
Definition: DiskInit.h:70
UInt32 catalogNodeSize
Definition: DiskInit.h:73
UInt32 extentsNodeSize
Definition: DiskInit.h:75
UInt32 catalogClumpSize
Definition: DiskInit.h:72
UInt32 extentsClumpSize
Definition: DiskInit.h:74
UInt16 flags
Definition: DiskInit.h:67
UInt32 allocationClumpSize
Definition: DiskInit.h:78
UInt32 attributesNodeSize
Definition: DiskInit.h:77
UInt32 nextFreeFileID
Definition: DiskInit.h:71
UInt32 attributesClumpSize
Definition: DiskInit.h:76
Definition: MacTypes.h:520