]>
git.saurik.com Git - apple/xnu.git/blob - bsd/hfs/hfs_fsctl.h
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
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
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
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.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
34 #include <sys/appleapiopts.h>
36 #include <sys/ioccom.h>
40 #ifdef __APPLE_API_UNSTABLE
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 */
50 /* HFS FS CONTROL COMMANDS */
52 #define HFSIOC_RESIZE_PROGRESS _IOR('h', 1, u_int32_t)
53 #define HFS_RESIZE_PROGRESS IOCBASECMD(HFSIOC_RESIZE_PROGRESS)
55 #define HFSIOC_RESIZE_VOLUME _IOW('h', 2, u_int64_t)
56 #define HFS_RESIZE_VOLUME IOCBASECMD(HFSIOC_RESIZE_VOLUME)
58 #define HFSIOC_CHANGE_NEXT_ALLOCATION _IOWR('h', 3, u_int32_t)
59 #define HFS_CHANGE_NEXT_ALLOCATION IOCBASECMD(HFSIOC_CHANGE_NEXT_ALLOCATION)
61 #define HFSIOC_GETCREATETIME _IOR('h', 4, time_t)
62 #define HFS_GETCREATETIME IOCBASECMD(HFSIOC_GETCREATETIME)
64 #define HFSIOC_SETBACKINGSTOREINFO _IOW('h', 7, struct hfs_backingstoreinfo)
65 #define HFS_SETBACKINGSTOREINFO IOCBASECMD(HFSIOC_SETBACKINGSTOREINFO)
67 #define HFSIOC_CLRBACKINGSTOREINFO _IO('h', 8)
68 #define HFS_CLRBACKINGSTOREINFO IOCBASECMD(HFSIOC_CLRBACKINGSTOREINFO)
70 #define HFSIOC_SETACLSTATE _IOW('h', 10, int32_t)
71 #define HFS_SETACLSTATE IOCBASECMD(HFSIOC_SETACLSTATE)
73 #endif /* __APPLE_API_UNSTABLE */
76 #endif /* ! _HFS_FSCTL_H_ */