diff options
author | julian <julian@FreeBSD.org> | 1998-03-08 09:59:44 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-03-08 09:59:44 +0000 |
commit | 10c5ccc30ae8155c4d8bd25aeffd9ed0e476c387 (patch) | |
tree | d2ed60b6b9462fe6eebf4796c39dfcf3cec39874 /sys/gnu | |
parent | 1d108bde84c6b5fa5d119363c4f401cc3dcc8110 (diff) | |
download | FreeBSD-src-10c5ccc30ae8155c4d8bd25aeffd9ed0e476c387.zip FreeBSD-src-10c5ccc30ae8155c4d8bd25aeffd9ed0e476c387.tar.gz |
Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)
Submitted by: Kirk McKusick (mcKusick@mckusick.com)
Obtained from: WHistle development tree
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/inode.h | 11 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/inode.h | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/inode.h b/sys/gnu/ext2fs/inode.h index f2fd0f2..4bd1cf5 100644 --- a/sys/gnu/ext2fs/inode.h +++ b/sys/gnu/ext2fs/inode.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)inode.h 8.9 (Berkeley) 5/14/95 - * $Id: inode.h,v 1.19 1997/12/05 13:43:47 jkh Exp $ + * $Id: inode.h,v 1.20 1998/01/30 11:34:02 phk Exp $ */ #ifndef _UFS_UFS_INODE_H_ @@ -46,6 +46,11 @@ #include <ufs/ufs/dinode.h> /* + * The size of a logical block number. + */ +typedef long ufs_lbn_t; + +/* * This must agree with the definition in <ufs/ufs/dir.h>. */ #define doff_t int32_t @@ -67,6 +72,7 @@ struct inode { u_int32_t i_flag; /* flags, see below */ dev_t i_dev; /* Device associated with the inode. */ ino_t i_number; /* The identity of the inode. */ + int i_effnlink; /* i_nlink when I/O completes */ union { /* Associated filesystem. */ struct fs *fs; /* FFS */ @@ -160,6 +166,9 @@ struct indir { } \ } +/* Determine if soft dependencies are being done */ +#define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP) + /* This overlays the fid structure (see mount.h). */ struct ufid { u_int16_t ufid_len; /* Length of structure. */ diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h index f2fd0f2..4bd1cf5 100644 --- a/sys/gnu/fs/ext2fs/inode.h +++ b/sys/gnu/fs/ext2fs/inode.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)inode.h 8.9 (Berkeley) 5/14/95 - * $Id: inode.h,v 1.19 1997/12/05 13:43:47 jkh Exp $ + * $Id: inode.h,v 1.20 1998/01/30 11:34:02 phk Exp $ */ #ifndef _UFS_UFS_INODE_H_ @@ -46,6 +46,11 @@ #include <ufs/ufs/dinode.h> /* + * The size of a logical block number. + */ +typedef long ufs_lbn_t; + +/* * This must agree with the definition in <ufs/ufs/dir.h>. */ #define doff_t int32_t @@ -67,6 +72,7 @@ struct inode { u_int32_t i_flag; /* flags, see below */ dev_t i_dev; /* Device associated with the inode. */ ino_t i_number; /* The identity of the inode. */ + int i_effnlink; /* i_nlink when I/O completes */ union { /* Associated filesystem. */ struct fs *fs; /* FFS */ @@ -160,6 +166,9 @@ struct indir { } \ } +/* Determine if soft dependencies are being done */ +#define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP) + /* This overlays the fid structure (see mount.h). */ struct ufid { u_int16_t ufid_len; /* Length of structure. */ |