inode.h (55206) | inode.h (60833) |
---|---|
1/* 2 * Copyright (c) 1982, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)inode.h 8.9 (Berkeley) 5/14/95 | 1/* 2 * Copyright (c) 1982, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)inode.h 8.9 (Berkeley) 5/14/95 |
39 * $FreeBSD: head/sys/gnu/fs/ext2fs/inode.h 55206 1999-12-29 05:07:58Z peter $ | 39 * $FreeBSD: head/sys/gnu/fs/ext2fs/inode.h 60833 2000-05-23 20:41:01Z jake $ |
40 */ 41 42#ifndef _UFS_UFS_INODE_H_ 43#define _UFS_UFS_INODE_H_ 44 45#include <sys/lock.h> 46#include <sys/queue.h> 47#include <ufs/ufs/dinode.h> --- 14 unchanged lines hidden (view full) --- 62 * is the information that is needed only while the file is active (such as 63 * the identity of the file and linkage to speed its lookup). The second part 64 * is the permanent meta-data associated with the file which is read in 65 * from the permanent dinode from long term storage when the file becomes 66 * active, and is put back when the file is no longer being used. 67 */ 68struct inode { 69 struct lock i_lock; /* Inode lock. >Keep this first< */ | 40 */ 41 42#ifndef _UFS_UFS_INODE_H_ 43#define _UFS_UFS_INODE_H_ 44 45#include <sys/lock.h> 46#include <sys/queue.h> 47#include <ufs/ufs/dinode.h> --- 14 unchanged lines hidden (view full) --- 62 * is the information that is needed only while the file is active (such as 63 * the identity of the file and linkage to speed its lookup). The second part 64 * is the permanent meta-data associated with the file which is read in 65 * from the permanent dinode from long term storage when the file becomes 66 * active, and is put back when the file is no longer being used. 67 */ 68struct inode { 69 struct lock i_lock; /* Inode lock. >Keep this first< */ |
70 LIST_ENTRY(inode) i_hash;/* Hash chain. */ | 70 LIST_ENTRY(struct inode) i_hash;/* Hash chain. */ |
71 struct vnode *i_vnode;/* Vnode associated with this inode. */ 72 struct vnode *i_devvp;/* Vnode for block I/O. */ 73 u_int32_t i_flag; /* flags, see below */ 74 dev_t i_dev; /* Device associated with the inode. */ 75 ino_t i_number; /* The identity of the inode. */ 76 int i_effnlink; /* i_nlink when I/O completes */ 77 78 union { /* Associated filesystem. */ --- 83 unchanged lines hidden --- | 71 struct vnode *i_vnode;/* Vnode associated with this inode. */ 72 struct vnode *i_devvp;/* Vnode for block I/O. */ 73 u_int32_t i_flag; /* flags, see below */ 74 dev_t i_dev; /* Device associated with the inode. */ 75 ino_t i_number; /* The identity of the inode. */ 76 int i_effnlink; /* i_nlink when I/O completes */ 77 78 union { /* Associated filesystem. */ --- 83 unchanged lines hidden --- |