darwin-xnu/bsd/hfs/hfs_fsctl.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
   3 *
   4 * @APPLE_LICENSE_HEADER_START@
   5 * 
   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.
  11 * 
  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
  18 * under the License.
  19 * 
  20 * @APPLE_LICENSE_HEADER_END@
  21 */
  22
  23#ifndef _HFS_FSCTL_H_
  24#define _HFS_FSCTL_H_
  25
  26#include <sys/appleapiopts.h>
  27
  28#include <sys/ioccom.h>
  29#include <sys/time.h>
  30
  31
  32#ifdef __APPLE_API_UNSTABLE
  33
  34struct 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 */
  39};
  40
  41
  42/* HFS FS CONTROL COMMANDS */
  43
  44#define HFSIOC_RESIZE_VOLUME  _IOW('h', 2, u_int64_t)
  45#define HFS_RESIZE_VOLUME  IOCBASECMD(HFSIOC_RESIZE_VOLUME)
  46
  47#define HFSIOC_CHANGE_NEXT_ALLOCATION  _IOWR('h', 3, u_int32_t)
  48#define HFS_CHANGE_NEXT_ALLOCATION  IOCBASECMD(HFSIOC_CHANGE_NEXT_ALLOCATION)
  49
  50#define HFSIOC_GETCREATETIME  _IOR('h', 4, time_t)
  51#define HFS_GETCREATETIME  IOCBASECMD(HFSIOC_GETCREATETIME)
  52
  53#define HFSIOC_SETBACKINGSTOREINFO  _IOW('h', 7, struct hfs_backingstoreinfo)
  54#define HFS_SETBACKINGSTOREINFO  IOCBASECMD(HFSIOC_SETBACKINGSTOREINFO)
  55
  56#define HFSIOC_CLRBACKINGSTOREINFO  _IO('h', 8)
  57#define HFS_CLRBACKINGSTOREINFO  IOCBASECMD(HFSIOC_CLRBACKINGSTOREINFO)
  58
  59#define HFSIOC_SETACLSTATE  _IOW('h', 10, int32_t)
  60#define HFS_SETACLSTATE  IOCBASECMD(HFSIOC_SETACLSTATE)
  61
  62#endif /* __APPLE_API_UNSTABLE */
  63
  64
  65#endif /* ! _HFS_FSCTL_H_ */
  66
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.