Deleted Added
full compact
ext2_dinode.h (217585) ext2_dinode.h (217703)
1/*-
2 * Copyright (c) 2009 Aditya Sarawgi
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 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2009 Aditya Sarawgi
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 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 217585 2011-01-19 16:55:32Z jhb $
26 * $FreeBSD: head/sys/fs/ext2fs/ext2_dinode.h 217703 2011-01-21 22:00:40Z jhb $
27 */
28
29#ifndef _FS_EXT2FS_EXT2_DINODE_H_
30#define _FS_EXT2FS_EXT2_DINODE_H_
31
32#define e2di_size_high e2di_dacl
33
34/*
27 */
28
29#ifndef _FS_EXT2FS_EXT2_DINODE_H_
30#define _FS_EXT2FS_EXT2_DINODE_H_
31
32#define e2di_size_high e2di_dacl
33
34/*
35 * Special inode numbers
36 * The root inode is the root of the file system. Inode 0 can't be used for
37 * normal purposes and bad blocks are normally linked to inode 1, thus
38 * the root inode is 2.
39 * Inode 3 to 10 are reserved in ext2fs.
40 */
41#define EXT2_BADBLKINO ((ino_t)1)
42#define EXT2_ROOTINO ((ino_t)2)
43#define EXT2_ACLIDXINO ((ino_t)3)
44#define EXT2_ACLDATAINO ((ino_t)4)
45#define EXT2_BOOTLOADERINO ((ino_t)5)
46#define EXT2_UNDELDIRINO ((ino_t)6)
47#define EXT2_RESIZEINO ((ino_t)7)
48#define EXT2_JOURNALINO ((ino_t)8)
49#define EXT2_FIRSTINO ((ino_t)11)
50
51/*
35 * Inode flags
36 * The current implementation uses only EXT2_IMMUTABLE and EXT2_APPEND flags
37 */
38#define EXT2_SECRM 0x00000001 /* Secure deletion */
39#define EXT2_UNRM 0x00000002 /* Undelete */
40#define EXT2_COMPR 0x00000004 /* Compress file */
41#define EXT2_SYNC 0x00000008 /* Synchronous updates */
42#define EXT2_IMMUTABLE 0x00000010 /* Immutable file */

--- 36 unchanged lines hidden ---
52 * Inode flags
53 * The current implementation uses only EXT2_IMMUTABLE and EXT2_APPEND flags
54 */
55#define EXT2_SECRM 0x00000001 /* Secure deletion */
56#define EXT2_UNRM 0x00000002 /* Undelete */
57#define EXT2_COMPR 0x00000004 /* Compress file */
58#define EXT2_SYNC 0x00000008 /* Synchronous updates */
59#define EXT2_IMMUTABLE 0x00000010 /* Immutable file */

--- 36 unchanged lines hidden ---