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 251346 2013-06-03 20:33:05Z pfg $
27 */
28
29#ifndef _FS_EXT2FS_EXT2_DINODE_H_
30#define _FS_EXT2FS_EXT2_DINODE_H_
31
32/*
33 * Special inode numbers
34 * The root inode is the root of the file system. Inode 0 can't be used for
--- 41 unchanged lines hidden (view full) ---
76#define EXT3_EPOCH_BITS 2
77#define EXT3_EPOCH_MASK ((1 << EXT3_EPOCH_BITS) - 1)
78#define EXT3_NSEC_MASK (~0UL << EXT3_EPOCH_BITS)
79
80#define E2DI_HAS_XTIME(ip) (EXT2_HAS_RO_COMPAT_FEATURE(ip->i_e2fs, \
81 EXT2F_ROCOMPAT_EXTRA_ISIZE))
82
83/*
84 * Structure of an inode on the disk
85 */
86struct ext2fs_dinode {
87 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */
88 uint16_t e2di_uid; /* 2: Owner UID */
89 uint32_t e2di_size; /* 4: Size (in bytes) */
90 uint32_t e2di_atime; /* 8: Access time */
91 uint32_t e2di_ctime; /* 12: Change time */
--- 30 unchanged lines hidden ---
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 251346 2013-06-03 20:33:05Z pfg $
27 */
28
29#ifndef _FS_EXT2FS_EXT2_DINODE_H_
30#define _FS_EXT2FS_EXT2_DINODE_H_
31
32/*
33 * Special inode numbers
34 * The root inode is the root of the file system. Inode 0 can't be used for
--- 41 unchanged lines hidden (view full) ---
76#define EXT3_EPOCH_BITS 2
77#define EXT3_EPOCH_MASK ((1 << EXT3_EPOCH_BITS) - 1)
78#define EXT3_NSEC_MASK (~0UL << EXT3_EPOCH_BITS)
79
80#define E2DI_HAS_XTIME(ip) (EXT2_HAS_RO_COMPAT_FEATURE(ip->i_e2fs, \
81 EXT2F_ROCOMPAT_EXTRA_ISIZE))
82
83/*
84 * Structure of an inode on the disk
85 */
86struct ext2fs_dinode {
87 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */
88 uint16_t e2di_uid; /* 2: Owner UID */
89 uint32_t e2di_size; /* 4: Size (in bytes) */
90 uint32_t e2di_atime; /* 8: Access time */
91 uint32_t e2di_ctime; /* 12: Change time */
--- 30 unchanged lines hidden ---