The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/bsd/hfs/hfs_mount.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
    3  *
    4  * @APPLE_LICENSE_HEADER_START@
    5  * 
    6  * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
    7  * 
    8  * This file contains Original Code and/or Modifications of Original Code
    9  * as defined in and that are subject to the Apple Public Source License
   10  * Version 2.0 (the 'License'). You may not use this file except in
   11  * compliance with the License. Please obtain a copy of the License at
   12  * http://www.opensource.apple.com/apsl/ and read it before using this
   13  * file.
   14  * 
   15  * The Original Code and all software distributed under the License are
   16  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   17  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   18  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   19  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   20  * Please see the License for the specific language governing rights and
   21  * limitations under the License.
   22  * 
   23  * @APPLE_LICENSE_HEADER_END@
   24  */
   25 /*
   26  * Copyright (c) 1997-2002 Apple Computer, Inc. All Rights Reserved
   27  *
   28  */
   29 
   30 #ifndef _HFS_MOUNT_H_
   31 #define _HFS_MOUNT_H_
   32 
   33 #include <sys/appleapiopts.h>
   34 
   35 #include <sys/mount.h>
   36 #include <sys/time.h>
   37 
   38 /*
   39  * Arguments to mount HFS-based filesystems
   40  */
   41 
   42 #define OVERRIDE_UNKNOWN_PERMISSIONS 0
   43 
   44 #define UNKNOWNUID ((uid_t)99)
   45 #define UNKNOWNGID ((gid_t)99)
   46 #define UNKNOWNPERMISSIONS (S_IRWXU | S_IROTH | S_IXOTH)                /* 705 */
   47 
   48 #ifdef __APPLE_API_UNSTABLE
   49 struct hfs_mount_args {
   50         char    *fspec;                 /* block special device to mount */
   51         struct  export_args export;     /* network export information */
   52         uid_t   hfs_uid;                /* uid that owns hfs files (standard HFS only) */
   53         gid_t   hfs_gid;                /* gid that owns hfs files (standard HFS only) */
   54         mode_t  hfs_mask;               /* mask to be applied for hfs perms  (standard HFS only) */
   55         u_long  hfs_encoding;           /* encoding for this volume (standard HFS only) */
   56         struct  timezone hfs_timezone;  /* user time zone info (standard HFS only) */
   57         int     flags;                  /* mounting flags, see below */
   58         int     journal_tbuffer_size;   /* size in bytes of the journal transaction buffer */
   59         int     journal_flags;          /* flags to pass to journal_open/create */
   60         int     journal_disable;        /* don't use journaling (potentially dangerous) */
   61 };
   62 
   63 #define HFSFSMNT_NOXONFILES     0x1     /* disable execute permissions for files */
   64 #define HFSFSMNT_WRAPPER        0x2     /* mount HFS wrapper (if it exists) */
   65 #define HFSFSMNT_EXTENDED_ARGS  0x4     /* indicates new fields after "flags" are valid */
   66 
   67 /*
   68  * Sysctl values for HFS
   69  */
   70 #define HFS_ENCODINGBIAS        1           /* encoding matching CJK bias */
   71 #define HFS_EXTEND_FS           2
   72 #define HFS_ENCODINGHINT        3           /* guess encoding for string */
   73 #define HFS_ENABLE_JOURNALING   0x082969
   74 #define HFS_DISABLE_JOURNALING  0x031272
   75 #define HFS_GET_JOURNAL_INFO    0x6a6e6c69
   76 #define HFS_SET_PKG_EXTENSIONS  0x121031
   77 
   78 #endif /* __APPLE_API_UNSTABLE */
   79 
   80 #endif /* ! _HFS_MOUNT_H_ */

Cache object: 90cff9e3ecbff885300b2a9fc0a2ad25


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.