]>
Commit | Line | Data |
---|---|---|
91447636 | 1 | /* |
8ad349bb | 2 | * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved. |
91447636 | 3 | * |
8ad349bb | 4 | * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ |
91447636 | 5 | * |
8ad349bb A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the | |
10 | * License may not be used to create, or enable the creation or | |
11 | * redistribution of, unlawful or unlicensed copies of an Apple operating | |
12 | * system, or to circumvent, violate, or enable the circumvention or | |
13 | * violation of, any terms of an Apple operating system software license | |
14 | * agreement. | |
15 | * | |
16 | * Please obtain a copy of the License at | |
17 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
18 | * file. | |
19 | * | |
20 | * The Original Code and all software distributed under the License are | |
21 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
22 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
23 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
24 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
25 | * Please see the License for the specific language governing rights and | |
26 | * limitations under the License. | |
27 | * | |
28 | * @APPLE_LICENSE_OSREFERENCE_HEADER_END@ | |
91447636 A |
29 | */ |
30 | ||
31 | #ifndef _HFS_FSCTL_H_ | |
32 | #define _HFS_FSCTL_H_ | |
33 | ||
34 | #include <sys/appleapiopts.h> | |
35 | ||
36 | #include <sys/ioccom.h> | |
37 | #include <sys/time.h> | |
38 | ||
39 | ||
40 | #ifdef __APPLE_API_UNSTABLE | |
41 | ||
42 | struct hfs_backingstoreinfo { | |
43 | int signature; /* == 3419115 */ | |
44 | int version; /* version of this struct (1) */ | |
45 | int backingfd; /* disk image file (on backing fs) */ | |
46 | int bandsize; /* sparse disk image band size */ | |
47 | }; | |
48 | ||
49 | ||
50 | /* HFS FS CONTROL COMMANDS */ | |
51 | ||
52 | #define HFSIOC_RESIZE_VOLUME _IOW('h', 2, u_int64_t) | |
53 | #define HFS_RESIZE_VOLUME IOCBASECMD(HFSIOC_RESIZE_VOLUME) | |
54 | ||
55 | #define HFSIOC_CHANGE_NEXT_ALLOCATION _IOWR('h', 3, u_int32_t) | |
56 | #define HFS_CHANGE_NEXT_ALLOCATION IOCBASECMD(HFSIOC_CHANGE_NEXT_ALLOCATION) | |
57 | ||
58 | #define HFSIOC_GETCREATETIME _IOR('h', 4, time_t) | |
59 | #define HFS_GETCREATETIME IOCBASECMD(HFSIOC_GETCREATETIME) | |
60 | ||
61 | #define HFSIOC_SETBACKINGSTOREINFO _IOW('h', 7, struct hfs_backingstoreinfo) | |
62 | #define HFS_SETBACKINGSTOREINFO IOCBASECMD(HFSIOC_SETBACKINGSTOREINFO) | |
63 | ||
64 | #define HFSIOC_CLRBACKINGSTOREINFO _IO('h', 8) | |
65 | #define HFS_CLRBACKINGSTOREINFO IOCBASECMD(HFSIOC_CLRBACKINGSTOREINFO) | |
66 | ||
67 | #define HFSIOC_SETACLSTATE _IOW('h', 10, int32_t) | |
68 | #define HFS_SETACLSTATE IOCBASECMD(HFSIOC_SETACLSTATE) | |
69 | ||
70 | #endif /* __APPLE_API_UNSTABLE */ | |
71 | ||
72 | ||
73 | #endif /* ! _HFS_FSCTL_H_ */ |