| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: udf.h,v 1.30 2009/02/08 19:14:52 reinoud Exp $ */ | | 1 | /* $NetBSD: udf.h,v 1.31 2009/06/18 14:56:09 reinoud Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2006, 2008 Reinoud Zandijk | | 4 | * Copyright (c) 2006, 2008 Reinoud Zandijk |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -106,31 +106,26 @@ extern int udf_verbose; | | | @@ -106,31 +106,26 @@ extern int udf_verbose; |
106 | #define APP_VERSION_MAIN 0 | | 106 | #define APP_VERSION_MAIN 0 |
107 | #define APP_VERSION_SUB 4 | | 107 | #define APP_VERSION_SUB 4 |
108 | #define IMPL_NAME "*NetBSD kernel UDF" | | 108 | #define IMPL_NAME "*NetBSD kernel UDF" |
109 | | | 109 | |
110 | | | 110 | |
111 | /* Configuration values */ | | 111 | /* Configuration values */ |
112 | #define UDF_INODE_HASHBITS 10 | | 112 | #define UDF_INODE_HASHBITS 10 |
113 | #define UDF_INODE_HASHSIZE (1<<UDF_INODE_HASHBITS) | | 113 | #define UDF_INODE_HASHSIZE (1<<UDF_INODE_HASHBITS) |
114 | #define UDF_INODE_HASHMASK (UDF_INODE_HASHSIZE - 1) | | 114 | #define UDF_INODE_HASHMASK (UDF_INODE_HASHSIZE - 1) |
115 | #define UDF_ECCBUF_HASHBITS 10 | | 115 | #define UDF_ECCBUF_HASHBITS 10 |
116 | #define UDF_ECCBUF_HASHSIZE (1<<UDF_ECCBUF_HASHBITS) | | 116 | #define UDF_ECCBUF_HASHSIZE (1<<UDF_ECCBUF_HASHBITS) |
117 | #define UDF_ECCBUF_HASHMASK (UDF_ECCBUF_HASHSIZE -1) | | 117 | #define UDF_ECCBUF_HASHMASK (UDF_ECCBUF_HASHSIZE -1) |
118 | | | 118 | |
119 | #define UDF_DIRHASH_DEFAULTMEM (1024*1024) | | | |
120 | #define UDF_DIRHASH_HASHBITS 5 | | | |
121 | #define UDF_DIRHASH_HASHSIZE (1<<UDF_DIRHASH_HASHBITS) | | | |
122 | #define UDF_DIRHASH_HASHMASK (UDF_DIRHASH_HASHSIZE -1) | | | |
123 | | | | |
124 | #define UDF_ECCLINE_MAXFREE 5 /* picked, needs calculation */ | | 119 | #define UDF_ECCLINE_MAXFREE 5 /* picked, needs calculation */ |
125 | #define UDF_ECCLINE_MAXBUSY 300 /* picked, needs calculation */ | | 120 | #define UDF_ECCLINE_MAXBUSY 300 /* picked, needs calculation */ |
126 | | | 121 | |
127 | #define UDF_MAX_MAPPINGS (MAXPHYS/DEV_BSIZE) /* 128 */ | | 122 | #define UDF_MAX_MAPPINGS (MAXPHYS/DEV_BSIZE) /* 128 */ |
128 | #define UDF_VAT_CHUNKSIZE (64*1024) /* picked */ | | 123 | #define UDF_VAT_CHUNKSIZE (64*1024) /* picked */ |
129 | #define UDF_SYMLINKBUFLEN (64*1024) /* picked */ | | 124 | #define UDF_SYMLINKBUFLEN (64*1024) /* picked */ |
130 | | | 125 | |
131 | #define UDF_ISO_VRS_SIZE (32*2048) /* 32 ISO `sectors' */ | | 126 | #define UDF_ISO_VRS_SIZE (32*2048) /* 32 ISO `sectors' */ |
132 | | | 127 | |
133 | | | 128 | |
134 | /* structure space */ | | 129 | /* structure space */ |
135 | #define UDF_ANCHORS 4 /* 256, 512, N-256, N */ | | 130 | #define UDF_ANCHORS 4 /* 256, 512, N-256, N */ |
136 | #define UDF_PARTITIONS 4 /* overkill */ | | 131 | #define UDF_PARTITIONS 4 /* overkill */ |