]> git.saurik.com Git - apple/xnu.git/blob - bsd/hfs/hfs_fsctl.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_fsctl.h
1 /*
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
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@
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_PROGRESS _IOR('h', 1, u_int32_t)
53 #define HFS_RESIZE_PROGRESS IOCBASECMD(HFSIOC_RESIZE_PROGRESS)
54
55 #define HFSIOC_RESIZE_VOLUME _IOW('h', 2, u_int64_t)
56 #define HFS_RESIZE_VOLUME IOCBASECMD(HFSIOC_RESIZE_VOLUME)
57
58 #define HFSIOC_CHANGE_NEXT_ALLOCATION _IOWR('h', 3, u_int32_t)
59 #define HFS_CHANGE_NEXT_ALLOCATION IOCBASECMD(HFSIOC_CHANGE_NEXT_ALLOCATION)
60
61 #define HFSIOC_GETCREATETIME _IOR('h', 4, time_t)
62 #define HFS_GETCREATETIME IOCBASECMD(HFSIOC_GETCREATETIME)
63
64 #define HFSIOC_SETBACKINGSTOREINFO _IOW('h', 7, struct hfs_backingstoreinfo)
65 #define HFS_SETBACKINGSTOREINFO IOCBASECMD(HFSIOC_SETBACKINGSTOREINFO)
66
67 #define HFSIOC_CLRBACKINGSTOREINFO _IO('h', 8)
68 #define HFS_CLRBACKINGSTOREINFO IOCBASECMD(HFSIOC_CLRBACKINGSTOREINFO)
69
70 #define HFSIOC_SETACLSTATE _IOW('h', 10, int32_t)
71 #define HFS_SETACLSTATE IOCBASECMD(HFSIOC_SETACLSTATE)
72
73 #endif /* __APPLE_API_UNSTABLE */
74
75
76 #endif /* ! _HFS_FSCTL_H_ */