]>
git.saurik.com Git - apple/xnu.git/blob - bsd/hfs/hfs_fsctl.h
440cabc55b8b726d2081a24cffbabe779bd5ee93
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
26 #include <sys/appleapiopts.h>
28 #include <sys/ioccom.h>
32 #ifdef __APPLE_API_UNSTABLE
34 struct hfs_backingstoreinfo
{
35 int signature
; /* == 3419115 */
36 int version
; /* version of this struct (1) */
37 int backingfd
; /* disk image file (on backing fs) */
38 int bandsize
; /* sparse disk image band size */
42 /* HFS FS CONTROL COMMANDS */
44 #define HFSIOC_RESIZE_PROGRESS _IOR('h', 1, u_int32_t)
45 #define HFS_RESIZE_PROGRESS IOCBASECMD(HFSIOC_RESIZE_PROGRESS)
47 #define HFSIOC_RESIZE_VOLUME _IOW('h', 2, u_int64_t)
48 #define HFS_RESIZE_VOLUME IOCBASECMD(HFSIOC_RESIZE_VOLUME)
50 #define HFSIOC_CHANGE_NEXT_ALLOCATION _IOWR('h', 3, u_int32_t)
51 #define HFS_CHANGE_NEXT_ALLOCATION IOCBASECMD(HFSIOC_CHANGE_NEXT_ALLOCATION)
53 #define HFSIOC_GETCREATETIME _IOR('h', 4, time_t)
54 #define HFS_GETCREATETIME IOCBASECMD(HFSIOC_GETCREATETIME)
56 #define HFSIOC_SETBACKINGSTOREINFO _IOW('h', 7, struct hfs_backingstoreinfo)
57 #define HFS_SETBACKINGSTOREINFO IOCBASECMD(HFSIOC_SETBACKINGSTOREINFO)
59 #define HFSIOC_CLRBACKINGSTOREINFO _IO('h', 8)
60 #define HFS_CLRBACKINGSTOREINFO IOCBASECMD(HFSIOC_CLRBACKINGSTOREINFO)
62 #define HFSIOC_SETACLSTATE _IOW('h', 10, int32_t)
63 #define HFS_SETACLSTATE IOCBASECMD(HFSIOC_SETACLSTATE)
65 #endif /* __APPLE_API_UNSTABLE */
68 #endif /* ! _HFS_FSCTL_H_ */