[c2eef61c] | 1 | /*
|
---|
| 2 | * Copyright (c) 2011 Maurizio Lombardi
|
---|
| 3 | * All rights reserved.
|
---|
| 4 | *
|
---|
| 5 | * Redistribution and use in source and binary forms, with or without
|
---|
| 6 | * modification, are permitted provided that the following conditions
|
---|
| 7 | * are met:
|
---|
| 8 | *
|
---|
| 9 | * - Redistributions of source code must retain the above copyright
|
---|
| 10 | * notice, this list of conditions and the following disclaimer.
|
---|
| 11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
| 12 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 13 | * documentation and/or other materials provided with the distribution.
|
---|
| 14 | * - The name of the author may not be used to endorse or promote products
|
---|
| 15 | * derived from this software without specific prior written permission.
|
---|
| 16 | *
|
---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 27 | */
|
---|
| 28 |
|
---|
| 29 | /** @addtogroup fs
|
---|
| 30 | * @{
|
---|
| 31 | */
|
---|
| 32 |
|
---|
| 33 |
|
---|
[e2ad8e4] | 34 | #ifndef _MFS_CONST_H_
|
---|
| 35 | #define _MFS_CONST_H_
|
---|
[657ab26] | 36 |
|
---|
| 37 | #include <sys/types.h>
|
---|
[819450a] | 38 | #include <bool.h>
|
---|
[657ab26] | 39 |
|
---|
[096c8835] | 40 | #define MFS_MAGIC_V1 0x137F
|
---|
| 41 | #define MFS_MAGIC_V2 0x2468
|
---|
| 42 | #define MFS_MAGIC_V3 0x4D5A
|
---|
| 43 |
|
---|
[85d32df7] | 44 | #define MFS_ROOT_INO 1
|
---|
[096c8835] | 45 | #define MFS_SUPER_BLOCK 0
|
---|
| 46 | #define MFS_SUPER_BLOCK_SIZE 1024
|
---|
[85d32df7] | 47 |
|
---|
[a6e094f] | 48 | #define V2_NR_DIRECT_ZONES 7
|
---|
| 49 | #define V2_NR_INDIRECT_ZONES 3
|
---|
[657ab26] | 50 |
|
---|
[85d32df7] | 51 | #define V1_NR_DIRECT_ZONES 7
|
---|
| 52 | #define V1_NR_INDIRECT_ZONES 2
|
---|
| 53 |
|
---|
[77870e30] | 54 | #define V1_MAX_NAME_LEN 14
|
---|
| 55 | #define V2_MAX_NAME_LEN 60
|
---|
| 56 |
|
---|
[657ab26] | 57 | #endif
|
---|
| 58 |
|
---|
[c2eef61c] | 59 |
|
---|
| 60 | /**
|
---|
| 61 | * @}
|
---|
| 62 | */
|
---|
| 63 |
|
---|