]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (c) 2000-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 __VOLFS_VOLFS_H__ | |
24 | #define __VOLFS_VOLFS_H__ | |
25 | ||
26 | #include <sys/appleapiopts.h> | |
27 | ||
28 | #ifdef __APPLE_API_PRIVATE | |
29 | struct volfs_mntdata | |
30 | { | |
31 | struct vnode *volfs_rootvp; | |
32 | }; | |
33 | ||
34 | /* | |
35 | * Volfs vnodes exist only for the root, which allows for the enumeration | |
36 | * of all volfs accessible filesystems, and for the filesystems which | |
37 | * volfs handles. | |
38 | */ | |
39 | #define VOLFS_ROOT 1 /* This volfs vnode represents root of volfs */ | |
40 | #define VOLFS_FSNODE 2 /* This volfs vnode represents a file system */ | |
41 | ||
42 | struct volfs_vndata | |
43 | { | |
44 | int vnode_type; | |
45 | unsigned int nodeID; /* the dev entry of a file system */ | |
46 | struct mount * fs_mount; | |
47 | fsid_t fs_fsid; | |
48 | }; | |
49 | ||
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)) | |
54 | ||
55 | #define ROOT_DIRID 2 | |
56 | ||
57 | #define MAXPLCENTRIES 250 | |
58 | #define PLCHASHSIZE 128 | |
59 | ||
60 | ||
61 | #define VTOVL(VP) ((struct volfs_vndata *)((VP)->v_data)) | |
62 | ||
63 | #define PRINTIT kprintf | |
64 | ||
65 | ||
66 | #endif /* __APPLE_API_PRIVATE */ | |
67 | #endif /* __VOLFS_VOLFS_H__ */ |