]> git.saurik.com Git - apple/xnu.git/blob - bsd/hfs/hfs_fsctl.h
46f8139e69ad88a23f59d1a4e2e78c999a3d608c
[apple/xnu.git] / bsd / hfs / hfs_fsctl.h
1 /*
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 #ifndef _HFS_FSCTL_H_
25 #define _HFS_FSCTL_H_
26
27 #include <sys/appleapiopts.h>
28
29 #include <sys/ioccom.h>
30 #include <sys/time.h>
31
32
33 #ifdef __APPLE_API_UNSTABLE
34
35 struct hfs_backingstoreinfo {
36 int signature; /* == 3419115 */
37 int version; /* version of this struct (1) */
38 int backingfd; /* disk image file (on backing fs) */
39 int bandsize; /* sparse disk image band size */
40 };
41
42
43 /* HFS FS CONTROL COMMANDS */
44
45 #define HFSIOC_RESIZE_VOLUME _IOW('h', 2, u_int64_t)
46 #define HFS_RESIZE_VOLUME IOCBASECMD(HFSIOC_RESIZE_VOLUME)
47
48 #define HFSIOC_CHANGE_NEXT_ALLOCATION _IOWR('h', 3, u_int32_t)
49 #define HFS_CHANGE_NEXT_ALLOCATION IOCBASECMD(HFSIOC_CHANGE_NEXT_ALLOCATION)
50
51 #define HFSIOC_GETCREATETIME _IOR('h', 4, time_t)
52 #define HFS_GETCREATETIME IOCBASECMD(HFSIOC_GETCREATETIME)
53
54 #define HFSIOC_SETBACKINGSTOREINFO _IOW('h', 7, struct hfs_backingstoreinfo)
55 #define HFS_SETBACKINGSTOREINFO IOCBASECMD(HFSIOC_SETBACKINGSTOREINFO)
56
57 #define HFSIOC_CLRBACKINGSTOREINFO _IO('h', 8)
58 #define HFS_CLRBACKINGSTOREINFO IOCBASECMD(HFSIOC_CLRBACKINGSTOREINFO)
59
60 #define HFSIOC_SETACLSTATE _IOW('h', 10, int32_t)
61 #define HFS_SETACLSTATE IOCBASECMD(HFSIOC_SETACLSTATE)
62
63 #endif /* __APPLE_API_UNSTABLE */
64
65
66 #endif /* ! _HFS_FSCTL_H_ */