]>
git.saurik.com Git - apple/xnu.git/blob - bsd/miscfs/volfs/volfs.h
2 * Copyright (c) 2000-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@
23 #ifndef __VOLFS_VOLFS_H__
24 #define __VOLFS_VOLFS_H__
26 #include <sys/appleapiopts.h>
28 #ifdef __APPLE_API_PRIVATE
31 struct vnode
*volfs_rootvp
;
35 * Volfs vnodes exist only for the root, which allows for the enumeration
36 * of all volfs accessible filesystems, and for the filesystems which
39 #define VOLFS_ROOT 1 /* This volfs vnode represents root of volfs */
40 #define VOLFS_FSNODE 2 /* This volfs vnode represents a file system */
45 unsigned int nodeID
; /* the dev entry of a file system */
46 struct mount
* fs_mount
;
50 #define MAXVLFSNAMLEN 24 /* max length is really 10, pad to 24 since
51 * some of the math depends on VLFSDIRENTLEN
52 * being a power of 2 */
53 #define VLFSDIRENTLEN (MAXVLFSNAMLEN + sizeof(u_int32_t) + sizeof(u_int16_t) + sizeof(u_int8_t) + sizeof(u_int8_t))
57 #define MAXPLCENTRIES 250
58 #define PLCHASHSIZE 128
61 #define VTOVL(VP) ((struct volfs_vndata *)((VP)->v_data))
63 #define PRINTIT kprintf
66 #endif /* __APPLE_API_PRIVATE */
67 #endif /* __VOLFS_VOLFS_H__ */