summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs/ntfs_inode.h
diff options
context:
space:
mode:
authorsemenu <semenu@FreeBSD.org>1999-05-12 09:43:09 +0000
committersemenu <semenu@FreeBSD.org>1999-05-12 09:43:09 +0000
commit174d713c5168fee5dbc7f58d899b5947f191ed9a (patch)
treee1fc2f6bcd4236451184982a51d9ed2d0e7aefb2 /sys/fs/ntfs/ntfs_inode.h
parentce6e6ffd26715c99d8a770afd5c77f219487c4f9 (diff)
downloadFreeBSD-src-174d713c5168fee5dbc7f58d899b5947f191ed9a.zip
FreeBSD-src-174d713c5168fee5dbc7f58d899b5947f191ed9a.tar.gz
Driver is now ported to NetBSD.
Submitted by: Christos Zoulas <christos@zoulas.com>
Diffstat (limited to 'sys/fs/ntfs/ntfs_inode.h')
-rw-r--r--sys/fs/ntfs/ntfs_inode.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/fs/ntfs/ntfs_inode.h b/sys/fs/ntfs/ntfs_inode.h
index bf1e26c..0b6f6a2 100644
--- a/sys/fs/ntfs/ntfs_inode.h
+++ b/sys/fs/ntfs/ntfs_inode.h
@@ -1,3 +1,5 @@
+/* $NetBSD: ntfs_inode.h,v 1.2 1999/05/06 15:43:19 christos Exp $ */
+
/*-
* Copyright (c) 1998, 1999 Semen Ustimenko
* All rights reserved.
@@ -23,11 +25,11 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ntfs_inode.h,v 1.8 1999/02/02 01:54:54 semen Exp $
+ * $Id: ntfs_inode.h,v 1.3 1999/04/20 21:06:43 semenu Exp $
*/
/* These flags are kept in i_flag. */
-#if __FreeBSD_version >= 300000
+#if defined(__FreeBSD__)
#define IN_ACCESS 0x0001 /* Access time update request. */
#define IN_CHANGE 0x0002 /* Inode change time update request. */
#define IN_UPDATE 0x0004 /* Modification time update request. */
@@ -35,9 +37,8 @@
#define IN_RENAME 0x0010 /* Inode is being renamed. */
#define IN_SHLOCK 0x0020 /* File has shared lock. */
#define IN_EXLOCK 0x0040 /* File has exclusive lock. */
-#define IN_HASHED 0x0080 /* Inode is on hash list */
-#define IN_LAZYMOD 0x0100 /* Modified, but don't write yet. */
-#else
+#define IN_LAZYMOD 0x0080 /* Modified, but don't write yet. */
+#else /* defined(__NetBSD__) */
#define IN_ACCESS 0x0001 /* Access time update request. */
#define IN_CHANGE 0x0002 /* Inode change time update request. */
#define IN_EXLOCK 0x0004 /* File has exclusive lock. */
@@ -51,6 +52,7 @@
#define IN_RECURSE 0x0400 /* Recursion expected */
#endif
+#define IN_HASHED 0x0800 /* Inode is on hash list */
#define IN_LOADED 0x8000 /* ntvattrs loaded */
#define IN_PRELOADED 0x4000 /* loaded from directory entry */
@@ -64,7 +66,11 @@ struct ntnode {
u_int32_t i_flag;
int i_lock;
int i_usecount;
-
+#if defined(__NetBSD__)
+ pid_t i_lockholder;
+ pid_t i_lockwaiter;
+ int i_lockcount;
+#endif
LIST_HEAD(,fnode) i_fnlist;
LIST_HEAD(,ntvattr) i_valist;
OpenPOWER on IntegriCloud